Version avec modules séparés !

This commit is contained in:
Chouchen committed 2010-09-27 10:48:53 +00:00
1 parent 2861556131
commit 734e6f4829
79 files changed
+283 -223

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
<?␍
$xmla = simplexml_load_file('../db/todoist.xml');␍
if(isset($_POST['token'])){␍
$token = trim($_POST['token']);␍
␍
$xmla->addChild("token", $token);␍
␍
$xmla->asXML('../db/todoist.xml');␍
␍
echo "ok";␍
}else if(isset($_POST['name']) && isset($_POST['id'])){␍
$name = trim($_POST['name']);␍
$id = trim($_POST['id']);␍
␍
$xmla->addChild("name", $name);␍
$xmla->addChild("id", $id);␍
␍
$xmla->asXML('../db/todoist.xml');␍
␍
echo "ok";␍
}