Example #1
0
function show_upload_options()
{
    global $pref, $ns;
    require_once e_HANDLER . "form_handler.php";
    $frm = new e_form(true);
    //enable inner tabindex counter
    $text = "\n           <form method='post' action='" . e_SELF . "?" . e_QUERY . "'>\n            <fieldset id='core-download-upload1'>\n               <div>\n                  <table class='table adminform'>\n                     <colgroup>\n                        <col style='width:30%'/>\n                        <col style='width:70%'/>\n                     </colgroup>\n                     <tr>\n                        <td>" . DOWLAN_26 . "</td>\n                        <td>" . $frm->radio_switch('upload_enabled', $pref['upload_enabled']) . "<div class='field-help'>" . $frm->label(DOWLAN_51, 'upload_enabled', '1') . "</div>" . "</td>\n                     </tr>\n                     <tr>\n                        <td>" . DOWLAN_35 . "</td>\n                        <td>" . $frm->text('upload_maxfilesize', $pref['upload_maxfilesize'], '4', array('size' => '10')) . "<div class='field-help'>" . $frm->label(str_replace(array("%1", "%2"), array(ini_get('upload_max_filesize'), ini_get('post_max_size')), DOWLAN_58), 'upload_maxfilesize', '1') . "</div>" . "</td>\n                     </tr>\n                     <tr>\n                        <td>" . DOWLAN_61 . "</td>\n                        <td>" . r_userclass("upload_class", $pref['upload_class']) . "<div class='field-help'>" . $frm->label(DOWLAN_60, 'upload_class', '1') . "</div>" . "</td>\n                     </tr>\n                  </table>\n        \t</div>\n            </fieldset>\n            <div class='buttons-bar center'>\n               <input class='btn btn-default button' type='submit' name='updateuploadoptions' value='" . DOWLAN_64 . "'/>\n            </div>\n           </form>\n      ";
    $ns->tablerender(LAN_DL_OPTIONS, $text);
}
Example #2
0
         $pref['enable_rdns_on_ban'] = intval($_POST['ban_rdns_on_ban']);
         $pref['ban_max_online_access'] = intval($_POST['ban_access_guest']) . ',' . intval($_POST['ban_access_member']);
         $pref['ban_retrigger'] = intval($_POST['ban_retrigger']);
         $pref['ban_date_format'] = $tp->toDB($_POST['ban_date_format']);
         save_prefs();
         // @todo FIXME log detail of changes. Right prefs to use?
         $emessage->add(LAN_SETSAVED, E_MESSAGE_SUCCESS);
     }
     if (isset($_POST['remove_expired_bans'])) {
         $result = $sql->db_Delete('banlist', "`banlist_bantype` < " . eIPHandler::BAN_TYPE_WHITELIST . " AND `banlist_banexpires` > 0 AND `banlist_banexpires` < " . time());
         banlist_adminlog('12', $result);
         $emessage->add(str_replace('--NUM--', $result, BANLAN_48), E_MESSAGE_SUCCESS);
     }
     list($ban_access_guest, $ban_access_member) = explode(',', varset($pref['ban_max_online_access'], '100,200'));
     $ban_access_member = max($ban_access_guest, $ban_access_member);
     $text = "\n\t\t\t<form method='post' action='" . e_SELF . "?options'>\n\t\t\t\t<fieldset id='core-banlist-options'>\n\t\t\t\t\t<legend>" . BANLAN_72 . "</legend>\n\t\t\t\t\t<table class='table adminform'>\n\t\t\t\t\t\t<colgroup>\n\t\t\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t\t\t<col class='col-control' />\n\t\t\t\t\t\t</colgroup>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_63 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='auto-toggle-area autocheck'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->checkbox('ban_rdns_on_access', 1, $pref['enable_rdns'] == 1) . "\n\t\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_65 . "</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_64 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='auto-toggle-area autocheck'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->checkbox('ban_rdns_on_ban', 1, $pref['enable_rdns_on_ban'] == 1) . "\n\t\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_66 . "</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_67 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='field-spacer'>" . drop_box('ban_access_guest', $ban_access_guest) . BANLAN_70 . "</div>\n\t\t\t\t\t\t\t\t\t<div class='field-spacer'>" . drop_box('ban_access_member', $ban_access_member) . BANLAN_69 . "</div>\n\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_68 . "</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_71 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class='auto-toggle-area autocheck'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->checkbox('ban_retrigger', 1, $pref['ban_retrigger'] == 1) . "\n\t\t\t\t\t\t\t\t\t\t<div class='field-help'>" . BANLAN_73 . "</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t  <td>" . BANLAN_91 . "</td>\n\t\t\t\t\t\t\t  <td>\n\t\t\t\t\t\t\t  " . $frm->text('ban_date_format', varset($pref['ban_date_format'], '%H:%M %d-%m-%y'), 40) . "\n\t\t\t\t\t\t\t  <div class='field-help'>" . BANLAN_92 . "</div>\n\t\t\t\t\t\t\t  </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t\t<div class='buttons-bar center'>\n\t\t\t\t\t\t" . $frm->admin_button('update_ban_options', LAN_UPDATE, 'update') . "\n\t\t\t\t\t\t<input type='hidden' name='e-token' value='" . e_TOKEN . "' />\n\t\t\t\t\t</div>\n\t\t\t\t</fieldset>\n\t\t\t\t<fieldset id='core-banlist-options-ban'>\n\t\t\t\t\t<legend>" . BANLAN_74 . "</legend>\n\t\t\t\t\t<table class='table adminform'>\n\t\t\t\t\t\t<colgroup>\n\t\t\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t\t\t<col class='col-control' />\n\t\t\t\t\t\t</colgroup>\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>" . BANLAN_75 . "</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t" . $frm->admin_button('remove_expired_bans', BANLAN_76, 'delete') . "\n\t\t\t\t\t\t\t\t\t<input type='hidden' name='e-token' value='" . e_TOKEN . "' />\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t";
     e107::getRender()->tablerender(BANLAN_72, $emessage->render() . $text);
     break;
 case 'times':
     if (!getperms('0')) {
         exit;
     }
     $text = '';
     if (!isset($pref['ban_messages']) || !is_array($pref['ban_messages'])) {
         foreach ($ipAdministrator->getValidReasonList() as $bt) {
             $pref['ban_messages'][$bt] = '';
         }
     }
     if (!isset($pref['ban_durations']) || !is_array($pref['ban_durations'])) {
         foreach ($ipAdministrator->getValidReasonList() as $bt) {
             $pref['ban_durations'][$bt] = 0;
Example #3
0
 function show_download_options()
 {
     global $pref, $ns;
     require_once e_HANDLER . "form_handler.php";
     $frm = new e_form(true);
     //enable inner tabindex counter
     $agree_flag = $pref['agree_flag'];
     $agree_text = $pref['agree_text'];
     $c = $pref['download_php'] ? " checked = 'checked' " : "";
     $sacc = varset($pref['download_incinfo'], 0) == '1' ? " checked = 'checked' " : "";
     $order_options = array("download_id" => "Id No.", "download_datestamp" => LAN_DATE, "download_requested" => LAN_PLUGIN_DOWNLOAD_NAME, "download_name" => DOWLAN_59, "download_author" => DOWLAN_15);
     $sort_options = array("ASC" => DOWLAN_62, "DESC" => DOWLAN_63);
     $text = "\n\t\t\t\t   \n\t\t\t\t\t   <ul class='nav nav-tabs'>\n\t\t\t\t\t\t   <li class='active'><a data-toggle='tab' href='#core-download-download1'>" . LAN_DL_DOWNLOAD_OPT_GENERAL . "</a></li>\n\t\t\t\t\t\t   <li><a data-toggle='tab' href='#core-download-download2'>" . LAN_DL_DOWNLOAD_OPT_BROKEN . "</a></li>\n\t\t\t\t\t\t   <li><a data-toggle='tab' href='#core-download-download3'>" . LAN_DL_DOWNLOAD_OPT_AGREE . "</a></li>\n\t\t\t\t\t\t   <li><a data-toggle='tab' href='#core-download-download4'>" . LAN_DL_UPLOAD . "</a></li>\n\t\t\t\t\t   </ul>\n\t\t\t\t\t\t\n\t\t        \t\t<form method='post' action='" . e_SELF . "?" . e_QUERY . "'>\n\n\t\t        \t\t<div class='tab-content'>\n\t\t   \t\t\t\t<div class='tab-pane active' id='core-download-download1'>\n\t\t            \t   <div>\n\t\t            \t\t   <table class='table adminform'>\n\t\t            \t\t      <colgroup>\n\t\t            \t\t         <col style='width:30%'/>\n\t\t            \t\t         <col style='width:70%'/>\n\t\t            \t\t      </colgroup>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . LAN_DL_USE_PHP . "</td>\n\t\t            \t\t         <td>" . $frm->checkbox('download_php', '1', $pref['download_php']) . $frm->label(LAN_DL_USE_PHP_INFO, 'download_php', '1') . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . LAN_DL_SUBSUB_CAT . "</td>\n\t\t            \t\t         <td>" . $frm->checkbox('download_subsub', '1', $pref['download_subsub']) . $frm->label(LAN_DL_SUBSUB_CAT_INFO, 'download_subsub', '1') . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . LAN_DL_SUBSUB_COUNT . "</td>\n\t\t            \t\t         <td>" . $frm->checkbox('download_incinfo', '1', $pref['download_incinfo']) . $frm->label(LAN_DL_SUBSUB_COUNT_INFO, 'download_incinfo', '1') . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t               \t\t      <td>" . DOWLAN_55 . "</td>\n\t\t            \t\t         <td>" . $frm->text('download_view', $pref['download_view'], '4', array('size' => '4')) . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . DOWLAN_56 . "</td>\n\t\t            \t\t         <td>" . $frm->select('download_order', $order_options, $pref['download_order']) . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . LAN_ORDER . "</td>\n\t\t             \t\t         <td>" . $frm->select('download_sort', $sort_options, $pref['download_sort']) . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t               \t\t      <td>" . DOWLAN_160 . "</td>\n\t\t               \t\t      <td>\n\t\t                  \t\t      <select name='mirror_order' class='tbox'>" . ($pref['mirror_order'] == "0" ? "<option value='0' selected='selected'>" . DOWLAN_161 . "</option>" : "<option value='0'>" . DOWLAN_161 . "</option>") . ($pref['mirror_order'] == "1" ? "<option value='1' selected='selected'>" . LAN_ID . "</option>" : "<option value='1'>" . LAN_ID . "</option>") . ($pref['mirror_order'] == "2" ? "<option value='2' selected='selected'>" . DOWLAN_163 . "</option>" : "<option value='2'>" . DOWLAN_12 . "</option>") . "\n\t\t            \t\t            </select>\n\t\t               \t\t      </td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . DOWLAN_164 . "</td>\n\t\t            \t\t         <td><input type='text' name='recent_download_days' class='tbox' value='" . $pref['recent_download_days'] . "' size='3' maxlength='3'/>\n\t\t            \t\t         </td>\n\t\t            \t\t      </tr>\n\t\t            \t\t   </table>\n\t\t            \t\t</div>\n\t\t\t\t   \t\t</div>\n\t\t   \t\t\t\t<div class='tab-pane' id='core-download-download2'>\n\t\t            \t   <div>\n\t\t            \t\t   <table class='table adminform'>\n\t\t            \t\t      <colgroup>\n\t\t            \t\t         <col style='width:30%'/>\n\t\t            \t\t         <col style='width:70%'/>\n\t\t            \t\t      </colgroup>\n\t\t            \t\t      <tr>\n\t\t               \t\t      <td>" . DOWLAN_151 . "</td>\n\t\t               \t\t      <td>" . r_userclass("download_reportbroken", $pref['download_reportbroken']) . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t               \t\t      <td>" . DOWLAN_150 . "</td>\n\t\t               \t\t      <td>" . ($pref['download_email'] ? "<input type='checkbox' name='download_email' value='1' checked='checked'/>" : "<input type='checkbox' name='download_email' value='1'/>") . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t   </table>\n\t\t            \t\t</div>\n\t\t\t\t   \t\t</div>\n\t\t   \t\t\t\t<div class='tab-pane' id='core-download-download3'>\n\t\t            \t   <div>\n\t\t            \t\t   <table class='table adminform'>\n\t\t            \t\t      <colgroup>\n\t\t            \t\t         <col style='width:30%'/>\n\t\t            \t\t         <col style='width:70%'/>\n\t\t            \t\t      </colgroup>\n\t\t            \t\t      <tr>\n\t\t               \t\t      <td>" . DOWLAN_100 . "</td>\n\t\t               \t\t      <td>" . ($agree_flag ? "<input type='checkbox' name='agree_flag' value='1' checked='checked'/>" : "<input type='checkbox' name='agree_flag' value='1'/>") . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . DOWLAN_101 . "</td>\n\t\t               \t   \t   <td>" . $frm->bbarea('agree_text', $agree_text) . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . DOWLAN_146 . "</td>\n\t\t            \t\t         <td>" . $frm->bbarea('download_denied', $pref['download_denied']) . "</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t   </table>\n\t\t            \t\t</div>\n\t\t\t\t   \t\t</div>\n\t\t   \t\t\t\t<div class='tab-pane' id='core-download-download4'>\n\t\t            \t   <div>\n\t\t            \t\t   <table class='table adminform'>\n\t\t            \t\t      <colgroup>\n\t\t            \t\t         <col style='width:30%'/>\n\t\t            \t\t         <col style='width:70%'/>\n\t\t            \t\t      </colgroup>\n\t\t            \t\t      <tr>\n\t\t            \t\t         <td>" . DOWLAN_XXX . "</td>\n\t\t            \t\t         <td>//TODO</td>\n\t\t            \t\t      </tr>\n\t\t            \t\t   </table>\n\t\t            \t\t</div>\n\t\t\t\t   \t\t</div>\n\t\t\t\t\t\t   <div class='buttons-bar center'>\n\t\t                  <input class='btn btn-default button' type='submit' name='updatedownlaodoptions' value='" . DOWLAN_64 . "'/>\n\t\t               </div>\n\t\t              \n\t\t           </div>\n\t\t           </form>\n\t\t      ";
     // $ns->tablerender(LAN_DL_OPTIONS, $text);
     echo $text;
 }
Example #4
0
        $emessage->add(LAN_NO_CHANGE);
    }
    //info
    unset($temp);
    $temp['search_restrict'] = intval($_POST['search_restrict']);
    $temp['search_highlight'] = intval($_POST['search_highlight']);
    if ($admin_log->logArrayDiffs($temp, $pref, 'SEARCH_02')) {
        //XXX - additional lan search messages
        save_prefs();
    }
}
require_once e_HANDLER . "form_handler.php";
$rs = new form();
$handlers_total = count($search_prefs['core_handlers']) + count($search_prefs['plug_handlers']);
if ($query[0] == 'settings') {
    $text = "\n\t<form method='post' action='" . e_SELF . "?settings'>\n\t\t<fieldset id='core-search-settings'>\n\t\t\t<legend class='e-hideme'>" . SEALAN_20 . "</legend>\n\t\t\t<table class='table adminform'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t<col class='col-control' />\n\t\t\t\t</colgroup>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_15 . ": </td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $e_userclass->uc_dropdown('search_restrict', $pref['search_restrict'], 'public,guest,nobody,member,admin,classes', "tabindex='" . $frm->getNext() . "'") . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_30 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('search_highlight', $pref['search_highlight']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_10 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('relevance', $search_prefs['relevance']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_11 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('user_select', $search_prefs['user_select']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_19 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('multisearch', $search_prefs['multisearch']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_35 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_multi('selector', array(2 => SEALAN_36, 1 => SEALAN_37, 0 => SEALAN_38), $search_prefs['selector']) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_12 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_multi('time_restrict', array(0 => LAN_DISABLED, 1 => SEALAN_13), $search_prefs['time_restrict']) . "&nbsp;\n\t\t\t\t\t\t\t" . $frm->text('time_secs', $tp->toForm($search_prefs['time_secs']), 3, 'class=tbox&size=5') . "&nbsp;" . SEALAN_14 . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_3 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('search_sort', $search_prefs['mysql_sort'], 'MySql', SEALAN_31) . "&nbsp;\n\t\t\t\t\t\t\t" . $frm->text('php_limit', $tp->toForm($search_prefs['php_limit']), 5, 'class=tbox&size=5') . "&nbsp;" . SEALAN_32 . "\n\t\t\t\t\t\t\t<div class='field-help'>" . SEALAN_49 . "</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_47 . "</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . $frm->radio_switch('boundary', $search_prefs['boundary']) . "\n\t\t\t\t\t\t\t<div class='field-help'>" . SEALAN_48 . "</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div class='buttons-bar center'>\n\t\t\t\t" . $frm->admin_button('update_prefs', LAN_UPDATE, 'update') . "\n\t\t\t</div>\n\t\t</fieldset>\n\t</form>\n\n";
    $e107->ns->tablerender(SEALAN_20, $emessage->render() . $text);
} elseif ($query[0] == 'edit') {
    if ($query[1] == 'c') {
        $handlers = $search_handlers;
        $handler_type = 'core_handlers';
    } elseif ($query[1] == 'p') {
        $handlers = $search_prefs['plug_handlers'];
        $handler_type = 'plug_handlers';
    } else {
        exit;
    }
    $caption = SEALAN_43 . ": " . $query[2];
    $text = "\n\t<form method='post' action='" . e_SELF . "?main." . $query[1] . "." . $query[2] . "'>\n\t\t<fieldset id='core-search-edit'>\n\t\t\t<legend class='e-hideme'>{$caption}</legend>\n\t\t\t<table class='table adminform'>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col class='col-label' />\n\t\t\t\t\t<col class='col-control' />\n\t\t\t\t</colgroup>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_44 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t" . r_userclass("class", $search_prefs[$handler_type][$query[2]]['class'], "off", "public,guest,nobody,member,admin,classes") . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_45 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input class='tbox input-text' type='text' name='results' value='" . $tp->toForm($search_prefs[$handler_type][$query[2]]['results']) . "' size='4' maxlength='4' />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_46 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input class='tbox input-text' type='text' name='chars' value='" . $tp->toForm($search_prefs[$handler_type][$query[2]]['chars']) . "' size='4' maxlength='4' />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>" . SEALAN_26 . ":</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type='radio' class='radio' id='pre-title-1' name='pre_title' value='1'" . ($search_prefs[$handler_type][$query[2]]['pre_title'] == 1 ? " checked='checked'" : "") . " /><label for='pre-title-1'>" . SEALAN_22 . "</label><br />\n\t\t\t\t\t\t\t<input type='radio' class='radio' id='pre-title-0' name='pre_title' value='0'" . ($search_prefs[$handler_type][$query[2]]['pre_title'] == 0 ? " checked='checked'" : "") . " /><label for='pre-title-0'>" . SEALAN_17 . "</label><br />\n\t\t\t\t\t\t\t<input type='radio' class='radio' id='pre-title-2' name='pre_title' value='2'" . ($search_prefs[$handler_type][$query[2]]['pre_title'] == 2 ? " checked='checked'" : "") . " /><label for='pre-title-2'>" . SEALAN_23 . "</label>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<input class='tbox input-text' type='text' name='pre_title_alt' value='" . $tp->toForm($search_prefs[$handler_type][$query[2]]['pre_title_alt']) . "' size='20' />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div class='buttons-bar center'>\n\t\t\t\t<button class='update' type='submit' name='update_handler' value='no-value'><span>" . LAN_UPDATE . "</span></button>\n\t\t\t</div>\n\t\t</fieldset>\n\t</form>\n\t";
    $e107->ns->tablerender($caption, $emessage->render() . $text);
} else {