<?php
$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> 
	<?php else:
	header('Location: ../../../');
	endif;