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

@@ -150,13 +150,13 @@ if($config = simplexml_load_file('db/config.xml')){
<?}?>
<?if($config_xml[6]->visibility == "true"){
$xmla = simplexml_load_file('db/todoist.xml');
echo '<div id="todoList"></div>';
echo '<div id="todoList">';
if($xmla->token== '' || $xmla->token == null || $xmla->id == '' || $xmla->id == null)
echo 'Impossible de trouver votre configuration. Merci de bien vouloir la recommencer.';
echo 'Impossible de trouver votre configuration. <a href="install-todoist.php">Cliquez ici</a> pour la mettre en place.</div>';
else{
$token = $xmla->token;
$id = $xmla->id;?>
</div>
<script type="text/javascript" src="js/getUncompletedTasks.php?token=<?=$token?>&id=<?=$id?>"></script>
<?}}?>
</body>