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

    It is indeed against the rules to offer payment for work.

    It is not against the rules however to ask people to do things for free. It is just that noone will do it.

      Your right and what i meant was nice. If I needed help on a script I would as for some help on it making the person helpful and if I needed help putting new tires on my car that would count as helpful. I want an entire script. I didn't ask for "help" on a script so since I didn't use the word help anywhere how the hell am I asking for help? I'm guessing that type of post is how you got to 14.8k posts? Kinda sad if you ask me

        seargentpepper7 wrote:

        I'm guessing that type of post is how you got to 14.8k posts? Kinda sad if you ask me

        Quite wrong - he's accumulated that many posts because he: 1) is a well respected member of this community, 2) educates the posters that come here, 3) educates even the regulars (quite often, too :p), 3) shares his knowledge/opinions, 4) offers constructive criticism, 5) tries to make PHPBuilder a better place.

        Now, am I saying that the type of person who fits the above categories is never a sarcastic person? Of course not! I can be rather sarcastic and curt myself... I almost wonder if it isn't a common trait with people who work/volunteer in a HelpDesk type of position.

        Anyway... I listed 5 categories above that are positive motives behind posting. Please point out any of them that your quote fits into.

          I am sure that someone will want to work for free when the "employer" have that attitude. You are not only rude to suggest that someone want to solve your problems for you, you actually insult people that say no to your ridiculous suggestion.

          To Weedpacket: Nice link, I can't understand that I haven't read that post before.

            sergeantpepper7 wrote:

            If I needed help on a script I would as for some help on it making the person helpful and if I needed help putting new tires on my car that would count as helpful. I want an entire script. I didn't ask for "help" on a script so since I didn't use the word help anywhere how the hell am I asking for help?

            Thank you for making my point for me. You didn't ask for help, you just wanted us to do charity work for you (apparently you offered to pay for the work, which would have been in violation of the site's AUP). I'm fully capable of putting tyres on my car myself. I didn't ask for help putting tyres on my car. I asked for someone to give me whole new tyres.

            Consider the forum you posted in: "PHPBuilder.com > PHP Help > Coding" - it's at the top of the page.
            The blurb for the forum (which appears under the link on the forum listing is "Help with PHP coding".

            So ... you weren't asking for help?

            Recommendation in future: find out what a forum is about and what the house rules are before posting, and you'll be more likely to avoid such faux pas.

              Alternatively, if you're just looking for scripts instead of coding help, I'd recommend searching over at HotScripts.

                Write a Reply...