Active
Project:
FireStats
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2009 at 16:52 UTC
Updated:
26 Apr 2010 at 08:37 UTC
I didn't want to install visibility api module just to exclude hits for administrator user number 1
so this is my new exit function to avoid hits for administrator user 1:
function firestats_exit() {
global $user;
if ($user->uid == 1) {
return TRUE;
}else{
if ($file_exists = file_exists(FS_INSTALL_PATH) && FS_COLLECT_STATS) {
require_once (FS_INSTALL_PATH);
firestats_add_hit();
return;
}
}
}
Comments
Comment #1
mcarrera commentedsubscribe