Skip to content

Commit

Permalink
Assigned variables from $_GET instead of requiring register_globals=On.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@138 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
James Richards committed Mar 24, 2003
1 parent 2a63e72 commit 5cd47cc
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/admin.php
Expand Up @@ -33,7 +33,7 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/

$sid = $_GET['sid'];

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Expand Down
5 changes: 5 additions & 0 deletions admin/browse.php
Expand Up @@ -33,6 +33,11 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/
$sid = $_GET['sid'];
$action = $_GET['action'];
$id = $_GET['id'];
$limit = $_GET['limit'];

include("config.php");

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
Expand Down
2 changes: 2 additions & 0 deletions admin/createdb.php
Expand Up @@ -33,6 +33,8 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/
$dbname = $_GET['dbname'];

include("config.php");

echo $htmlheader;
Expand Down
5 changes: 5 additions & 0 deletions admin/dataentry.php
Expand Up @@ -33,6 +33,11 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/
$action = $_GET['action'];
$sid = $_GET['sid'];
$id = $_GET['id'];
$surveytable = $_GET['surveytable'];

include("config.php");

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
Expand Down
2 changes: 2 additions & 0 deletions admin/deletesurvey.php
Expand Up @@ -33,6 +33,8 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/
$sid = $_GET['sid'];

include("config.php");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Expand Down
2 changes: 2 additions & 0 deletions admin/dumpsurvey.php
Expand Up @@ -42,6 +42,8 @@
// 3. questions
// 4. answers

$sid = $_GET['sid'];

include ("config.php");

//echo $htmlheader;
Expand Down
2 changes: 2 additions & 0 deletions admin/export.php
Expand Up @@ -34,6 +34,8 @@
#############################################################
*/

$sid = $_GET['sid'];

if (!$style)
{
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
Expand Down
3 changes: 3 additions & 0 deletions admin/printablesurvey.php
Expand Up @@ -33,6 +33,9 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/

$sid = $_GET['sid'];

$boxstyle = "style='border-color: #111111; border-width: 1; border-style: solid'";
include("config.php");

Expand Down
3 changes: 3 additions & 0 deletions admin/resultsdump.php
Expand Up @@ -33,6 +33,9 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/

$sid = $_GET['sid'];

include("config.php");

if (!$sid)
Expand Down
2 changes: 2 additions & 0 deletions admin/statistics.php
Expand Up @@ -34,6 +34,8 @@
#############################################################
*/

$sid = $_GET['sid'];

include("config.php");

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
Expand Down
6 changes: 6 additions & 0 deletions admin/tokens.php
Expand Up @@ -36,6 +36,12 @@

# TOKENS FILE

$sid = $_GET['sid'];
$action = $_GET['action'];
$tid = $_GET['tid'];
$order = $_GET['order'];
$ok = $_GET['ok'];

include("config.php");

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
Expand Down

0 comments on commit 5cd47cc

Please sign in to comment.