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
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......
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.
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
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.
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.
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
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.
I posted the fix here http://forums.digitalpoint.com/showthread.php?p=1912119. Good luck with your plans.