1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

e_dashboard.php upgrades. (replacing e_latest.php and e_status.php)

This commit is contained in:
Cameron
2015-01-22 22:28:41 -08:00
parent 2fef44272e
commit 833567be4c
5 changed files with 60 additions and 50 deletions

View File

@@ -0,0 +1,48 @@
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2015 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Chatbox plugin - Dashboard (Status)
*
*/
/**
* e107 Chatbox plugin
*
* @package e107_plugins
* @subpackage chatbox
* @version $Id$;
*/
if (!defined('e107_INIT')) { exit; }
class chatbox_menu_dashboard // include plugin-folder in the name.
{
function chart()
{
return false;
}
function status()
{
$sql = e107::getDb();
$chatbox_posts = $sql->count('chatbox');
$var[0]['icon'] = "<img src='".e_PLUGIN_ABS."chatbox_menu/images/chatbox_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='' /> ";
$var[0]['title'] = ADLAN_115;
$var[0]['url'] = e_PLUGIN."chatbox_menu/admin_chatbox.php";
$var[0]['total'] = $chatbox_posts;
echo "BLA";
return $var;
}
}
?>