summaryrefslogtreecommitdiff
path: root/doc/www.powerfulproxy.com/public_html/do_it.php
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2011-09-23 01:08:39 -0500
committerd3v11 <d3v11@d3v11.ano>2011-09-23 01:08:39 -0500
commit6f79af55b43892978a4345c7f8baae0bdd48dfce (patch)
treeecd3fa17a3f1b39fc735c36cea4fb51e966f8ecb /doc/www.powerfulproxy.com/public_html/do_it.php
parent77dd193a273e5ed01e83bd914ca69b1d88958f4a (diff)
parent670883f6e601388ce56a96bfaa14671174b4fb17 (diff)
downloadresdb-6f79af55b43892978a4345c7f8baae0bdd48dfce.tar.gz
resdb-6f79af55b43892978a4345c7f8baae0bdd48dfce.zip
Merge branch 'master' of git://git1.somerandomnick.ano
Diffstat (limited to 'doc/www.powerfulproxy.com/public_html/do_it.php')
-rw-r--r--doc/www.powerfulproxy.com/public_html/do_it.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/www.powerfulproxy.com/public_html/do_it.php b/doc/www.powerfulproxy.com/public_html/do_it.php
index 39be1d7..48c128e 100644
--- a/doc/www.powerfulproxy.com/public_html/do_it.php
+++ b/doc/www.powerfulproxy.com/public_html/do_it.php
@@ -30,9 +30,12 @@ $REWRITE_PATTERNS = array(
// '@(src|href|action)\s*=\s*(\'|")/([^\'"]*)\2@i' => '$1=$2'.$SERVICEURL.$proto.'/'.$host.'/$3$2',
'@(<[^>]*)(src|href|action)\s*=\s*(\'|")/([^\'"]*)\3@i' => '$1$2=$3'.$SERVICEURL.$proto.'/'.$host.'/$4$3',
);
-$CURL_OPTIONS = array(
- CURLOPT_USERAGENT => "AnoNet proxy",
+if (file_exists("do_it.inc")) include "do_it.inc";
+if (!isset($CURL_OPTIONS)) $CURL_OPTIONS = array(
+// CURLOPT_USERAGENT => "AnoNet proxy",
+ CURLOPT_USERAGENT => $_SERVER["HTTP_USER_AGENT"]." AnoNetProxy",
CURLOPT_AUTOREFERER => TRUE,
+ CURLOPT_REFERER => $_SERVER["HTTP_REFERER"],
CURLOPT_CONNECTTIMEOUT => 15,
CURLOPT_TIMEOUT => 28,
CURLOPT_MAXREDIRS => 10,
@@ -40,7 +43,7 @@ $CURL_OPTIONS = array(
CURLOPT_HEADER => 1,
CURLOPT_FOLLOWLOCATION => FALSE,
// CURLOPT_INTERFACE => '0.0.0.0',
-// CURLOPT_PROXY => "http://b.polipo.srn.ano:8000/",
+ CURLOPT_PROXY => "http://b.polipo.srn.ano:8000/",
// CURLOPT_PROXYUSERPWD => 'username:password',
);
/* END OF CONFIGURATION */