Tyler
March 11th, 2006, 18:28
I am dumbfounded at why this is happening.
I have install.php, and here is what I have:
//Licensing details, MAY NOT REMOVE UNDER ANY CIRUMSTANCES
$ip = str_replace('.','-',$_SERVER['REMOTE_ADDR']);
$hostname = str_replace('.','-',$_SERVER['HTTP_HOST']);
$path = str_replace('/','-',$_SERVER['PHP_SELF']);
$path = str_replace('.','-',$path);
$time = time();
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'install.php?finish=true';
header("Referer: http://$host$uri/$extra\r\n");
header("Location: URLtolicense");
And then I have my license script:
$ref = $_SERVER['HTTP_REFERER'];
header("Location: $ref");
Now this is the weird part...If I go from the directory and then click on install.php, it'll redirect me to the directory listing. But if I do install.php as a direct URL, it'll redirect to the license script and just sit there. And in my error log, it has an undefined referrer.
So I am very lost at why this is happening! :blush:
I have install.php, and here is what I have:
//Licensing details, MAY NOT REMOVE UNDER ANY CIRUMSTANCES
$ip = str_replace('.','-',$_SERVER['REMOTE_ADDR']);
$hostname = str_replace('.','-',$_SERVER['HTTP_HOST']);
$path = str_replace('/','-',$_SERVER['PHP_SELF']);
$path = str_replace('.','-',$path);
$time = time();
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'install.php?finish=true';
header("Referer: http://$host$uri/$extra\r\n");
header("Location: URLtolicense");
And then I have my license script:
$ref = $_SERVER['HTTP_REFERER'];
header("Location: $ref");
Now this is the weird part...If I go from the directory and then click on install.php, it'll redirect me to the directory listing. But if I do install.php as a direct URL, it'll redirect to the license script and just sit there. And in my error log, it has an undefined referrer.
So I am very lost at why this is happening! :blush: