PDA

View Full Version : Need Help-Look at this now!-Reward



ardnat
May 5th, 2007, 16:27
ok im looking at PHProxy an example page would be
http://mrhidden.com/

on http://mrhidden.com/ if you look at the soucre there is a fourm called "q" this is where you put the url of the site you want to go to, also the action of the fourm submits it to index.php

so lets say i want to go to google.com i should be able to put in mrhidden.com/index.php?q=google.com but that wont work
if you put in google.com and submit it the adress bar looks like this
http://mrhidden.com/index.php?q=aHR0cDovL2dvb2dsZS5jb20

any idea how to make it work so i can submit an adress just by typeing something in

krakjoe
May 6th, 2007, 13:48
<?php

/**
* @author
* @copyright 2007
*/
define("PROXY_INDEX", 'http://mrhidden.com/index.php' );

if( $_POST ):
if( trim( $_POST['q'] ) != "" ) :
header( sprintf('location: &#37;s?q=%s', PROXY_INDEX, base64_encode( trim( $_POST['q'] ) ) ) );
exit;
else:
echo 'Enter an address dummy<br />';
endif;
endif;
?>
<form action="" method="post" >
Enter a url : <input type="text" name="q" /><input type="submit" value="Browse" />
</form>