View Single Post
Old September 11th, 2007, 2:34 PM   #2 (permalink)
MarkRH
Race Surpass
Super #1
 
MarkRH's Avatar
 
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,214 posts
Gave thanks: 18
Thanked 86 times
Sounds like register_globals has been disabled on the server, which is a good thing for security reasons.

Change:

PHP Code:
<?php 
if ($PG="/0") { $PG "home"; } 
$PAGE $PG ".php";
include(
$PAGE)?>
to:
PHP Code:
<?php 
if (empty($_GET['PG'])) { $PG "home"; } else { $PG $_GET['PG']; } 
$PAGE $PG ".php";
include(
$PAGE)?>
or more stream lined:
PHP Code:
<?php 
if (empty($_GET['PG'])) { $PG "home"; } else { $PG $_GET['PG']; } 
include(
$PG ".php")?>
That should do it. The $_GET array includes the variable/value pairs sent via the URL after the "?". The empty funtion comes back true if PG does not exist or has no value.
MarkRH is offline   Reply With Quote
This user thanks MarkRH for this great post!
Smo_Bob (September 11th, 2007)