$val) {
if (ereg("^_priv_(postget.*)\$",$val,$matched)) {
if ($HTTP_SERVER_VARS["REMOTE_ADDR"]!="127.0.0.1")
print("Forbidden:"
." REMOTE_ADDR=".htmlspecialchars($HTTP_SERVER_VARS["REMOTE_ADDR"])
.",key=".htmlspecialchars($key)
.",val=".htmlspecialchars($val)
."
"
);
else
$HTTP_GET_VARS[$key]=chop(join(" ",file("/home/short/priv/".$matched[1],false/*use_include_path*/)));
}
}
if ($getget) {
$first='?';
foreach ($HTTP_GET_VARS as $key=>$val) {
$where.="${first}$key=$val";
$first='&';
}
header("Location: $where");
}
header("Content-type: text/html");
print(''."\n");
?>
\n" ."get\n" ."
\n"); } else { print("" ."\n" ."\n"); } ?>