PHP Proxy - Always Display URL Form ??

Discussion in 'Programming' started by Marx, Dec 10, 2006.

  1. #1
    Hi All

    I was womndering if anyone knows how to make phpproxy always display the url, there is a checkbox, that currently needs to be ticked, can it be made so its always on ?

    Cheers Marx
     
    Marx, Dec 10, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    inside the form in the <input type="text" name="url" > add or edit value="<?=$_POST['url'] ?>" where url is the name of the text fields......
     
    krakjoe, Dec 10, 2006 IP
  3. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #3
    Which checkbox are you referring to?

    • Include Form Includes a mini URL-form on every HTML page
    • Remove Scripts Remove all sorts of client-side scripting
    • Accept Cookies Accept HTTP cookies
    • Show Images Show images
    • Show Referer Show referring website in HTTP headers
    • New Window

    Just edit index.php to set or unset this variable. You can then also delete the check box.
     
    Will.Spencer, Dec 10, 2006 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    oh u meant display the url form like in the title....
     
    krakjoe, Dec 10, 2006 IP
  5. Marx

    Marx Peon

    Messages:
    841
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Cheers for the help guys, I mean the options the proxy gives at the front page, there is a list of options, and one is "Includes a mini URL-form on every HTML page" this by default is unticked but I want to make it so its permanently ticked so people cannot remove the mini bar from the top if proxied pages.

    I think this is the code but not sure what to edit to remove the option or make it permanently ticked

    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');

    Thanks Marx
     
    Marx, Dec 10, 2006 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #6
    Can u not just change the html form bit ?

    checked=checked inside the tag should do, if not, then create a new hidden field with the same name and give it a value of 1 to make it appear as true.
     
    krakjoe, Dec 10, 2006 IP
  7. IntelliGuy

    IntelliGuy Banned

    Messages:
    42
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    In function:
    function set_flags($flags)
    Code (markup):
    Add this line:
    $flags{0} = 1;
    Code (markup):
    Before this line:
    setcookie('flags', $flags, time()+(4*7*24*60*60), '', $this->http_host);
    Code (markup):
    But remember, PHProxy has a bug. It wont include the url form to proxied pages if the BODY tag has no attributes defined (<body>) even if this option is enabled.
     
    IntelliGuy, Dec 10, 2006 IP
    designcodes likes this.
  8. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #8
    Just write "checked=checked" and then "disabled". that way it is checked and people cant change it. or it could be "disabled=true" or "disabled="disabled". Pretty sure its the first one though
     
    rochow, Dec 10, 2006 IP
  9. weknowtheworld

    weknowtheworld Guest

    Messages:
    306
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yes you are correct..
     
    weknowtheworld, Dec 11, 2006 IP
  10. Evolv5

    Evolv5 Well-Known Member

    Messages:
    777
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #10

    And there's no way of fixing this bug? Except converting to CGi Proxy? Because I have a GoDaddy hosting account which is going to stand empty for the next 6 months, and I dont know what to do with it, and I was planning of a proxy then, but, I cant get the Cgi Proxy script to work.
     
    Evolv5, Dec 11, 2006 IP
  11. IntelliGuy

    IntelliGuy Banned

    Messages:
    42
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I posted the fix here http://forums.digitalpoint.com/showthread.php?p=1912119. Good luck with your plans.
     
    IntelliGuy, Dec 12, 2006 IP
  12. Evolv5

    Evolv5 Well-Known Member

    Messages:
    777
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #12
    Ahh, thanks a lot man! Added some rep ;)
     
    Evolv5, Dec 13, 2006 IP