Example #1
0
function show_upload_list()
{
    global $ns, $sql, $gen, $e107, $tp;
    $frm = new e_form(true);
    //enable inner tabindex counter
    $columnInfo = array("checkboxes" => array("title" => "", "forced" => TRUE, "width" => "3%", "thclass" => "center first", "toggle" => "dl_selected"), "upload_id" => array("title" => LAN_ID, "type" => "", "width" => "auto", "thclass" => "", "forced" => true), "upload_date" => array("title" => DOWLAN_78, "type" => "", "width" => "auto", "thclass" => ""), "upload_uploader" => array("title" => DOWLAN_79, "type" => "", "width" => "auto", "thclass" => ""), "upload_name" => array("title" => DOWLAN_12, "type" => "", "width" => "auto", "thclass" => ""), "upload_file_name" => array("title" => DOWLAN_59, "type" => "", "width" => "auto", "thclass" => ""), "upload_size" => array("title" => DOWLAN_66, "type" => "", "width" => "auto", "thclass" => "right"), "options" => array("title" => LAN_OPTIONS, "width" => "15%", "thclass" => "center last", "forced" => true));
    //TODO $filterColumns = ($user_pref['admin_download_disp'] ? $user_pref['admin_download_disp'] : array("download_name","download_class"));
    $filterColumns = array("upload_id", "upload_date", "upload_uploader", "upload_name", "upload_file_name", "upload_size");
    $text = "\n            <fieldset id='core-download-upload1'>\n               <div>\n                  <table style='" . ADMIN_WIDTH . "' class='adminlist'>" . $frm->colGroup($columnInfo, $filterColumns) . $frm->thead($columnInfo, $filterColumns, "main.[FIELD].[ASC].[FROM]") . "\n                     <tbody>\n                     <tr>\n                        <td class='center' colspan='" . (count($filterColumns) + 2) . "'>";
    if (!($active_uploads = $sql->db_Select("upload", "*", "upload_active=0 ORDER BY upload_id ASC"))) {
        $text .= DOWLAN_19 . ".</td></tr>";
    } else {
        $activeUploads = $sql->db_getList();
        $text .= DOWLAN_80 . " " . ($active_uploads == 1 ? DOWLAN_81 : DOWLAN_82) . " " . $active_uploads . " " . ($active_uploads == 1 ? DOWLAN_83 : DOWLAN_84);
        $text .= "</td></tr>";
        foreach ($activeUploads as $row) {
            $post_author_id = substr($row['upload_poster'], 0, strpos($row['upload_poster'], "."));
            $post_author_name = substr($row['upload_poster'], strpos($row['upload_poster'], ".") + 1);
            $poster = !$post_author_id ? "<b>" . $post_author_name . "</b>" : "<a href='" . e_BASE . "user.php?id." . $post_author_id . "'><b>" . $post_author_name . "</b></a>";
            $upload_datestamp = $gen->convert_date($row['upload_datestamp'], "short");
            $text .= "\n            <tr>\n                 <td class='center'>" . $frm->checkbox("dl_selected[" . $row["upload_id"] . "]", $row['upload_id']) . "</td>\n               <td class='center'>" . $row['upload_id'] . "</td>\n               <td>" . $upload_datestamp . "</td>\n               <td>" . $poster . "</td>\n               <td><a href='" . e_SELF . "?ulist." . $row['upload_id'] . "'>" . $row['upload_name'] . "</a></td>\n               <td>" . $row['upload_file'] . "</td>\n               <td class='right'>" . $e107->parseMemorySize($row['upload_filesize']) . "</td>\n               <td class='center'>\n                  <form action='" . e_SELF . "?dis.{$upload_id}' id='uploadform_{$upload_id}' method='post'>\n                     <div>\n                        <a href='" . e_SELF . "?dlm." . $row['upload_id'] . "'><img src='" . e_IMAGE . "admin_images/downloads_32.png' alt='" . DOWLAN_91 . "' title='" . DOWLAN_91 . "' style='border:0'/></a>\n                        <a href='" . e_ADMIN . "newspost.php?create.upload.1." . $row['upload_id'] . "'><img src='" . e_IMAGE . "admin_images/news_32.png' alt='" . DOWLAN_162 . "' title='" . DOWLAN_162 . "' style='border:0'/></a>\n                        <input type='image' title='" . LAN_DELETE . "' name='updelete[upload_" . $row['upload_id'] . "]' src='" . ADMIN_DELETE_ICON_PATH . "' onclick=\"return jsconfirm('" . $tp->toJS(" [ " . $row['upload_name'] . " ] " . DOWLAN_33) . "') \"/>\n                     </div>\n                  </form>\n               </td>\n            </tr>";
        }
    }
    $text .= "</tbody></table></div></fieldset>";
    $ns->tablerender(DOWLAN_22, $text);
}
Example #2
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 #3
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 #4
0
File: fla.php Project: notzen/e107
if ($sql->db_Select('generic', "*", "gen_type='auto_banned' ORDER BY gen_datestamp DESC ")) {
    $abArray = $sql->db_getList();
    $message = FLALAN_15;
    foreach ($abArray as $ab) {
        $message .= " - " . $ab['gen_ip'];
    }
    $message .= "<div class='right'>(<a href='" . e_SELF . "?dabl'>" . FLALAN_16 . "</a>)</div>";
    $emessage->add($message);
}
$gen = new convert();
$fla_total = $sql->db_Count('generic', '(*)', "WHERE gen_type='failed_login'");
if (!$sql->db_Select('generic', '*', "gen_type='failed_login' ORDER BY gen_datestamp DESC LIMIT {$from},{$amount}")) {
    $text = $emessage->render() . "<div class='center'>" . FLALAN_2 . "</div>";
} else {
    $faArray = $sql->db_getList('ALL', FALSE, FALSE);
    $text = "\n\t\t<form method='post' action='" . e_SELF . "' id='flaform' >\n\t\t\t<fieldset id='core-fla'>\n\t\t\t\t<legend class='e-hideme'>" . ADLAN_146 . "</legend>\n\t\t\t\t<table class='table adminlist'>\n\t\t\t\t\t<colgroup>\n\t\t\t\t\t\t<col style='width: 20%' />\n\t\t\t\t\t\t<col style='width: 40%' />\n\t\t\t\t\t\t<col style='width: 20%' />\n\t\t\t\t\t\t<col style='width: 10%' />\n\t\t\t\t\t\t<col style='width: 10%' />\n\t\t\t\t\t</colgroup>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>" . LAN_DATE . "</th>\n\t\t\t\t\t\t\t<th>" . FLALAN_7 . "</th>\n\t\t\t\t\t\t\t<th>" . FLALAN_8 . "</th>\n\t\t\t\t\t\t\t<th class='center last'>\n\t\t\t\t\t\t\t\t" . LAN_DELETE . "<br/>\n\t\t\t\t\t\t\t\t" . $frm->checkbox('check_all_del', 'jstarget:fladelete', false, array('id' => false, 'class' => 'checkbox toggle-all')) . "\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t<th class='center last'>\n\t\t\t\t\t\t\t\t" . LAN_BAN . "<br/>\n\t\t\t\t\t\t\t\t" . $frm->checkbox_toggle('check-all-ban', 'flaban') . "\n\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>\n\t";
    foreach ($faArray as $fa) {
        extract($fa);
        //FIXME kill extract()
        $gen_chardata = str_replace(":::", "<br />", $e107->tp->toHTML($gen_chardata));
        $host = e107::getIPHandler()->get_host_name(getenv($gen_ip));
        $text .= "\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>" . $gen->convert_date($gen_datestamp, "forum") . "</td>\n\t\t\t\t\t\t\t<td>" . $gen_chardata . "</td>\n\t\t\t\t\t\t\t<td>" . e107::getIPHandler()->ipDecode($fa['gen_ip']) . "<br />{$host}</td>\n\t\t\t\t\t\t\t<td class='center middle autocheck e-pointer'>\n\t\t\t\t\t\t\t\t" . $frm->checkbox('fladelete[]', $gen_id) . "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class='center middle autocheck e-pointer'>\n\t\t\t\t\t\t\t\t" . $frm->checkbox('flaban[]', $gen_id) . "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t";
    }
    $text .= "\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t\t<div class='buttons-bar center'>\n\t\t\t\t\t" . $frm->admin_button('delbanSubmit', FLALAN_10, 'delete', FLALAN_10, 'title=') . "\n\t\t\t\t</div>\n\t\t\t</fieldset>\n\t\t</form>\n\t";
    $parms = $fla_total . "," . $amount . "," . $from . "," . e_SELF . '?' . "[FROM]." . $amount;
    $nextprev = $tp->parseTemplate("{NEXTPREV={$parms}}");
    if ($nextprev) {
        $text .= "<div class='nextprev-bar'>" . $nextprev . "</div>";
    }
}
$e107->ns->tablerender(ADLAN_146, $emessage->render() . $text);
Example #5
0
        $up_button = "&nbsp;leave_32.png";
    }
    //FIXME - upload link not working, raplace with image
    $text .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='center middle'><a href='#{$el_id}' class='e-expandit'>upload</a></td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<a class='action' href='" . e_SELF . "?" . $path . $dirs[$c] . "/'><img class='icon action S16' src='" . $imagedir . "folder.png' alt='" . $dirs[$c] . " " . FMLAN_31 . "' /></a>\n\t\t\t\t\t\t\t<a href='" . e_SELF . "?" . $path . $dirs[$c] . "/'>" . $dirs[$c] . "</a>\n\t\t\t\t\t\t\t<div class='e-hideme' id='{$el_id}'>\n\t\t\t\t\t\t\t\t<div class='field-spacer'>" . $frm->file('file_userfile[]', array('id' => false, 'size' => '20')) . $frm->admin_button('upload', FMLAN_22, '', '', array('id' => false)) . "</div>\n\t\t\t\t\t\t\t\t<input type='hidden' name='upload_dir[]' value='" . $path . $dirs[$c] . "' />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class='right'>" . $dirsize . "</td>\n\t\t\t\t\t\t<td class='right'>&nbsp;</td>\n\t\t\t\t\t</tr>\n\t";
    $c++;
}
$c = 0;
while ($files[$c]) {
    $img = strtolower(substr(strrchr($files[$c], "."), 1, 3));
    if (!$img || !preg_match("/css|exe|gif|htm|jpg|js|php|png|txt|xml|zip/i", $img)) {
        $img = "def";
    }
    $size = $e107->parseMemorySize(filesize(e_BASE . $path . "/" . $files[$c]));
    $gen = new convert();
    $filedate = $gen->convert_date(filemtime(e_BASE . $path . "/" . $files[$c]), "forum");
    $text .= "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='center middle autocheck'>\n\t\t\t\t\t\t\t" . $frm->checkbox("selectedfile[{$c}]", 1, false, array('id' => false)) . "\n\t\t\t\t\t\t\t<input type='hidden' name='deleteconfirm[{$c}]' value='" . $path . $files[$c] . "' />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<img class='icon' src='" . $imagedir . $img . ".png' alt='" . $files[$c] . "' />\n\t\t\t\t\t\t\t<a href='" . e_SELF . "?" . $path . $files[$c] . "'>" . $files[$c] . "</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class='right'>" . $size . "</td>\n\t\t\t\t\t\t<td class='right'>" . $filedate . "</td>\n\t\t\t\t\t</tr>\n\t";
    $c++;
}
$text .= "\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div class='buttons-bar left'>\n\t\t\t\t" . $frm->admin_button('check_all', 'jstarget:selectedfile', 'action', LAN_CHECKALL, array('id' => false)) . "\n\t\t\t\t" . $frm->admin_button('uncheck_all', 'jstarget:selectedfile', 'action', LAN_UNCHECKALL, array('id' => false)) . "\n\t";
if ($pubfolder || e_QUERY == "") {
    require_once e_HANDLER . "file_class.php";
    $fl = new e_file();
    $dl_dirlist = $fl->get_dirs(e_DOWNLOAD);
    $movechoice = array();
    $movechoice[] = e_DOWNLOAD;
    foreach ($dl_dirlist as $dirs) {
        $movechoice[] = e_DOWNLOAD . $dirs . "/";
    }
    sort($movechoice);
    $movechoice[] = e_FILE . "downloadimages/";
    if (e_QUERY != str_replace("../", "", e_UPLOAD)) {
Example #6
0
 	$catidvalues = "";
 	foreach($in_catname as $name)
 	{
 		$text .= "<option value='{$name}'>{$name}</option>";
 		$catidvalues .= $name."-";
 	}
 
 
 									<input class='button' type='button' value='".BANNER_MENU_L9."' onclick='removeMe();' />
 									<input type='hidden' name='catid' id='catid' value='".$catidvalues."' />
 								</div>
 */
 if ($all_catname) {
     foreach ($all_catname as $name) {
         //$text .= "<option value='{$name}'>{$name}</option>";
         $text .= "\n\t\t\t\t\t\t\t\t\t<div class='field-spacer'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->checkbox('multiaction_cat_active[]', $name, in_array($name, $in_catname)) . $frm->label($name, 'multiaction_cat_active[]', $name) . "\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t";
     }
     $text .= "\n\t\t\t\t\t\t\t\t\t<div class='field-spacer'>\n\t\t\t\t\t\t\t\t\t\t" . $frm->admin_button('check_all', LAN_CHECKALL, 'action') . "\n\t\t\t\t\t\t\t\t\t\t" . $frm->admin_button('uncheck_all', LAN_UNCHECKALL, 'action') . "\n\t\t\t\t\t\t\t\t\t</div>\n\t\t";
 } else {
     $text .= '<span class="warning">' . BNRLAN_67 . '</span>';
 }
 $text .= "\n\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>" . BANNER_MENU_L19 . "</td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<input class='tbox input-text' type='text' name='banner_amount' size='10' value='" . $menu_pref['banner_amount'] . "' maxlength='2' />\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>" . BANNER_MENU_L10 . "</td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<select class='tbox select' id='banner_rendertype' name='banner_rendertype'>\n\t\t\t\t\t\t\t\t\t" . $frm->option(BANNER_MENU_L11, 0, empty($menu_pref['banner_rendertype'])) . "\n\t\t\t\t\t\t\t\t\t" . $frm->option("1 - " . BANNER_MENU_L12, 1, $menu_pref['banner_rendertype'] == "1") . "\n\t\t\t\t\t\t\t\t\t" . $frm->option("2 - " . BANNER_MENU_L13, 2, $menu_pref['banner_rendertype'] == "2") . "\n\t\t\t\t\t\t\t\t\t" . $frm->option("3 - " . BANNER_MENU_L14, 3, $menu_pref['banner_rendertype'] == "3") . "\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t\t<div class='buttons-bar center'>" . $frm->admin_button('update_menu', 'no-value', 'update', LAN_SAVE) . "\n\t\t\t\t</div>\n\t\t\t</fieldset>\n\t\t</form>\n\t";
 /* removed - checkboxes are OK
 	$text .= "
 
 	<script type=\"text/javascript\">
 		//<!--
 			// Adapted from original:  Kathi O'Shea (Kathi.O'Shea@internet.com)
 
 		function moveOver(){
 		var boxLength = document.getElementById('catin').length;