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 = "
+$text = "
@@ -99,97 +94,42 @@ $text = "
- - + + - - - + + + - - - + + + "; if($pref['smiley_activate']) { - $text .= " - - - "; + $text .= " + + + "; } - $text .= " - - - "; - - - $text .= " - - + $text .= " + + + -
".CHBLAN_11.": - -".CHBLAN_12." - ".CHBLAN_11.":".$frm->selectbox('chatbox_posts', array(5, 10, 15, 20, 25), $pref['chatbox_posts'])."".CHBLAN_12."
".CHBLAN_32.": ". r_userclass("cb_mod", $pref['cb_mod'], 'off', "nobody,main,admin, classes")." -
".CHBLAN_32.": ". r_userclass("cb_mod", $pref['cb_mod'], 'off', "nobody,main,admin, classes")."
".CHBLAN_36."". - ($pref['cb_layer'] == 0 ? "" : "")."  ". CHBLAN_37."
". - ($pref['cb_layer'] == 1 ? "" : "")."  ".CHBLAN_29." -- ". CHBLAN_30.":
". - ($pref['cb_layer'] == 2 ? "" : "")."  ". CHBLAN_38." -
".CHBLAN_36."".$frm->radio_multi('cb_layer', array(0 => CHBLAN_37, 1 => CHBLAN_29, 2 => CHBLAN_38), $pref['cb_layer'], true, false) /* FIXME $frm->text('cb_layer', $pref['cb_layer_height'], 3)*/."
".CHBLAN_31."?: ". ($pref['cb_emote'] ? "" : "")." -
".CHBLAN_31."?: ".$frm->checkbox('cb_emote', 1, varset($pref['cb_emote'],0))."
".LAN_PRUNE.": - ".CHBLAN_23." - ".$frm->admin_button('prune', LAN_PRUNE, 'other')." - ".CHBLAN_22." -
".CHBLAN_34.": - ".$frm->admin_button('recalculate', CHBLAN_35, 'other')." -
".LAN_PRUNE.":".CHBLAN_23.$frm->selectbox('chatbox_prune', array(86400 => CHBLAN_24, 604800 => CHBLAN_25, 2592000 => CHBLAN_26, 1 => CHBLAN_27), '', '', true).$frm->admin_button('prune', LAN_PRUNE, 'other')."".CHBLAN_22."
"; + + ".CHBLAN_34.": + ".$frm->admin_button('recalculate', CHBLAN_35, 'other')." + + - $text .= "
- ".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')." +
+ ".$frm->admin_button('updatesettings', LAN_UPDATE, 'update')."
- -
"; + "; $ns->tablerender(CHBLAN_20, $text);