FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


get_currentuserinfo();





gonzo
Is this PHP function

Code:
get_currentuserinfo();


disabled for some reason? Its breaking my stats tracking:
http://www.asymptomatic.net/archives/2005/02/15/1309/bastats-pre-release/
Bondings
gonzo wrote:
Is this PHP function

Code:
get_currentuserinfo();


disabled for some reason? Its breaking my stats tracking:
http://www.asymptomatic.net/archives/2005/02/15/1309/bastats-pre-release/


I didn't disable that php-function, but I never used it myself, so I can't really give you much feedback about it. Are you sure that there is no mistake in your code?
gonzo
Bondings wrote:
I didn't disable that php-function, but I never used it myself, so I can't really give you much feedback about it. Are you sure that there is no mistake in your code?

If I knew that I'd write my own plugins Smile I posted on the author's site. It seems to me that function fetches only one piece of information from the server, and is a stand alone call dumped into a variable. That it crashes like that leads me to believe the server doesn't support it, but I could be very wrong. I'll wait till I get a feedback reply from the developer.

Code:
$basp = new BASP();

$bas_options = get_settings('bas_options');
if(!is_array($bas_options)) $bas_options = array();
/* Actually DO statistics logging */
$do_logging = true;
if(!in_array('log_admins', $bas_options))
{
   global $user_level;
   get_currentuserinfo();
   if (isset($user_level) && ($user_level >= 8)) $do_logging = false;
}
if(!in_array('log_console', $bas_options))
{
   if(strstr($_SERVER['REQUEST_URI'], '/wp-admin')) $do_logging = false;
}
if(!in_array('log_content', $bas_options))
{
   if(strstr($_SERVER['REQUEST_URI'], '/wp-content')) $do_logging = false;
}
if($do_logging)
{
   BAStats::log($title);
}
gonzo
Come to think of it that might not be a PHP function but a WordPress function. I dunno
Related topics
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.