1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

e_status and e_latest upgraded to new class format.

This commit is contained in:
Cameron
2012-12-08 01:31:00 -08:00
parent 159fb63bfb
commit e95e27b5c5
6 changed files with 99 additions and 16 deletions

View File

@@ -1,15 +1,22 @@
<?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;
class forum_latest // include plugin-folder in the name.
{
function config()
{
$sql = e107::getDb();
$reported_posts = $sql->db_Count('generic', '(*)', "WHERE gen_type='reported_post' OR gen_type='Reported Forum Post'");
$var[0]['icon'] = E_16_FORUM;
$var[0]['title'] = ADLAN_LAT_6;
$var[0]['url'] = e_PLUGIN."forum/forum_admin.php";
$var[0]['total'] = $reported_posts;
return $var;
}
}
$text .= '</div>';
?>

View File

@@ -1,6 +1,20 @@
<?php
if (!defined('e107_INIT')) { exit; }
$forum_posts = $sql->db_Count('forum_post');
$text .= "<div style='padding-bottom: 2px;'>".E_16_FORUM." ".ADLAN_113.": ".$forum_posts."</div>";
class forum_status // include plugin-folder in the name.
{
function config()
{
$sql = e107::getDb();
$forum_posts = $sql->db_Count('forum_post');
$var[0]['icon'] = E_16_FORUM;
$var[0]['title'] = ADLAN_113;
$var[0]['url'] = e_PLUGIN."forum/forum_admin.php";
$var[0]['total'] = $forum_posts;
return $var;
}
}
?>