Skip to content

Commit

Permalink
Fixed links to statistics script so that they aren't a register_globa…
Browse files Browse the repository at this point in the history
…ls issue ($sql post variable)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@42 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Mar 16, 2003
1 parent c8e577a commit 1918278
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/export.php
Expand Up @@ -48,7 +48,7 @@
echo "\t<tr>\n";
echo "\t\t<td align='center'>\n";
echo "\t\t\t$setfont<b>Export Data";
if ($sql) {echo " from Statistics Filter";}
if ($_POST['sql']) {echo " from Statistics Filter";}
echo "</b>\n";
echo "\t\t</td>\n";
echo "\t</tr>\n";
Expand Down Expand Up @@ -82,7 +82,7 @@
echo "\t\t</td>\n";
echo "\t</tr>\n";
echo "\t<input type='hidden' name='sid' value='$sid'>\n";
if ($sql) {echo "\t<input type='hidden' name='sql' value=\"".stripcslashes($sql)."\">\n";}
if ($_POST['sql']) {echo "\t<input type='hidden' name='sql' value=\"".stripcslashes($_POST['sql'])."\">\n";}
echo "\t</form>\n";
echo "\t<tr>\n";
echo "\t\t<td align=\"center\">\n";
Expand Down Expand Up @@ -184,9 +184,9 @@
$legitqs[] = $lw[0];
}
$surveytable = "survey_{$sid}";
if ($sql)
if ($_POST['sql'])
{
$dquery = "SELECT * FROM $surveytable WHERE ".stripcslashes($sql)." ORDER BY id";
$dquery = "SELECT * FROM $surveytable WHERE ".stripcslashes($_POST['sql'])." ORDER BY id";
}
else
{
Expand Down

0 comments on commit 1918278

Please sign in to comment.