db_Select("logstats", "*", "log_id='statTotal' OR log_id='statUnique' OR log_id='pageTotal'"))
{
while($row = $sql -> db_Fetch())
{
if($row['log_id'] == "statTotal")
{
$siteTotal += $row['log_data'];
}
else if($row['log_id'] == "statUnique")
{
$siteUnique += $row['log_data'];
}
}
}
}
}
if (USER == TRUE || ADMIN == TRUE)
{
$total_new_threads = $sql->db_Count('forum_t', '(*)', "WHERE thread_datestamp>'".USERLV."' ");
if (USERVIEWED != "")
{
$tmp = explode("..", USERVIEWED);
$total_read_threads = count($tmp);
}
else
$total_read_threads = 0;
$total_unread_threads = $total_new_threads - $total_read_threads;
if ($total_unread_threads > 1)
$posts = "".$total_unread_threads." ungelesene Nachrichten - ";
elseif ($total_unread_threads == 1)
$posts = "".$total_unread_threads." ungelesene Nachricht - ";
else
$posts = "";
}
else
$posts = "";
if (!USER)
{
$tmp .= "
$datum - Besucher seit dem 8. November 2005: $siteTotal ($siteUnique)