Change <? to <?php and add some formatting
This commit is contained in:
@@ -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
|
@@ -1,3 +1 @@
|
||||
<?
|
||||
$xmla = simplexml_load_file('../db/todoist.xml');
|
||||
if($xmla->token== '' || $xmla->token == null)
|
||||
<?php
|
@@ -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
|
@@ -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;
|
||||
|
@@ -1,6 +1 @@
|
||||
<?header('Content-type: application/javascript');
|
||||
|
||||
$token = $_GET['token'];
|
||||
|
||||
?>
|
||||
|
||||
<?header('Content-type: application/javascript');
|
@@ -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');
|
Reference in New Issue
Block a user