diff --git a/e107_plugins/chatbox_menu/admin_chatbox.php b/e107_plugins/chatbox_menu/admin_chatbox.php index b418b9ff1..2bf15b918 100644 --- a/e107_plugins/chatbox_menu/admin_chatbox.php +++ b/e107_plugins/chatbox_menu/admin_chatbox.php @@ -2,20 +2,13 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2013 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * - * - * $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/admin_chatbox.php,v $ - * $Revision$ - * $Date$ - * $Author$ */ require_once("../../class2.php"); -$frm = e107::getForm(); if (!plugInstalled('chatbox_menu') || !getperms("P")) { @@ -27,8 +20,8 @@ include_lan( e_PLUGIN."chatbox_menu/languages/".e_LANGUAGE."/admin_chatbox_menu. require_once(e_ADMIN."auth.php"); require_once(e_HANDLER."userclass_class.php"); -require_once(e_HANDLER."message_handler.php"); $mes = e107::getMessage(); +$frm = e107::getForm(); if (isset($_POST['updatesettings'])) { @@ -49,7 +42,6 @@ if (isset($_POST['updatesettings'])) } } -; if (isset($_POST['prune'])) { @@ -89,9 +81,12 @@ if (isset($_POST['recalculate'])) $ns->tablerender($caption, $mes->render() . $text); -$chatbox_posts = $pref['chatbox_posts']; +if(!isset($pref['cb_mod'])) +{ + $pref['cb_mod'] = e_UC_ADMIN; +} -$text = "