Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Now detects token when clicking "prev" after commencing survey. Uses …
…returnglobal('token') instead of $_GET['token']

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@958 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Mar 21, 2004
1 parent 352d342 commit eee4a63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions question.php
Expand Up @@ -398,7 +398,7 @@
//RUN THIS IF THIS IS THE FIRST TIME
if (!isset($_SESSION['step']) || !$_SESSION['step'])
{
if ($tokensexist == 1 && (!isset($_GET['token']) || !$_GET['token']))
if ($tokensexist ==1 && !returnglobal('token'))
{
sendcacheheaders();
echo "<html>\n";
Expand Down Expand Up @@ -432,10 +432,10 @@
}
exit;
}
if ($tokensexist == 1 && $_GET['token'])
if ($tokensexist == 1 && returnglobal('token'))
{
//check if token actually does exist
$tkquery = "SELECT * FROM {$dbprefix}tokens_$sid WHERE token='{$_GET['token']}' AND completed != 'Y'";
$tkquery = "SELECT * FROM {$dbprefix}tokens_$sid WHERE token='".returnglobal('token')."' AND completed != 'Y'";
$tkresult = mysql_query($tkquery);
$tkexist = mysql_num_rows($tkresult);
if (!$tkexist)
Expand Down

0 comments on commit eee4a63

Please sign in to comment.