Quote:
Originally Posted by Trigunflame
Quote:
---------------------------------------------------------
if ($value['showlink'] == 1)
{
require_once('./includes/functions_login.php');
$userinfo['location'] = stripslashes(fetch_replaced_session_url(htmlspecia lchars_uni(stripslashes($useri nfo['location']))));
$userinfo['location'] = ereg_replace('&','&',$userinfo[location]);
$userinfo['where'] = "<a href=\"$userinfo[location]\">$value[where]</a>";
}
---------------------------------------------------------
That is not a bug in the script, all this does is compare filenames which im using vbulletins method. No way would i Include (functions_login.php) a Whole other functions file into the login functions.. a much easier way to do it im sure.
|
ok i altered it so you it dont use the include any longer ......
this is the code im using now and it works just the same without the include .
Code:
if ($value['showlink'] == 1)
{
$url = htmlspecialchars_uni(stripslashes($userinfo['location']));
$url = addslashes($url);
$url = preg_replace('/(s|sessionhash)=[a-z0-9]{32}(&|&){0,1}/', '', $url);
if ($session['sessionurl'] != '')
{
if (strpos($url, '?') !== false)
{
$url .= "&$session[sessionurl]";
}
else
{
$url .= "?$session[sessionurl]";
}}
$userinfo['location'] = stripslashes(stripslashes($url));
$userinfo['location'] = ereg_replace('&','&',$userinfo[location]);
$userinfo['where'] = "<a href=\"$userinfo[location]\">$value[where]</a>";
}
hope this works for everyone else