Change <? to <?php and add some formatting

This commit is contained in:
Shikiryu committed 2016-11-17 22:16:26 +01:00
1 parent 2d5ba7fb8d
commit fb71f8c112
27 files changed
+270 -296

No files matched your search

+1 -3
View File
@@ -1,3 +1 @@
<?␍$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: ../../../');␍ endif;
<?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;
+1 -12
View File
@@ -1,12 +1 @@
<?␍
$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=<?=$token?>&id=<?=$id?>"></script>␍
<? else:␍
header('Location: getProjectsList.php');␍
endif;
<?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;
+2 -2
View File
@@ -1,4 +1,4 @@
<?
<?php
$xmla = simplexml_load_file('../db/todoist.xml');
if($xmla->token == '' || $xmla->token == null):?>
<html>
@@ -18,7 +18,7 @@ if($xmla->token == '' || $xmla->token == null):?>
</fieldset>
</body>
</html>
<?
<?php
else:
header('Location: getProjectsList.php');
endif;