Version avec modules séparés !
This commit is contained in:
21
modules/todo/ajax/saveTodoist.php
Normal file
21
modules/todo/ajax/saveTodoist.php
Normal 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'])){
|
Reference in New Issue
Block a user