1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-13 02:54:39 +01:00
php-e107/e107_plugins/forum/e_latest.php
2007-02-11 20:09:19 +00:00

15 lines
532 B
PHP

<?php
if (!defined('e107_INIT')) { exit; }
$reported_posts = $sql->db_Count('generic', '(*)', "WHERE gen_type='reported_post' OR gen_type='Reported Forum Post'");
$text .= "<div style='padding-bottom: 2px;'>
<img src='".e_PLUGIN."forum/images/forums_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ";
if ($reported_posts) {
$text .= "<a href='".e_PLUGIN."forum/forum_admin.php?sr'>".ADLAN_LAT_6.": ".$reported_posts."</a>";
} else {
$text .= ADLAN_LAT_6.": ".$reported_posts;
}
$text .= '</div>';
?>