2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
2010-01-09 12:06:15 +00:00
|
|
|
/*
|
|
|
|
* e107 website system
|
|
|
|
*
|
2013-03-03 03:49:17 -08:00
|
|
|
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
2010-01-09 12:06:15 +00:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
* Chatbox plugin - Status
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* e107 Chatbox plugin
|
|
|
|
*
|
|
|
|
* @package e107_plugins
|
|
|
|
* @subpackage chatbox
|
2010-02-10 18:18:01 +00:00
|
|
|
* @version $Id$;
|
2010-01-09 12:06:15 +00:00
|
|
|
*/
|
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
2012-12-08 01:31:00 -08:00
|
|
|
class chatbox_menu_status // include plugin-folder in the name.
|
|
|
|
{
|
|
|
|
function config()
|
|
|
|
{
|
|
|
|
$sql = e107::getDb();
|
2013-03-03 03:49:17 -08:00
|
|
|
$chatbox_posts = $sql->count('chatbox');
|
2012-12-08 01:31:00 -08:00
|
|
|
|
|
|
|
$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;
|
|
|
|
|
|
|
|
return $var;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
?>
|