12 lines
399 B
PHP
12 lines
399 B
PHP
|
<?
|
||
|
$xmla = simplexml_load_file('todoist.xml');
|
||
|
if($xmla->token== '' || $xmla->token == null)
|
||
|
header('Location: index.php');
|
||
|
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;
|