'news.php', 'title' => ADLAN_0); $front_page['download'] = array('page' => 'download.php', 'title' => ADLAN_24); $front_page['wmessage'] = array('page' => 'index.php', 'title' => ADLAN_28); if ($sql -> db_Select("page", "*", "page_theme=''")) { $front_page['custom']['title'] = 'Custom Page'; while ($row = $sql -> db_Fetch()) { $front_page['custom']['page'][] = array('page' => 'page.php?'.$row['page_id'], 'title' => $row['page_title']); } } foreach($pref['e_frontpage_list'] as $val) { if (is_readable(e_PLUGIN.$val."/e_frontpage.php")) { require_once(e_PLUGIN.$val."/e_frontpage.php"); } } if (isset($_POST['edit'])) { $_POST['type'] = (isset($_POST['edit']['all'])) ? 'all_users' : 'user_class'; $_POST['class'] = key($_POST['edit']); } if (isset($_POST['updatesettings'])) { if ($_POST['frontpage'] == 'other') { $_POST['other_page'] = $tp -> toForm($_POST['other_page']); $frontpage_value = $_POST['other_page'] ? $_POST['other_page'] : 'news.php'; } else { if (is_array($front_page[$_POST['frontpage']]['page'])) { $frontpage_value = $front_page[$_POST['frontpage']]['page'][$_POST['multipage'][$_POST['frontpage']]]['page']; } else { $frontpage_value = $front_page[$_POST['frontpage']]['page']; } } if ($_POST['type'] == 'all_users') { unset($pref['frontpage']); $pref['frontpage']['all'] = $frontpage_value; } else { if (isset($pref['frontpage']['all'])) { $pref['frontpage']['252'] = ($_POST['class'] == '252') ? $frontpage_value : $pref['frontpage']['all']; $pref['frontpage']['253'] = ($_POST['class'] == '253') ? $frontpage_value : $pref['frontpage']['all']; $pref['frontpage']['254'] = ($_POST['class'] == '254') ? $frontpage_value : $pref['frontpage']['all']; $class_list = get_userclass_list(); foreach ($class_list as $fp_class) { $pref['frontpage'][$fp_class['userclass_id']] = ($_POST['class'] == $fp_class['userclass_id']) ? $frontpage_value : $pref['frontpage']['all']; } unset($pref['frontpage']['all']); } $pref['frontpage'][$_POST['class']] = $frontpage_value; } save_prefs(); $ns -> tablerender(LAN_UPDATED, "