Version avec modules séparés !
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?␍
|
||||
$xmla = simplexml_load_file('../db/todoist.xml');␍
|
||||
if($xmla->token== '' || $xmla->token == null)␍
|
||||
header('Location: install-todoist.php');␍
|
||||
if($xmla->name == '' || $xmla->name == null):?>␍
|
||||
<html> ␍
|
||||
<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>␍
|
||||
</head> ␍
|
||||
<body> ␍
|
||||
␍
|
||||
</body> ␍
|
||||
</html> ␍
|
||||
<? else:␍
|
||||
header('Location: index.php');␍
|
||||
endif;
|
||||
@@ -0,0 +1,12 @@
|
||||
<?␍
|
||||
$xmla = simplexml_load_file('../db/todoist.xml');␍
|
||||
if($xmla->token== '' || $xmla->token == null)␍
|
||||
header('Location: ./');␍
|
||||
if($xmla->id != '' || $xmla->id != null): ␍
|
||||
$token = $xmla->token;␍
|
||||
$id = $xmla->id;?>␍
|
||||
␍
|
||||
<script type="text/javascript" src="../js/getUncompletedTasks.php?token=<?=$token?>&id=<?=$id?>"></script>␍
|
||||
<? else:␍
|
||||
header('Location: getProjectsList.php');␍
|
||||
endif;
|
||||
@@ -0,0 +1,25 @@
|
||||
<?
|
||||
$xmla = simplexml_load_file('../db/todoist.xml');
|
||||
if($xmla->token == '' || $xmla->token == null):?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Todoist : Login</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/index.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<fieldset>
|
||||
<input type="text" name="email" id="email"/><br/>
|
||||
<input type="password" name="password" id="password"/>
|
||||
<span id="loginBtn">Cliquez ici pour vous identifier</span>
|
||||
<div id="error"></div>
|
||||
<span id="todoistRegister">ou <a href="http://todoist.com/Users/showRegister">Cliquez ici</a> pour vous créer un compte (ainsi qu'un projet ;))</span>
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
<?
|
||||
else:
|
||||
header('Location: getProjectsList.php');
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user