Skip to content

Commit

Permalink
More removal of $_SESSION stuff\!
Browse files Browse the repository at this point in the history
  • Loading branch information
kamron committed Jul 29, 2012
1 parent 52ada34 commit aadb4fd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions smsrequest.php
@@ -1,6 +1,6 @@
<?php
require ('./query.php');
// Allows me do debug!
// Allows me to debug!
error_reporting(E_ALL);
ini_set("display_errors",1);

Expand All @@ -16,14 +16,10 @@
if($state = 'MORE' && strcasecmp( 'MORE' , $query )==0) // Set back to QUERY after a MORE
{
$message=$results[0].' '.$results[1];
$state = 'QUERY';
$_SESSION['query']='';
}
else //
{
$message=$results[0]." ".$results[1];
$_SESSION['query'];
$state = 'MORE';
}
}

Expand All @@ -41,5 +37,5 @@
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<Response>
<sms><?php echo $message;?><<?php if(count($results)>1) echo ' Text MORE for more results.'; ?>/sms>
<sms><?php echo $message;?><?php if(count($results)>1) echo ' Text MORE for more results.'; ?></sms>
</Response>

0 comments on commit aadb4fd

Please sign in to comment.