Change <? to <?php and add some formatting

This commit is contained in:
2016-11-17 22:16:26 +01:00
parent 2d5ba7fb8d
commit fb71f8c112
27 changed files with 270 additions and 296 deletions

View File

@@ -1,21 +1 @@
<?
$xmla = simplexml_load_file('../db/todoist.xml');
if(isset($_POST['token'])){
$token = trim($_POST['token']);
$xmla->addChild("token", $token);
$xmla->asXML('../db/todoist.xml');
echo "ok";
}else if(isset($_POST['name']) && isset($_POST['id'])){
<?php

View File

@@ -1,3 +1 @@
<?
$xmla = simplexml_load_file('../db/todoist.xml');
if($xmla->token== '' || $xmla->token == null)
<?php

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;
<?php

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;

View File

@@ -1,6 +1 @@
<?header('Content-type: application/javascript');
$token = $_GET['token'];
?>
<?header('Content-type: application/javascript');

View File

@@ -1,9 +1 @@
<?header('Content-type: application/javascript');
$token = $_GET['token'];
$id = $_GET['id'];
?>
function cbfunc(o){
$('#results').append('<ul id="uncompletedList"><ul>');
for(var i in o)
{
<?header('Content-type: application/javascript');