Current location: Hot Scripts Forums » Programming Languages » PHP » Need Help Editing PHProxy Code


Need Help Editing PHProxy Code

Reply
  #1 (permalink)  
Old 01-08-06, 08:29 PM
MeAmRussian MeAmRussian is offline
Newbie Coder
 
Join Date: Dec 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Need Help Editing PHProxy Code

You can get the whole code here:

http://prdownloads.sourceforge.net/p...4.zip?download

It only has 2 php files, 1 javascript file, and 1 css style.

You can see an example of what it can look like here: http://proxyprince.com/

As you can see, there are a lot of checkbox option, such as Strip Website title, Show images, etc. I really don't need any of these options. They can be found in the file PHProxy.class.php.

These options take a lot of room, and I really don't want them. Can someone help me take them out? Whever I try to do it, the functionality of the whole script is lost. Here is the code where I think the checkbox is (you can find it towards the end in PHProxy.class.php):

PHP Code:

    function options_list($tabulate false$comments_on false)

    {
        
$output   '';
        
$comments = array();
        
$comments['include_form']     = array('Include Form'   'Includes a mini URL-form on every HTML page');
        
$comments['remove_scripts']   = array('Remove Scripts' 'Remove client-side scripting (i.e. Javascript)');
        
$comments['accept_cookies']   = array('Accept Cookies' 'Accept HTTP cookies');
        
$comments['show_images']      = array('Show Images'    'Show images');
        
$comments['show_referer']     = array('Show Referer'   'Show referring website in HTTP headers');
        
$comments['strip_meta']       = array('Strip Meta'     'Strip meta HTML tags');
        
$comments['strip_title']      = array('Strip Title'    'Strip Website title');
        
$comments['rotate13']         = array('Rotate13'       'Use rotate13 encoding on the URL');
        
$comments['base64_encode']    = array('Base64'         'Use base64 encoding on the URL');
        
$comments['session_cookies']  = array('Session Cookies''Store cookies for this session only');

        foreach (
$this->flags as $flag_code => $flag_status)
        {
            
$interface = array($comments[$flag_code][0], ' <input type="checkbox" name="ops[]"' . ($flag_status ' checked="checked"' '') . ' /> ');

            if (!
$tabulate)
            {
                
$interface array_reverse($interface);
            }

            
$output .= ($tabulate    '<tr><td class="option">'  ''
                     . 
$interface[0]
                     . (
$tabulate    '</td><td class="option">' ''
                     . 
$interface[1]
                     . (
$comments_on $comments[$flag_code][1]   : ''
                     . (
$tabulate    '</td></tr>'               '');
        }

        return 
$output;
    } 
All those comments are the text for the checkboxes and the following line contains the checkbox:

PHP Code:

$interface = array($comments[$flag_code][0], ' <input type="checkbox" name="ops[]"' . ($flag_status ' checked="checked"' '') . ' /> '); 

I just can't seem to take out the checkboxes without making the script not work. This seems like a lot of examining to do, but it really isn't that much. I'd appreciate any help on this to get rid of the checkboxes.

Thanks a lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[For Sale x2] Commercial ready CMS code Styric General Advertisements 1 05-06-05 10:33 AM
Have a look at my JSP code which is not giving me the desired output j.gohel Everything Java 1 04-07-05 04:55 AM
Can anyone help me ? (problem using php variables in html db insert code) chronic_ PHP 2 06-13-04 12:19 PM
How to sale php code to customer without giving him code pradeep_soft PHP 4 03-12-04 01:10 PM
protecting code in PHP ckb PHP 12 01-02-04 09:53 AM


All times are GMT -5. The time now is 07:07 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.