';
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()
{
fs_add_hit(null, 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 "