Arnages, email me the script. I guess ill better understand it then. Sfroelich01 {at> gmail dot com
Perfection comes at a cost
I accept liberty!
Started on the old forum in February 2011 · view the original in the archive · old links redirect here
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Arnages, email me the script. I guess ill better understand it then. Sfroelich01 {at> gmail dot com
Perfection comes at a cost
I accept liberty!
Here is another way
Replace
$linkrow = array($row[this]);
foreach ($linkrow as $go) {
$go = str_replace('http://', null, $go);
$go = htmlentities($go, ENT_QUOTES);
echo '
<a href="/index.php?a=going&go='.urlencode($go).'"><span class="si_y">'.$go.'</span></a>';
}
With
$linkrow = array($row[this]);
foreach ($linkrow as $go) {
$go = str_replace('http://', null, $go);
$go = htmlentities($go, ENT_QUOTES);
echo '
<a href="/index.php?a=going&go='.urlencode($go).'&key='.md5(urlencode($go)).'"><span class="si_y">'.$go.'</span></a>';
}
and this
elseif ($a == 'going') {
$go = $_GET['go'];
if( !isset($go) || $go == '') { exit; }
header('Location: http://'.$go.'/');
exit;
}
with
elseif ($a == 'going') {
$go = $_GET['go'];
$key = $_GET["key"];
if($key!==md5($go) || !isset($go) || $go == '') { exit; }
header('Location: http://'.$go.'/');
exit;
}
I can only guess you are wanting to do this to stop referrer information being passed ? ..... if so its still pointless as you can use any site as referrer very easily eg by posting javascript into your url bar:
javascript:window.location="http://somesite.con";
or there is a few other ways.
It seems that this is the solution to my problem. Thanks Wap2k! Tomorrow I will try to implement it, for some time I have no internet at home, now I am with relatives.
I didn't know for that Something else, thanks for the info. Going to keep this in mind.