Creation of the world

This commit is contained in:
Chouchen committed 2010-09-14 21:38:29 +00:00
1 parent 5a50cdb2e4
commit 08469447cb
108 files changed
+4685

No files matched your search

+21
View File
@@ -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;␍
}