getPref(''); if (!isset($menu_pref['online_ls_caption'])) { // Assume that if one isn't set, none are set $menu_pref['online_ls_caption'] = 'LAN_LASTSEEN_1'; //caption for the lastseen_menu $menu_pref['online_ls_amount'] = 10; //amount of records to show in the lastseen_menu $menu_pref['online_caption'] = 'LAN_ONLINE_10'; //caption for the online_menu $menu_pref['online_show_memberlist'] = true; //toggle whether to show a simple member list of online members (shwoing user1, user2, user3) $menu_pref['online_show_memberlist_extended'] = false; //toggle whether to show the extended member list of online members (showing 'user viewing page') } if (isset($_POST['update_menu'])) { $temp = array(); while (list($key, $value) = each($_POST)) { if ($value != LAN_UPDATE) { $temp[$key] = $value; } } if ($admin_log->logArrayDiffs($temp,$menu_pref,'MISC_02')) { $menuPref = e107::getConfig('menu'); //e107::getConfig('menu')->setPref('', $menu_pref); //e107::getConfig('menu')->save(false, true, false); foreach ($temp as $k => $v) { $menuPref->setPref($k, $v); } $menuPref->save(false, true, false); } //$ns->tablerender('', "