$profile["forumbanned"] = $curu["forumbanned"] == "yes" ? "checked=\"checked\"" : ""; # init options $opts['name'] = 'level'; $opts['complete'] = true; $opts['id'] = 'id'; $opts['value'] = 'level'; $opts['default'] = $curu['id_level']; $profile['seedbonus'] = unesc($curu['seedbonus']); $profile['custom_title'] = unesc($curu['custom_title']); $profile["helpdesk"] = unesc($curu['helpdesk'] == "yes" ? "checked=\"checked\"" : ""); $profile["helped"] = unesc($curu['helped']); $profile["helplang"] = unesc($curu['helplang']); # rank list $profile["donor"] = $curu["donor"] == "yes" ? "checked=\"checked\"" : ""; $profile["immunity"] = $curu["immunity"] == "yes" ? "checked=\"checked\"" : ""; $ranks = rank_list(); $admintpl->set('rank_combo', get_combo($ranks, $opts)); # init options $opts['name'] = 'name'; $opts['id'] = 'id'; $opts['value'] = 'name'; if ($curu['team'] == "0") { $opts['default'] = $curu['team'][0]; } else { $opts['default'] = $curu['team']; } # team list $teams = team_list(); $admintpl->set('team_combo', get_combo($teams, $opts)); # lang list $opts['name'] = 'language';
$desc = sqlesc($_POST['description']); $url = sqlesc($_POST['link']); do_sqlquery("DELETE FROM {$TABLE_PREFIX}adminpanel WHERE section={$section} AND id_level={$current_id}"); // delete old same named section do_sqlquery("INSERT INTO {$TABLE_PREFIX}adminpanel SET section={$section}, description={$desc}, link={$url}, id_level={$current_id}"); // insert new break; } } $out .= ' <form id="aut_list" name="aut_list" action="admin.modpanel.php" method="post"> <table> <tr> <td> '; $rrlist = rank_list(); $out .= '<select id="r_opt">'; foreach ($rrlist as $id => $rlevel) { if ($rlevel['admin_access'] == 'yes' && $rlevel['id'] != $CURUSER['id']) { if ($current_id == $rlevel['id']) { $out .= '<option value="' . $rlevel['id'] . '" selected="selected">' . $rlevel['level'] . '</option>'; } else { $out .= '<option value="' . $rlevel['id'] . '">' . $rlevel['level'] . '</option>'; } } } $out .= ' </select> <input type="button" onclick="Show_ModPanel(document.aut_list.r_opt.options[document.aut_list.r_opt.selectedIndex].value);" name="sel_level" value="' . $language['SELECT'] . '"/> </td> </tr>