/** * Constructor * @param e_admin_ui $controller * @param boolean $tabindex [optional] enable form element auto tab-indexing */ function __construct($controller, $tabindex = false) { $this->_controller = $controller; parent::__construct($tabindex); // protect current methods from conflict. $this->preventConflict(); // user constructor $this->init(); }
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; }
* $Revision$ * $Date$ * $Author$ * */ require_once "../class2.php"; if (!getperms("0")) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'language'; require_once "auth.php"; require_once e_HANDLER . "message_handler.php"; require_once e_HANDLER . "form_handler.php"; $frm = new e_form(); $emessage =& eMessage::getInstance(); $lck = new lancheck(); $qry = explode("|", e_QUERY); $f = $qry[0]; $lan = $qry[1]; $mode = $qry[2]; // Write the language file. if (isset($_POST['submit'])) { unset($input); $kom_start = chr(47) . "*"; $kom_end = "*" . chr(47); if ($_POST['root']) { $writeit = $_POST['root']; } $old_kom = "";
if(count($_POST) && !varset($_POST['e-token'])) { die('Access denied - bl'); } */ if (!getperms('4')) { header('location:' . e_BASE . 'index.php'); exit; } require_once e_HANDLER . 'iphandler_class.php'; // This is probably already loaded in class2.php include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'banlist'; require_once 'auth.php'; require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(true); require_once e_HANDLER . 'message_handler.php'; $emessage =& eMessage::getInstance(); $pref = e107::getPref(); // Set a default to avoid issues with legacy systems if (!isset($pref['ban_date_format'])) { $pref['ban_date_format'] = '%H:%M %d-%m-%y'; } $ipAdministrator = new banlistManager(); // Character options for import & export $separator_char = array(1 => ',', 2 => '|'); $quote_char = array(1 => '(none)', 2 => "'", 3 => '"'); $action = 'list'; if (e_QUERY) { $tmp = explode('-', e_QUERY); // Use '-' instead of '.' to avoid confusion with IP addresses
* @package e107_plugins * @subpackage event_calendar * @version $Id$; */ $eplug_admin = true; // Make sure we show admin theme $e_sub_cat = 'event_calendar'; require_once '../../class2.php'; //require_once(e_HANDLER.'userclass_class.php'); if (!getperms('P')) { header('location:' . e_BASE . 'index.php'); exit; } include_lan(e_PLUGIN . 'calendar_menu/languages/' . e_LANGUAGE . '_admin_calendar_menu.php'); require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(); $uc = e107::getUserClass(); // Userclass object pointer $message = ''; $calendarmenu_text = ''; $calendarmenu_msg = ''; // Given an array of name => format, reads the $_POST variable of each name, applies the specified formatting, // identifies changes, writes back the changes, makes admin log entry function logPrefChanges(&$prefList, $logRef) { global $pref, $tp, $admin_log; $prefChanges = array(); foreach ($prefList as $prefName => $process) { switch ($process) { case 0: $temp = varset($_POST[$prefName], '');
* @version $Id$; */ require_once '../class2.php'; if (!getperms('4')) { header('location:' . e_BASE . 'index.php'); exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'userclass'; //define('UC_DEBUG_OPTS',FALSE); require_once e_HANDLER . 'userclass_class.php'; // Modified class handler $e_userclass = new user_class_admin(); // Admin functions - should just obliterate any previous object created in class2.php require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(); $uc = new uclass_manager(); $message = ''; /** * @todo user_class::isEditableClass() thinks public (0) is editable?! * @param integer $class_id * @param boolean $redirect * @return boolean */ function check_allowed($class_id, $redirect = true) { $uc = e107::getUserClass(); if (!isset($uc->class_tree[$class_id]) || !getperms('0') && !check_class($uc->class_tree[$class_id]['userclass_editclass'])) { if (!$redirect) { return false; }
function poll_list() { $sql = e107::getDb(); $ns = e107::getRender(); $tp = e107::getParser(); $frm = new e_form(true); global $user_pref; if (isset($_POST['etrigger_ecolumns'])) { $user_pref['admin_poll_columns'] = $_POST['e-columns']; save_prefs('user'); } $fieldpref = varset($user_pref['admin_poll_columns']) ? $user_pref['admin_poll_columns'] : array("poll_id", "poll_title", "poll_options", "poll_vote_userclass"); //TODO Add more column options. $fields = array('poll_id' => array('title' => ID, 'width' => '5%', 'forced' => TRUE), 'poll_title' => array('title' => POLLAN_3, 'width' => 'auto'), 'poll_options' => array('title' => POLLAN_4, 'type' => 'text', 'width' => 'auto', 'thclass' => 'center'), 'poll_vote_userclass' => array('title' => LAN_USERCLASS, 'type' => 'text', 'width' => 'auto'), 'options' => array('title' => LAN_OPTIONS, 'forced' => TRUE, 'width' => '10%', 'thclass' => 'center last')); $text = "<div style='text-align:center'><div>\n\t\t<form action='" . e_SELF . "' method='post' id='del_poll'>"; if ($poll_total = $sql->db_Select("polls", "*", "poll_type=1")) { $text .= "<table class='table adminlist'>"; $text .= $frm->colGroup($fields, $fieldpref) . $frm->thead($fields, $fieldpref); $text .= "<tbody>"; while ($row = $sql->db_Fetch()) { extract($row); $text .= "<tr>\n\t\t\t\t<td>{$poll_id}</td>"; $text .= in_array("poll_title", $fieldpref) ? "<td class='left'>" . $tp->toHTML($poll_title, TRUE, "no_hook, emotes_off, defs") . "</td>" : ""; $text .= in_array("poll_options", $fieldpref) ? "<td class='left'>" . str_replace(chr(1), "<br />", $poll_options) . "</td>" : ""; $text .= in_array("poll_comment", $fieldpref) ? "<td>" . ($poll_comment ? LAN_YES : LAN_NO) . "</td>" : ""; $text .= in_array("poll_vote_userclass", $fieldpref) ? "<td>" . r_userclass_name($poll_vote_userclass) . "</td>" : ""; $text .= "\n\t\t\t\t<td class='center'>\n\t\t\t\t\t<input type='image' name='edit[{$poll_id}]' value='edit' src='" . ADMIN_EDIT_ICON_PATH . "' alt='" . LAN_EDIT . "' title='" . LAN_EDIT . "' style='border:0px' />\n\t\t\t\t\t<input type='image' name='delete[{$poll_id}]' value='del' onclick=\"return jsconfirm('" . $tp->toJS(LAN_CONFIRMDEL . " [" . $poll_id . "]") . "') \" src='" . ADMIN_DELETE_ICON_PATH . "' alt='" . LAN_DELETE . "' title='" . LAN_DELETE . "' style='border:0px' />\n\t\t\t\t</td>\n\t\t\t\t</tr>"; } $text .= "</tbody></table>"; } else { $text .= "<div style='text-align:center'>" . POLLAN_7 . "</div>"; } $text .= "</form></div></div>"; $emessage = eMessage::getInstance(); $ns->tablerender(POLLAN_MENU_CAPTION . " :: " . POLLAN_1, $emessage->render() . $text); }
* $Source: /cvs_backup/e107_0.8/e107_admin/filemanager.php,v $ * $Revision$ * $Date$ * $Author$ */ require_once "../class2.php"; if (!getperms("6")) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'filemanage'; require_once "auth.php"; require_once e_HANDLER . 'upload_handler.php'; require_once e_HANDLER . "form_handler.php"; $frm = new e_form(); require_once e_HANDLER . "message_handler.php"; $emessage =& eMessage::getInstance(); //FIXME - messages $pubfolder = str_replace("../", "", e_QUERY) == str_replace("../", "", e_UPLOAD) ? TRUE : FALSE; $imagedir = e_IMAGE . "filemanager/"; $message = ''; $dir_options[0] = FMLAN_47; $dir_options[1] = FMLAN_35; $dir_options[2] = FMLAN_40; $adchoice[0] = e_UPLOAD; $adchoice[1] = e_FILE; $adchoice[2] = e_IMAGE . "newspost_images/"; $path = str_replace("../", "", e_QUERY); if (!$path) { $path = str_replace("../", "", $adchoice[0]);
// Main language file should automatically be loaded // Load language files for log messages include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_log_messages.php'); //... for core functions if (is_array($pref['logLanguageFile'])) { foreach ($pref['logLanguageFile'] as $path => $file) { $file = str_replace('--LAN--', e_LANGUAGE, $file); include_lan(e_PLUGIN . $path . '/' . $file); } } unset($qs); require_once e_ADMIN . 'auth.php'; require_once e_HANDLER . 'message_handler.php'; require_once e_HANDLER . 'form_handler.php'; $emessage =& eMessage::getInstance(); $frm = new e_form(false); define('AL_DATE_TIME_FORMAT', 'y-m-d H:i:s'); if (isset($_POST['setoptions'])) { unset($temp); if (in_array((string) USER_AUDIT_LOGIN, $_POST['user_audit_opts'])) { $_POST['user_audit_opts'][] = USER_AUDIT_LOGOUT; } foreach ($_POST['user_audit_opts'] as $k => $v) { if (!is_numeric($v)) { unset($_POST['user_audit_opts'][$k]); } } $temp['roll_log_active'] = intval($_POST['roll_log_active']); $temp['roll_log_days'] = intval($_POST['roll_log_days']); $temp['sys_log_perpage'] = intval($_POST['sys_log_perpage']); $temp['user_audit_opts'] = implode(',', $_POST['user_audit_opts']);
* $Date$ * $Author$ */ require_once "../class2.php"; if (!getperms("M")) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'wmessage'; require_once "auth.php"; require_once e_HANDLER . 'form_handler.php'; require_once e_HANDLER . 'userclass_class.php'; require_once e_HANDLER . "ren_help.php"; $rs = new form(); $frm = new e_form(); $action == ''; if (e_QUERY) { $tmp = explode('.', e_QUERY); $action = $tmp[0]; $sub_action = varset($tmp[1], ''); $id = varset($tmp[2], 0); unset($tmp); } if ($_POST) { $e107cache->clear("wmessage"); } if (isset($_POST['wm_update'])) { $data = $tp->toDB($_POST['data']); $wm_title = $tp->toDB($_POST['wm_caption']); $wmId = intval($_POST['wm_id']);
CSV (with format file) WordPress (users) Mambo/Joomla PHPBB2 PHPBB3 SMF PHPNuke proboards PHPFusion */ define('IMPORT_DEBUG', FALSE); // define('IMPORT_DEBUG',TRUE); require_once "../../class2.php"; // define("USE_PERSISTANT_DB",TRUE); require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(); require_once e_HANDLER . 'message_handler.php'; $emessage =& eMessage::getInstance(); //nothing wrong with doing it twice include_lan(e_PLUGIN . 'import/languages/' . e_LANGUAGE . '_admin_import.php'); // Source DB types (i.e. CMS types) supported. Key of each element is the 'short code' for the type $import_class_names = array(); // Title $import_class_comment = array(); // Descriptive comment $import_class_support = array(); // Array of data types supported // Definitions of available areas to import $db_import_blocks = array('users' => array('message' => LAN_CONVERT_25, 'classfile' => 'import_user_class.php', 'classname' => 'user_import'), 'news' => array('message' => LAN_CONVERT_28, 'classfile' => 'import_news_class.php', 'classname' => 'news_import'), 'page' => array('message' => "Pages", 'classfile' => 'import_page_class.php', 'classname' => 'page_import'), 'links' => array('message' => "Links", 'classfile' => 'import_links_class.php', 'classname' => 'links_import'), 'media' => array('message' => "Media", 'classfile' => 'import_media_class.php', 'classname' => 'media_import'), 'comments' => array('message' => "Comments")); // See what DB-based imports are available (don't really want it here, but gets it into the header script) require_once e_HANDLER . 'file_class.php';
* $Date$ * $Author$ * */ require_once '../class2.php'; if (!getperms('9')) { header('location:' . e_BASE . 'index.php'); exit; } $e_sub_cat = 'maintain'; include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); require_once e_HANDLER . 'form_handler.php'; require_once e_HANDLER . 'message_handler.php'; $emessage = eMessage::getInstance(); $emessage_method = e_AJAX_REQUEST ? 'add' : 'addSession'; $frm = new e_form(true); if (isset($_POST['updatesettings'])) { $changed = FALSE; $temp = intval($_POST['maintainance_flag']); if ($pref['maintainance_flag'] != $temp) { $pref['maintainance_flag'] = $temp; $changed = TRUE; } $temp = $tp->toDB($_POST['maintainance_text']); if ($pref['maintainance_text'] != $temp) { $pref['maintainance_text'] = $temp; $changed = TRUE; } $temp = intval($_POST['main_admin_only']); if (getperms('0') && $pref['main_admin_only'] != $temp) { $pref['main_admin_only'] = $temp;
* * @package e107_plugins * @subpackage banner * @version $Id$; * * @todo language file issues to resolve */ require_once '../../class2.php'; if (!getperms('D')) { header('location:' . e_BASE . 'index.php'); exit; } $e_sub_cat = 'banner'; require_once e_ADMIN . 'auth.php'; require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(); require_once e_HANDLER . 'userclass_class.php'; require_once e_HANDLER . 'file_class.php'; $fl = new e_file(); require_once e_HANDLER . 'message_handler.php'; $emessage = eMessage::getInstance(); //@FIXME mix up in banner language files //include_//lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_menus.php'); include_lan(e_PLUGIN . 'banner/languages/' . e_LANGUAGE . '_admin_banner.php'); include_lan(e_PLUGIN . 'banner/languages/' . e_LANGUAGE . '_menu_banner.php'); if (e_QUERY) { list($action, $sub_action, $id) = explode('.', e_QUERY); } $images = $fl->get_files(e_IMAGE . 'banners/', '', 'standard'); $menu_pref = e107::getConfig('menu')->getPref(''); if (isset($_POST['update_menu'])) {
* $URL$ * $Id$ * */ require_once '../class2.php'; if (!getperms('X')) { header('location:' . e_BASE . 'index.php'); exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'search'; require_once 'auth.php'; require_once e_HANDLER . 'userclass_class.php'; require_once e_HANDLER . "message_handler.php"; require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(true); $emessage =& eMessage::getInstance(); $e_userclass = new user_class(); $query = explode('.', e_QUERY); $search_prefs = $sysprefs->getArray('search_prefs'); $search_handlers['news'] = ADLAN_0; $search_handlers['comments'] = SEALAN_6; $search_handlers['users'] = SEALAN_7; $search_handlers['downloads'] = ADLAN_24; $search_handlers['pages'] = SEALAN_39; foreach ($pref['e_search_list'] as $file) { if (is_readable(e_PLUGIN . $file . "/e_search.php") && !isset($search_prefs['plug_handlers'][$file])) { $search_prefs['plug_handlers'][$file] = array('class' => 0, 'pre_title' => 1, 'pre_title_alt' => '', 'chars' => 150, 'results' => 10); $save_search = TRUE; } if (is_readable(e_PLUGIN . $file . '/search/search_comments.php') && !isset($search_prefs['comments_handlers'][$file])) {
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); }
* $Source: /cvs_backup/e107_0.8/e107_admin/fla.php,v $ * $Revision$ * $Date$ * $Author$ * */ require_once '../class2.php'; if (!getperms('4')) { header('location:' . e_BASE . 'index.php'); exit; } include_lan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_' . e_PAGE); $e_sub_cat = 'failed_login'; require_once 'auth.php'; require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(); require_once e_HANDLER . 'message_handler.php'; $emessage =& eMessage::getInstance(); $tmp = e_QUERY ? explode('.', e_QUERY) : ''; $from = intval(varset($tmp[0], 0)); $amount = intval(varset($tmp[1], 50)); /* 'generic' table: gen_id - unique identifier gen_type - 'auto_banned' is of interest here gen_datestamp - date/time of ban gen_user_id - set to zero gen_ip - IP address of ban gen_intdata - user ID (where known) gen_chardata - ban detail as known */
} } new uclass_admin(); require_once e_ADMIN . "auth.php"; e107::getAdminUI()->runPage(); require_once e_ADMIN . "footer.php"; exit; $e_sub_cat = 'userclass'; //define('UC_DEBUG_OPTS',FALSE); require_once e_HANDLER . 'userclass_class.php'; // Modified class handler $e_userclass = new user_class_admin(); // Admin functions - should just obliterate any previous object created in class2.php // @TODO: Does core object manager need to know somehow? require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(); // $uc = new uclass_manager; $mes = e107::getMessage(); $message = ''; /** * See whether a user class is editable. * * (Note: On fixed classes, only some fields are editable) * * @param integer $class_id * @param boolean $redirect - if TRUE, will redirect to site home page if class not editable. * @param boolean $fullEdit - set TRUE if full editing required, FALSE if some editing permitted * * @return boolean - TRUE if class editable (fully or partially), FALSE if not. */ function checkAllowed($classID, $redirect = true, $fullEdit = FALSE)
/** * Master routine to call to check for updates */ function update_check() { global $ns, $dont_check_update, $e107info; $update_needed = FALSE; if ($dont_check_update === FALSE) { global $dbupdate, $dbupdatep, $e107cache; // See which core functions need update foreach ($dbupdate as $func => $rmks) { if (function_exists('update_' . $func)) { if (!call_user_func('update_' . $func, FALSE)) { $update_needed = TRUE; continue; } } } // Now check plugins foreach ($dbupdatep as $func => $rmks) { if (function_exists('update_' . $func)) { if (!call_user_func('update_' . $func, FALSE)) { $update_needed = TRUE; continue; } } } $e107cache->set_sys('nq_admin_updatecheck', time() . ',' . ($update_needed ? '2,' : '1,') . $e107info['e107_version'], TRUE); } else { $update_needed = $dont_check_update == '2'; } if ($update_needed === TRUE) { require_once e_HANDLER . 'form_handler.php'; $frm = new e_form(); $txt = "\r\n\t\t<form method='post' action='" . e_ADMIN_ABS . "e107_update.php'>\r\n\t\t<div>\r\n\t\t\t" . ADLAN_120 . "\r\n\t\t\t" . $frm->admin_button('e107_system_update', LAN_UPDATE, 'update') . "\r\n\t\t</div>\r\n\t\t</form>\r\n\t\t"; require_once e_HANDLER . 'message_handler.php'; $emessage =& eMessage::getInstance(); $emessage->add($txt); } }