Add Todoist installation script (need to be styled)

This commit is contained in:
Chouchen committed 2010-09-15 09:54:20 +00:00
1 parent 08469447cb
commit 9f637b565d
6 files changed
+42 -35

No files matched your search

+7 -7
View File
@@ -1,21 +1,21 @@
<?␍
$xmla = simplexml_load_file('../db/todoist.xml');␍
if(isset($_GET['token'])){␍
$token = trim($_GET['token']);␍
if(isset($_POST['token'])){␍
$token = trim($_POST['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']);␍
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 $id;␍
echo "ok";␍
}