Yes, the scripts need to have the $HTTP_POST_VARS replaced with $_POST and $HTTP_GET_VARS replaced with $_GET.
So Config.php would read <?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 JUL 1997 05:00:00 GMT");
$fp=fopen("../Config/".$_POST["Page"], "w");
while (list($lvar, $lvalue) = each($_POST)){
if (($lvar !="End")AND($lvar !="Page")){
fwrite($fp, $lvar."=".$lvalue."&");
}
}
fwrite($fp,"End=true");
fclose($fp);
?>
SetUnits.php would read <?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 JUL 1997 05:00:00 GMT");
$fp=fopen("../Config/Units.txt", "w");
while (list($lvar, $lvalue) = each($_POST)){
if ($lvar !="End"){
fwrite($fp, $lvar."=".$lvalue."&");
}
}
fwrite($fp,"End=true");
fclose($fp);
?>
SetUser.php would read <?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 JUL 1997 05:00:00 GMT");
$fp=fopen("../Config/User.txt", "w");
fwrite($fp, "Token=".$_POST["Token"]);
fclose($fp);
?>
and the submit.php (which should be renamed on your site to a unique name) would read <?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 JUL 1997 05:00:00 GMT");
if ($_GET["I"]=="DEMO" ){
if ($_GET["F"] != ""){
$fp=fopen("../Data/wflash.txt", "w");
$TempStr=$_GET["F"];
$TempStr2=str_replace(" ","+",$TempStr);
fwrite($fp, "F=".$TempStr2);
}else{
$fp=fopen("../Data/wflash2.txt", "w");
$TempStr=$_GET["S"];
$TempStr2=str_replace(" ","+",$TempStr);
fwrite($fp, "S=".$TempStr2);
}
fclose($fp);
}
?>
Hope this helps...
Best regards,
Ken
Edit: replaced one $HTTP_POST_VARS with $_POST .. thanks Jay for spotting that