diff --git a/e107_plugins/login_menu/config.php b/e107_plugins/login_menu/config.php index 15a6e1cfe..060026bd4 100644 --- a/e107_plugins/login_menu/config.php +++ b/e107_plugins/login_menu/config.php @@ -45,6 +45,9 @@ $loginClass = new login_menu_class(); $menuPref = e107::getConfig('menu'); // Pref object $loginPrefs = $menuPref->getPref('login_menu'); // Array of login-related values +require_once(e_HANDLER.'message_handler.php'); +$mes = e107::getMessage(); + if (isset($_POST['update_menu'])) { //sort/show/hide links - Start @@ -100,8 +103,9 @@ if (isset($_POST['update_menu'])) //$menuPref->setPref('login_menu', $loginPrefs); $menuPref->save(false, true, false); $admin_log->log_event('MISC_03','', E_LOG_INFORMATIVE,''); - $ns->tablerender("", '
'.LAN_SETSAVED.'
'); - + //$ns->tablerender("", '
'.LAN_SETSAVED.'
'); + $mes->addSuccess(); + $ns->tablerender("", $mes->render() . $text); } if (!isset($loginPrefs['new_news'])) @@ -113,47 +117,49 @@ if (!isset($loginPrefs['new_news'])) $frm = e107::getForm(); -$text = ' -
- +$text = " + +
+ + + + - '.$loginClass->render_config_links().' + ".$loginClass->render_config_links()." + "; + + /* - + - + */ + + $text .= " - - + + - - + + - - + + - '.$loginClass->render_config_stats().' + ".$loginClass->render_config_stats()."
'.LOGIN_MENU_L42.''.LOGIN_MENU_L42.'
'.LOGIN_MENU_L31.' - - ".LOGIN_MENU_L31."".$frm->checkbox('pref[new_news]', 1, varset($loginPrefs['new_news'],0))."
'.LOGIN_MENU_L34.' - - ".LOGIN_MENU_L34."".$frm->checkbox('pref[new_comments]', 1, varset($loginPrefs['new_comments'],0))."
'.LOGIN_MENU_L36.' - - ".LOGIN_MENU_L36."".$frm->checkbox('pref[new_members]', 1, varset($loginPrefs['new_members'],0))."
-
- - '.$frm->admin_button('update_menu', LAN_SAVE, 'update').' + +
+ ".$frm->admin_button('update_menu', LAN_SAVE, 'update')."
-
- '; + "; $ns->tablerender(LOGIN_MENU_L41, $text);