2006-02-07, 08:31 AM
I got this situation after applying several themes? what could possibly cause this? I believe I didn't get answer from similar threads, which effect only RCs. CMIW.
TIA.
TIA.
zaher1988 Wrote:and also make sure that in Admin CP > Templates > Modify / Delete > Who's Online Templates> Online_row u have $locationname
<?php phpinfo() ?>
function get_current_location()
{
global $_ENV, $_SERVER, $_POST;
if($_SERVER['REQUEST_URI'])
{
$location = $_SERVER['REQUEST_URI'];
}
elseif($ENV_['REQUEST_URI'])
{
$location = $ENV['REQUEST_URI'];
}
else
{
if($_SERVER['PATH_INFO'])
{
$location = $_SERVER['PATH_INFO'];
}
elseif($_ENV['PATH_INFO'])
{
$location = $_SERVER['PATH_INFO'];
}
elseif($_ENV['PHP_SELF'])
{
$location = $_ENV['PHP_SELF'];
}
else
{
$location = $_SERVER['PHP_SELF'];
}
if($_SERVER['QUERY_STRING'])
{
$location .= "?".$_SERVER['QUERY_STRING'];
}
elseif($_ENV['QUERY_STRING'])
{
$location = "?".$_ENV['QUERY_STRING'];
}
}
if($_SERVER['REQUEST_METHOD'] == "POST" || $_ENV['REQUEST_METHOD'] == "POST")
{
if($_POST['action'])
{
$addloc[] = "action=".$_POST['action'];
}
if($_POST['fid'])
{
$addloc[] = "fid=".$_POST['fid'];
}
if($_POST['tid'])
{
$addloc[] = "tid=".$_POST['tid'];
}
if($_POST['pid'])
{
$addloc[] = "pid=".$_POST['pid'];
}
if($_POST['uid'])
{
$addloc[] ="uid=".$_POST['uid'];
}
if($_POST['eid'])
{
$addloc[] = "eid=".$_POST['eid'];
}
if(is_array($addloc))
{
$location .= "?".implode("&", $addloc);
}
}
return $location;
}
$mybb['location'] = $REQUEST_URI;
$mybb['location'] = get_current_location();