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
+4 -4
View File
@@ -1,10 +1,10 @@
<?
$xmla = simplexml_load_file('todoist.xml');
$xmla = simplexml_load_file('db/todoist.xml');
if($xmla->token== '' || $xmla->token == null)
header('Location: index.php');
header('Location: install-todoist.php');
if($xmla->name == '' || $xmla->name == null):?>
<html> ␍
<head>␍
<head>␍ ␍ <style>␍ .selectableProject{text-decoration:underline; color:blue; cursor:pointer;}␍ </style>
<title>Todoist : getProjects</title> ␍
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>␍
<script type="text/javascript" src="js/getProjectsList.php?token=<?=$xmla->token?>"></script>␍
@@ -14,5 +14,5 @@ if($xmla->name == '' || $xmla->name == null):?>
</body> ␍
</html> ␍
<? else:␍
header('Location: getUncompletedTasks.php');␍
header('Location: index.php');␍
endif;