Add Todoist installation script (need to be styled)

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

View File

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