git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support IPv6.
[nethome.git]
/
public_html
/
cgi-bin
/
postget.php
diff --git
a/public_html/cgi-bin/postget.php
b/public_html/cgi-bin/postget.php
index
9e8677f
..
2975031
100644
(file)
--- a/
public_html/cgi-bin/postget.php
+++ b/
public_html/cgi-bin/postget.php
@@
-7,7
+7,7
@@
foreach ($_REQUEST as $key=>$val) {
if (ereg("^_priv_(postget.*)\$",$val,$matched)) {
foreach ($_REQUEST as $key=>$val) {
if (ereg("^_priv_(postget.*)\$",$val,$matched)) {
- $permit=array("127.0.0.1"=>1,"192.168.192.1"=>1,"192.168.90.11"=>1,"192.168.90.12"=>1);
+ $permit=array("127.0.0.1"=>1,"
::1"=>1,"
192.168.192.1"=>1,"192.168.90.11"=>1,"192.168.90.12"=>1);
if (!$permit[$_SERVER["REMOTE_ADDR"]])
print("Forbidden:"
." REMOTE_ADDR=".htmlspecialchars($_SERVER["REMOTE_ADDR"])
if (!$permit[$_SERVER["REMOTE_ADDR"]])
print("Forbidden:"
." REMOTE_ADDR=".htmlspecialchars($_SERVER["REMOTE_ADDR"])
@@
-15,6
+15,10
@@
.",val=".htmlspecialchars($val)
."<br />"
);
.",val=".htmlspecialchars($val)
."<br />"
);
+ elseif ($matched[1]=="postget.time()") {
+ // At least 2 - time slip?
+ $_REQUEST[$key]=time()-131-60;
+ }
else
$_REQUEST[$key]=chop(join(" ",file($path_priv.$matched[1],false/*use_include_path*/)));
}
else
$_REQUEST[$key]=chop(join(" ",file($path_priv.$matched[1],false/*use_include_path*/)));
}