Hi John,
I have a hunch that this could be caused by the "p" variable not being passed properly from the address bar to the script.
After this line:
$adminfile = "./admin.php";
add
echo "P=$p<br>";
Browse to the script at ?p=btc and if it says "P=" with no value, there is an issue with "Register Globals" not being enabled.
You would have to add this at the top to set the variable:
$p = $_GET['p'];
or ALL this, to automatically cast all vars to "globals"....
if(isset($_GET)){
while(list($key,$val)=each($_GET)){
if(!is_array($val)){
if($gpc) $val = stripslashes($val);
@eval("\$$key = \$val;");
} else {
eval("\$$key = array();");
foreach ($val as $key2=>$val2){
if($gpc) $val2 = stripslashes($val2);
@eval("array_push(\$$key,\$val2);");
}
}
}
}
I unfortunately cannot do an involved custom script at this time - I need to get the next update finished! Of course, if it can be simplified I might be able to help....
What are you looking for, exactly?
Regards