'; return false; } else if (!file_exists($path.'/php/db-hit.php')) { echo "FireStats was not detected at $path.
"; return false; } else { return $path; } } else { return dirname(__FILE__); } } $__path = __get_firestats_path(); if (!$__path) return; require_once($__path.'/php/db-hit.php'); function __firestats_hit() { $site_id = rss_plugins_get_option('firestats.id'); if (empty($site_id)) $site_id = 0; fs_add_site_hit($site_id, false); } function __firestats_nav_button() { if (__firestats_installed_in_gregarius()) { $GLOBALS['rss']->nav->addNavItem('plugins/firestats/','FireStats'); } } function __firestats_config() { if(rss_plugins_is_submit()) { $path = $_REQUEST['firestats_path']; if($path != '') { if (file_exists($path.'/php/db-hit.php')) { rss_plugins_add_option('firestats.path',$path); } else { echo "
FireStats was not found in $path
"; } } else { echo '
You need to enter the path where FireStats is installed
'; } $site_id = $_REQUEST['firestats_id']; if ($site_id == '') $site_id = "0"; rss_plugins_add_option('firestats.id',$site_id); } $path = rss_plugins_get_option('firestats.path'); $site_id = rss_plugins_get_option('firestats.id'); ?> FireStats path
example : /var/www/firestats

Site id
The ID of this Gregarius site in the FireStats sites table