MY BAD!! I'm not buying! just asking for something for free!
What I need is a php proxy convertered into php4 form. So basically I need you to convert 2 php proxy scripts, I have, into pure php4 or php3. It is 2 scripts (index.php and index.inc.php) which I will provide an example to below for you to see what your working with.
Index.php example script:
<?php
error_reporting(E_ALL);
//
// CONFIGURABLE OPTIONS
//
$_config* * * * * * = array
* * * * * * * * * * (
* * * * * * * * * * * * 'url_var_name'* * * * * * *=> 'q',
* * * * * * * * * * * * 'flags_var_name'* * * * * *=> 'hl',
* * * * * * * * * * * * 'get_form_name'* * * * * * => '____pgfa',
* * * * * * * * * * * * 'basic_auth_var_name'* * * => '____pbavn',
* * * * * * * * * * * * 'max_file_size'* * * * * * => -1,
* * * * * * * * * * * * 'allow_hotlinking'* * * * *=> 0,
* * * * * * * * * * * * 'upon_hotlink'* * * * * * *=> 1,
* * * * * * * * * * * * 'compress_output'* * * * * => 0
* * * * * * * * * * );
$_flags* * * * * * *= array
* * * * * * * * * * (
* * * * * * * * * * * * 'include_form'* * => 0,
* * * * * * * * * * * * 'remove_scripts'* => 0,
* * * * * * * * * * * * 'accept_cookies'* => 1,
* * * * * * * * * * * * 'show_images'* * *=> 1,
* * * * * * * * * * * * 'show_referer'* * => 0,
* * * * * * * * * * * * 'rotate13'* * * * => 0,
* * * * * * * * * * * * 'base64_encode'* *=> 1,
* * * * * * * * * * * * 'strip_meta'* * * => 1,
* * * * * * * * * * * * 'strip_title'* * *=> 0,
* * * * * * * * * * * * 'session_cookies' => 1
* * * * * * * * * * );
$_frozen_flags* * * = array
* * * * * * * * * * (
* * * * * * * * * * * * 'include_form'* * => 1,
* * * * * * * * * * * * 'remove_scripts'* => 1,
* * * * * * * * * * * * 'accept_cookies'* => 1,
* * * * * * * * * * * * 'show_images'* * *=> 1,
* * * * * * * * * * * * 'show_referer'* * => 1,
* * * * * * * * * * * * 'rotate13'* * * * => 1,
* * * * * * * * * * * * 'base64_encode'* *=> 1,
* * * * * * * * * * * * 'strip_meta'* * * => 1,
* * * * * * * * * * * * 'strip_title'* * *=> 1,
* * * * * * * * * * * * 'session_cookies' => 1
* * * * * * * * * * );* * * * * * * * * *
$_labels* * * * * * = array
* * * * * * * * * * (
* * * * * * * * * * * * 'include_form'* * => array('Include Form', 'Include mini URL-form on every page'),
* * * * * * * * * * * * 'remove_scripts'* => array('Remove Scripts', 'Remove client-side scripting (i.e JavaScript)'),
* * * * * * * * * * * * 'accept_cookies'* => array('Accept Cookies', 'Allow cookies to be stored'),
* * * * * * * * * * * * 'show_images'* * *=> array('Show Images', 'Show images on browsed pages'),
* * * * * * * * * * * * 'show_referer'* * => array('Show Referer', 'Show actual referring Website'),
* * * * * * * * * * * * 'rotate13'* * * * => array('Rotate13', 'Use ROT13 encoding on the address'),
* * * * * * * * * * * * 'base64_encode'* *=> array('Base64', 'Use base64 encodng on the address'),
* * * * * * * * * * * * 'strip_meta'* * * => array('Strip Meta', 'Strip meta information tags from pages'),
* * * * * * * * * * * * 'strip_title'* * *=> array('Strip Title', 'Strip page title'),
* * * * * * * * * * * * 'session_cookies' => array('Session Cookies', 'Store cookies for this session only')
* * * * * * * * * * );
* * * * * * * * * *
$_hosts* * * * * * *= array
* * * * * * * * * * (
* * * * * * * * * * * * '#^127\.|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[01])\.|localhost#i'
* * * * * * * * * * );
$_hotlink_domains* *= array();
$_insert* * * * * * = array();
//
// END CONFIGURABLE OPTIONS. The ride for you ends here. Close the file.
//
$_iflags* * * * * * = '';
$_system* * * * * * = array
* * * * * * * * * * (
* * * * * * * * * * * * 'ssl'* * * * * => extension_loaded('openssl') && version_compare(PHP_VERSION, '4.3.0', '>='),
* * * * * * * * * * * * 'uploads'* * * => ini_get('file_uploads'),
* * * * * * * * * * * * 'gzip'* * * * *=> extension_loaded('zlib') && !ini_get('zlib.output_compression'),
* * * * * * * * * * * * 'stripslashes' => get_magic_quotes_gpc()
* * * * * * * * * * );
$_proxify* * * * * *= array('text/html' => 1, 'application/xml+xhtml' => 1, 'application/xhtml+xml' => 1, 'text/css' => 1);
$_version* * * * * *= '0.5b2';
$_http_host* * * * *= isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost');
$_script_url* * * * = 'http' . ((isset($_ENV['HTTPS']) && $_ENV['HTTPS'] == 'on') || $_SERVER['SERVER_PORT'] == 443 ? 's' : '') . '://' . $_http_host . ($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443 ? ':' . $_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF'];
$_script_base* * * *= substr($_script_url, 0, strrpos($_script_url, '/')+1);
$_url* * * * * * * *= 'http://';
$_url_parts* * * * *= array();
$_base* * * * * * * = array();
$_socket* * * * * * = null;
$_request_method* * = $_SERVER['REQUEST_METHOD'];
$_request_headers* *= '';
$_cookie* * * * * * = '';
$_post_body* * * * *= '';
$_response_headers* = array();
$_response_keys* * *= array();*
$_http_version* * * = '';
$_response_code* * *= 0;
$_content_type* * * = 'text/html';
$_content_length* * = false;
$_content_disp* * * = '';
$_set_cookie* * * * = array();
$_retry* * * * * * *= false;
$_quit* * * * * * * = false;
$_basic_auth_header = '';
$_basic_auth_realm* = '';
$_auth_creds* * * * = array();
$_response_body* * *= '';
//
// FUNCTION DECLARATIONS
//
function show_report($data)
{* *
* * include $data['which'] . '.inc.php';
* * exit(0);
}
function add_cookie($name, $value, $expires = 0)
{
* * return rawurlencode(rawurlencode($name)) . '=' . rawurlencode(rawurlencode($value)) . (empty($expires) ? '' : '; expires=' . gmdate('D, d-M-Y H:i:s \G\M\T', $expires)) . '; path=/; domain=.' . $GLOBALS['_http_host'];
}
function set_post_vars($array, $parent_key = null)
{
* * $temp = array();
* * foreach ($array as $key => $value)
* * {
* * * * $key = isset($parent_key) ? sprintf('%s[%s]', $parent_key, urlencode($key)) : urlencode($key);
* * * * if (is_array($value))
* * * * {
* * * * * * $temp = array_merge($temp, set_post_vars($value, $key));
* * * * }
* * * * else
* * * * {
* * * * * * $temp[$key] = urlencode($value);
* * * * }
* * }
* *
* * return $temp;
Index.inc.php example script:
<?php
if (basename(__FILE__) == basename($_SERVER['PHP_SELF']))
{
* *exit(0);
}
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
*<title>Google Search</title>
*<body bgcolor="#000000">
<!--
.style1 {color: #000000}
-->
*</style>
</head>
<body onload="document.getElementById('address_box').focus()">
<div id="container">
*<h1 align="center" class="style1" id="title"><font color="#FFFFFF" size="+4"><u>p33n0r</u></font></h1>
If you need any more information please PM me here or contact me at:
--- MOD EDIT: Sorry, no contact info on the boards is allowed. ---
BTW: Why does spaces turn into s? Well just pretend the 's arent there