| 22 |
echo "<strong>OS:</strong> " . substr(php_uname(),0,7) . "<br />\n"; |
echo "<strong>OS:</strong> " . substr(php_uname(),0,7) . "<br />\n"; |
| 23 |
echo "<strong>PHP:</strong> " .phpversion() . "<br />\n"; |
echo "<strong>PHP:</strong> " .phpversion() . "<br />\n"; |
| 24 |
echo "<strong>MySQL:</strong> " .mysql_get_server_info() . "<br />\n"; |
echo "<strong>MySQL:</strong> " .mysql_get_server_info() . "<br />\n"; |
| 25 |
echo "<strong>"._TIME_STAT.": </strong> " .date("H:i",time()+($mosConfig_offset*60*60)) . "<br />\n"; |
echo "<strong>".T_('Time').": </strong> " .date("H:i",time()+($mosConfig_offset*60*60)) . "<br />\n"; |
| 26 |
$c = $mosConfig_caching ? 'Enabled':'Disabled'; |
$c = $mosConfig_caching ? T_('Enabled'):T_('Disabled'); |
| 27 |
echo "<strong>Caching:</strong> " . $c . "<br />\n"; |
echo "<strong>Caching:</strong> " . $c . "<br />\n"; |
| 28 |
$z = $mosConfig_gzip ? 'Enabled':'Disabled'; |
$z = $mosConfig_gzip ? T_('Enabled'):T_('Disabled'); |
| 29 |
echo "<strong>GZIP:</strong> " . $z . "<br />\n"; |
echo "<strong>GZIP:</strong> " . $z . "<br />\n"; |
| 30 |
} |
} |
| 31 |
|
|
| 32 |
if ($siteinfo) { |
if ($siteinfo) { |
| 33 |
$query="SELECT count(id) AS count_users FROM #__users"; |
$query="SELECT count(id) AS count_users FROM #__users"; |
| 34 |
$database->setQuery($query); |
$database->setQuery($query); |
| 35 |
echo "<strong>"._MEMBERS_STAT.":</strong> " .$database->loadResult() . "<br />\n"; |
echo "<strong>".T_('Members').":</strong> " .$database->loadResult() . "<br />\n"; |
| 36 |
|
|
| 37 |
$query="SELECT count(id) as count_items from #__content"; |
$query="SELECT count(id) as count_items from #__content"; |
| 38 |
$database->setQuery($query); |
$database->setQuery($query); |
| 39 |
echo "<strong>"._NEWS_STAT.":</strong> ".$database->loadResult() . "<br />\n"; |
echo "<strong>".T_('News').":</strong> ".$database->loadResult() . "<br />\n"; |
| 40 |
|
|
| 41 |
$query="SELECT count(id) as count_links FROM #__weblinks WHERE published='1'"; |
$query="SELECT count(id) as count_links FROM #__weblinks WHERE published='1'"; |
| 42 |
$database->setQuery($query); |
$database->setQuery($query); |
| 43 |
echo "<strong>"._LINKS_STAT.":</strong> ".$database->loadResult() . "<br />\n"; |
echo "<strong>".T_('WebLinks').":</strong> ".$database->loadResult() . "<br />\n"; |
| 44 |
} |
} |
| 45 |
|
|
| 46 |
if ($mosConfig_enable_stats) { |
if ($mosConfig_enable_stats) { |
| 54 |
$hits = $hits + $increase; |
$hits = $hits + $increase; |
| 55 |
|
|
| 56 |
if ($hits == NULL) { |
if ($hits == NULL) { |
| 57 |
$content .= "<strong>" . _VISITORS . ":</strong> 0\n"; |
$content .= "<strong>" . T_('Visitors') . ":</strong> 0\n"; |
| 58 |
} else { |
} else { |
| 59 |
$content .= "<strong>" . _VISITORS . ":</strong> " . $hits . "\n"; |
$content .= "<strong>" . T_('Visitors') . ":</strong> " . $hits . "\n"; |
| 60 |
} |
} |
| 61 |
} |
} |
| 62 |
} |
} |