diff options
Diffstat (limited to 'doc/www.powerfulproxy.com/public_html/do_it.php')
-rw-r--r-- | doc/www.powerfulproxy.com/public_html/do_it.php | 8 |
1 files changed, 5 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..8556f73 100644 --- a/doc/www.powerfulproxy.com/public_html/do_it.php +++ b/doc/www.powerfulproxy.com/public_html/do_it.php @@ -30,8 +30,10 @@ $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_CONNECTTIMEOUT => 15, CURLOPT_TIMEOUT => 28, @@ -40,7 +42,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 */ |