summaryrefslogtreecommitdiff
path: root/doc/www.powerfulproxy.com/public_html
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2011-05-11 05:33:56 +0000
committerNick <nick@somerandomnick.ano>2011-05-11 05:33:56 +0000
commitf2cc5f0acce710f9a29baebae2634e3810e7dda9 (patch)
treed7adf840059d14d638a0d1ee989311bb2707cc99 /doc/www.powerfulproxy.com/public_html
parentce951043c47a3bf383f02c72865bacd175a98baf (diff)
downloadresdb-f2cc5f0acce710f9a29baebae2634e3810e7dda9.tar.gz
resdb-f2cc5f0acce710f9a29baebae2634e3810e7dda9.zip
bugfix in powerfulproxy
Diffstat (limited to 'doc/www.powerfulproxy.com/public_html')
-rw-r--r--doc/www.powerfulproxy.com/public_html/do_it.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/www.powerfulproxy.com/public_html/do_it.php b/doc/www.powerfulproxy.com/public_html/do_it.php
index 0a5fedb..acbd235 100644
--- a/doc/www.powerfulproxy.com/public_html/do_it.php
+++ b/doc/www.powerfulproxy.com/public_html/do_it.php
@@ -10,8 +10,9 @@ array_shift($pall);
$proto = array_shift($pall);
$host = array_shift($pall);
$hostparts = explode('.', $host);
-if (ip2long(long2ip($host))===$host) if ($hostparts[0]!='1') die('Bad IP');
-if (!preg_match("/ano|ntwrk$/",array_pop($hostparts))) die('Bad host');
+if (ip2long(long2ip($host))===$host) {
+ if ($hostparts[0]!='1') die('Bad IP');
+} elseif (!preg_match("/ano|ntwrk$/",array_pop($hostparts))) die('Bad host');
$path = implode('/', $pall);
array_pop($pall);
$rp = implode('/', $pall);