X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=public_html%2Fcgi-bin%2Fpostget.php;h=8ebabc756ad7b96a1a503ec613a8f195c1f7f9fa;hp=244f682cb1e04c83a2d1b65a65cbb5c8a3d06daf;hb=932ed3e52b2766c7ccc06a9c04b2d36055494e9b;hpb=951fcecb34c766ab1330f88efa8dd095618c0bf6 diff --git a/public_html/cgi-bin/postget.php b/public_html/cgi-bin/postget.php index 244f682..8ebabc7 100644 --- a/public_html/cgi-bin/postget.php +++ b/public_html/cgi-bin/postget.php @@ -1,4 +1,5 @@ $val) { if (ereg("^_priv_(postget.*)\$",$val,$matched)) { - $permit=array("127.0.0.1"=>1,"192.168.192.1"=>1,"192.168.90.11"=>1); + $permit=array("127.0.0.1"=>1,"192.168.192.1"=>1,"192.168.90.11"=>1,"192.168.90.12"=>1); if (!$permit[$HTTP_SERVER_VARS["REMOTE_ADDR"]]) print("Forbidden:" ." REMOTE_ADDR=".htmlspecialchars($HTTP_SERVER_VARS["REMOTE_ADDR"]) @@ -15,7 +16,7 @@ ."
" ); else - $HTTP_GET_VARS[$key]=chop(join(" ",file("/home/short/priv/".$matched[1],false/*use_include_path*/))); + $HTTP_GET_VARS[$key]=chop(join(" ",file($path_priv.$matched[1],false/*use_include_path*/))); } }