Creation of the world
This commit is contained in:
1 parent
5a50cdb2e4
commit
08469447cb
108 files changed
+4685
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?␍
|
||||
$xmla = simplexml_load_file('../db/todoist.xml');␍
|
||||
if(isset($_GET['token'])){␍
|
||||
$token = trim($_GET['token']);␍
|
||||
␍
|
||||
$xmla->addChild("token", $token);␍
|
||||
␍
|
||||
$xmla->asXML('../db/todoist.xml');␍
|
||||
␍
|
||||
echo $token;␍
|
||||
}else if(isset($_GET['name']) && isset($_GET['id'])){␍
|
||||
$name = trim($_GET['name']);␍
|
||||
$id = trim($_GET['id']);␍
|
||||
␍
|
||||
$xmla->addChild("name", $name);␍
|
||||
$xmla->addChild("id", $id);␍
|
||||
␍
|
||||
$xmla->asXML('../db/todoist.xml');␍
|
||||
␍
|
||||
echo $id;␍
|
||||
}
|
||||
Reference in new issue
Block a user