ajax
class
css
db
images
includes
js
modules
blogs
clock
clockAdvanced
gmap
links
mappy
news
notes
ouifm
rssblogs
search
todo
ajax
css
db
includes
getProjectsList.php
getUncompletedTasks.php
install-todoist.php
js
Todo.php
weather
.gitignore
index.php
25 lines
872 B
PHP
25 lines
872 B
PHP
<?php
|
|
$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>
|
|
<?php
|
|
else:
|
|
header('Location: getProjectsList.php');
|
|
endif;
|
|
|