1 line
		
	
	
		
			433 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			1 line
		
	
	
		
			433 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
$xmla = simplexml_load_file('../db/todoist.xml');
 | 
						|
 | 
						|
if($xmla->token== '' || $xmla->token == null)
 | 
						|
 | 
						|
	header('Location: install-todoist.php');
 | 
						|
 | 
						|
if($xmla->id != '' || $xmla->id != null): 
 | 
						|
 | 
						|
$token 	= $xmla->token;
 | 
						|
 | 
						|
$id		= $xmla->id;?>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
<script type="text/javascript" src="../js/getUncompletedTasks.php?token=<?php echo $token; ?>&id=<?php echo $id; ?>"></script>
 | 
						|
 | 
						|
	<?php else:
 | 
						|
 | 
						|
		header('Location: getProjectsList.php');
 | 
						|
 | 
						|
	endif;
 |