diff --git a/class2.php b/class2.php index ee82f962b..32b3db5a8 100755 --- a/class2.php +++ b/class2.php @@ -2506,8 +2506,8 @@ class e_http_header function setContent($content,$search=null,$replace=null) { - - if($content == 'buffer') + global $_E107; + if($content == 'buffer' && empty($_E107['cli'])) { $this->length = ob_get_length(); $this->content = ob_get_clean(); diff --git a/e107_admin/admin.php b/e107_admin/admin.php index 56b72a081..57bf45da0 100644 --- a/e107_admin/admin.php +++ b/e107_admin/admin.php @@ -9,8 +9,8 @@ */ define('e_ADMIN_HOME', true); // used by some admin shortcodes and class2. -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if(varset($_GET['mode']) == 'customize') { @@ -75,6 +75,7 @@ if(in_array($pref['adminstyle'], array('infopanel', 'flexpanel'))) require_once(e_ADMIN.'boot.php'); require_once(e_HANDLER.'upload_handler.php'); + new admin_start; require_once(e_ADMIN.'auth.php'); @@ -875,4 +876,4 @@ function log_request() require_once("footer.php"); -?> + diff --git a/e107_admin/admin_log.php b/e107_admin/admin_log.php index d024bea48..d3ea8a4c0 100644 --- a/e107_admin/admin_log.php +++ b/e107_admin/admin_log.php @@ -22,7 +22,7 @@ * */ -require_once ('../class2.php'); +require_once (__DIR__.'/../class2.php'); if(! getperms('S')) { e107::redirect('admin'); @@ -70,6 +70,50 @@ function loadEventTypes($table) } + +function time_box($boxname, $this_time, $day_count, $inc_tomorrow = FALSE, $all_mins = FALSE) +{ // Generates boxes for date and time for today and the preceding days + // Appends 'date', 'hours', 'mins' to the specified boxname + + + $all_time = getdate(); // Date/time now + $sel_time = getdate($this_time); // Currently selected date/time + $sel_day = mktime(0, 0, 0, $sel_time['mon'], $sel_time['mday'], $sel_time['year']); + $today = mktime(0, 0, 0, $all_time['mon'], $all_time['mday'] + ($inc_tomorrow ? 1 : 0), $all_time['year']); + + // Start with day + $ret = ""; + + // Hours + $ret .= " "; + + // Minutes + $ret .= " "; + + return $ret; +} + class adminlog_admin extends e_admin_dispatcher { @@ -297,6 +341,9 @@ class admin_log_ui extends e_admin_ui $frm = e107::getForm(); $sql = e107::getDb(); + $back_count = 0; + $action = ''; + // print_a($_POST); if(!empty($_POST['deleteoldadmin']) && isset($_POST['rolllog_clearadmin'])) @@ -831,1074 +878,7 @@ require_once(e_ADMIN."auth.php"); e107::getAdminUI()->runPage(); require_once(e_ADMIN."footer.php"); -exit; - - - - - - - - - - - - - - - - - - - - - - - - - -// Everything below this point is currently unused, but left for reference in case of bugs. -// ---------------------------------------------------------------------------------------------------------- - - - - - - - - -if(is_array($pref['lan_log_list'])) //... and for any plugins which support it -{ - foreach($pref['lan_log_list'] as $path => $file) - { - $file = str_replace('--LAN--', e_LANGUAGE, $file); - - // echo "orig = ".$file." "; - //e107::lan($path,'log',true); - e107::includeLan(e_PLUGIN.$path.'/languages/'.$file); - } -} - -unset($qs); - -require_once (e_ADMIN.'auth.php'); - -$mes = e107::getMessage(); -$frm = e107::getForm(); - -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']); - $temp['user_audit_class'] = intval($_POST['user_audit_class']); - - if($admin_log->logArrayDiffs($temp, $pref, 'ADLOG_01') || $admin_log->logArrayDiffs($temp, $pref, 'ADLOG_04')) - { - save_prefs(); // Only save if changes - } - else - { - $mes->addInfo(LAN_NO_CHANGE); - } - -} -*/ - -$ns->tablerender($caption, $mes->render() . $text); - -if(e_QUERY) -{ // Must explode after calling auth.php - $qs = explode(".", e_QUERY); -} - -$action = varset($qs[0], 'adminlog'); - -// Deprecated by Comments Manager -/* -if(isset($_POST['deleteitems']) && ($action == 'comments')) -{ - $c_list = array(); - foreach($_POST['del_item'] as $di) - { - if(intval($di) > 0) - $c_list[] = '`comment_id`='.intval($di); - } - if($count = $sql->db_Delete('comments', implode(' OR ', $c_list))) - { - //$text = str_replace('--NUMBER--', $count,RL_LAN_112); - $emessage->add(str_replace('--NUMBER--', $count, RL_LAN_112), E_MESSAGE_SUCCESS); - e107::getLog()->add('COMMENT_01', 'ID: '.implode(',', $_POST['del_item']), E_LOG_INFORMATIVE, ''); - } - else - { - //$text = RL_LAN_113; - $emessage->add(RL_LAN_113, E_MESSAGE_WARNING); - } - //$ns -> tablerender(LAN_DELETE, "
".$text."
"); - unset($c_list); -} -*/ - -// ****************** MAINTENANCE ****************** -unset($back_count); -if(isset($_POST['deleteoldadmin']) && isset($_POST['rolllog_clearadmin'])) -{ - $back_count = intval($_POST['rolllog_clearadmin']); - $next_action = 'confdel'; -} -elseif(isset($_POST['deleteoldaudit']) && isset($_POST['rolllog_clearaudit'])) -{ - $back_count = intval($_POST['rolllog_clearaudit']); - $next_action = 'auditdel'; -} - -if(isset($back_count) && isset($next_action)) -{ - if(($back_count >= 1) && ($back_count <= 90)) - { - $temp_date = getdate(); - $old_date = intval(mktime(0, 0, 0, $temp_date['mon'], $temp_date['mday'] - $back_count, $temp_date['year'])); - $old_string = strftime("%d %B %Y", $old_date); - // $message = "Back delete ".$back_count." days. Oldest date = ".$old_string; - $action = $next_action; - $qs[1] = $old_date; - $qs[2] = $back_count; - } - else - { - $mes->addWarning(RL_LAN_050); - } -} - -if(!isset($admin_log)) -{ - $mes->addWarning("Admin Log not valid"); -} - - -// Actually delete back events - admin or user audit log -if(($action == "backdel") && isset($_POST['backdeltype'])) -{ - if(isset($_POST['confirmdeleteold'])) - { - $old_date = intval($qs[1]); - $old_string = strftime("%d %B %Y", $old_date); - $qry = "dblog_datestamp < ".$old_date; // Same field for both logs - switch($_POST['backdeltype']) - { - case 'confdel': - $db_table = 'admin_log'; - $db_name = RL_LAN_052; - $db_msg = "ADLOG_02"; - break; - case 'auditdel': - $db_table = 'audit_log'; - $db_name = RL_LAN_053; - $db_msg = "ADLOG_03"; - break; - default: - exit(); // Someone fooling around! - } - // $message = "Back delete, oldest date = {$old_string} Query = {$qry}"; - if($del_count = $sql->db_Delete($db_table, $qry)) - { - // Add in a log event - $message = $db_name.str_replace(array('[x]', '[y]'), array($old_string, $del_count), RL_LAN_057); - $mes->addSuccess($message); - e107::getLog()->add($db_msg, "db_Delete - earlier than {$old_string} (past {$qs[2]} days)[!br!]".$message.'[!br!]'.$db_table.' '.$qry, E_LOG_INFORMATIVE, ''); - } - else - { - $mes->addWarning(RL_LAN_054." : ".$sql->mySQLresult); - } - } - else - { - $mes->addInfo(LAN_NO_CHANGE); - } - - $action = "config"; - unset($qs[1]); - unset($qs[2]); -} - -// Prompt to delete back events -if(($action == "confdel") || ($action == "auditdel")) -{ - $old_string = strftime("%d %B %Y", $qs[1]); - $text = " -
-
- ".LAN_CONFDELETE." - - - - -
- ".(($action == "confdel") ? RL_LAN_047 : RL_LAN_065).$old_string." -
-
- - ".$frm->admin_button('confirmdeleteold', 'no-value', 'delete', RL_LAN_049)." - ".$frm->admin_button('confirmcancelold', 'no-value', 'delete', LAN_CANCEL)." -
-
-
- - "; - - $ns->tablerender(LAN_CONFDELETE, $text); -} - -// Arrays of options for the various logs - the $page_title array is used to determine the allowable values for $action ('options' is a special case) -$log_db_table = array('adminlog' => 'admin_log', 'auditlog' => 'audit_log', 'rolllog' => 'dblog', 'downlog' => 'download_requests', 'online' => 'online'); -$back_day_count = array('adminlog' => 30, 'auditlog' => 30, 'rolllog' => max(intval($pref['roll_log_days']), 1), 'downlog' => 60, 'detailed' => 20, 'online' => 30); -$page_title = array('adminlog' => RL_LAN_030, 'auditlog' => RL_LAN_062, 'rolllog' => RL_LAN_002, 'downlog' => RL_LAN_067, 'detailed' => RL_LAN_094, 'online' => RL_LAN_120); - -// Set all the defaults for the data filter -$start_enabled = FALSE; -$end_enabled = FALSE; -$start_time = 0; -$end_time = 0; -$user_filter = ''; -$event_filter = ''; -$pri_filter_cond = "xx"; -$pri_filter_val = ""; -$sort_order = "DESC"; -$downloadid_filter = ''; - -$last_noted_time = 0; - -// Maintain the log view filter across pages -$rl_cookiename = $pref['cookie_name']."_rl_admin"; -if(isset($_POST['updatefilters']) || isset($_POST['clearfilters'])) -{ // Need to put the filter values into the cookie - if(! isset($_POST['clearfilters'])) - { // Only update filter values from $_POST[] if 'clear filters' not active - $start_time = intval($_POST['starttimedate'] + $_POST['starttimehours'] * 3600 + $_POST['starttimemins'] * 60); - $start_enabled = isset($_POST['start_enabled']); - if(isset($_POST['timelength'])) - { - $end_time = intval($_POST['timelength']) * 60 + $start_time; - } - else - { - $end_time = intval($_POST['endtimedate'] + $_POST['endtimehours'] * 3600 + $_POST['endtimemins'] * 60); - } - $end_enabled = isset($_POST['end_enabled']); - $user_filter = trim(varset($_POST['roll_user_filter'], '')); - if($user_filter != '') - $user_filter = intval($user_filter); - $event_filter = $tp->toDB($_POST['roll_event_filter']); - $pri_filter_cond = $tp->toDB($_POST['roll_pri_cond']); - $pri_filter_val = $tp->toDB($_POST['roll_pri_val']); - $caller_filter = $tp->toDB($_POST['roll_caller_filter']); - $ipaddress_filter = $e107->ipEncode($tp->toDB($_POST['roll_ipaddress_filter'])); - $downloadid_filter = $tp->toDB($_POST['roll_downloadid_filter']); - } - $cookie_string = implode("|", array($start_time, $start_enabled, $end_time, $end_enabled, $user_filter, $event_filter, $pri_filter_cond, $pri_filter_val, $caller_filter, $ipaddress_filter, $downloadid_filter)); - // echo $cookie_string."
"; - // Create session cookie to store values - cookie($rl_cookiename, $cookie_string, 0); // Use session cookie -} -else -{ - // Now try and get the filters from the cookie - if(isset($_COOKIE[$rl_cookiename])) - list($start_time, $start_enabled, $end_time, $end_enabled, $user_filter, $event_filter, $pri_filter_cond, $pri_filter_val, $caller_filter, $ipaddress_filter, $downloadid_filter) = explode("|", $_COOKIE[$rl_cookiename]); - if(isset($qs[1]) && isset($qs[2]) && ($qs[1] == 'user') && (intval($qs[2]) > 0)) - { - $user_filter = intval($qs[2]); - } -} - -$timelength = 5; -if($start_time != 0 && $end_time != 0) - $timelength = intval(($end_time - $start_time) / 60); - -function time_box($boxname, $this_time, $day_count, $inc_tomorrow = FALSE, $all_mins = FALSE) -{ // Generates boxes for date and time for today and the preceding days - // Appends 'date', 'hours', 'mins' to the specified boxname - - - $all_time = getdate(); // Date/time now - $sel_time = getdate($this_time); // Currently selected date/time - $sel_day = mktime(0, 0, 0, $sel_time['mon'], $sel_time['mday'], $sel_time['year']); - $today = mktime(0, 0, 0, $all_time['mon'], $all_time['mday'] + ($inc_tomorrow ? 1 : 0), $all_time['year']); - - // Start with day - $ret = ""; - - // Hours - $ret .= " "; - - // Minutes - $ret .= " "; - - return $ret; -} - -if(! defined("USER_WIDTH")) -{ - define("USER_WIDTH", "width:97%"); -} - -//==================================================================== -// CONFIGURATION OPTIONS MENU -//==================================================================== - -/* -if($action == "config") -{ - // User Audit log options (for info) - //======================= - // define('USER_AUDIT_SIGNUP',11); // User signed up - // define('USER_AUDIT_EMAILACK',12); // User responded to registration email - // define('USER_AUDIT_LOGIN',13); // User logged in - // define('USER_AUDIT_LOGOUT',14); // User logged out - // define('USER_AUDIT_NEW_DN',15); // User changed display name - // define('USER_AUDIT_NEW_PW',16); // User changed password - // define('USER_AUDIT_NEW_EML',17); // User changed email - // define('USER_AUDIT_NEW_SET',19); // User changed other settings (intentional gap in numbering) - // define('USER_AUDIT_ADD_ADMIN', 20); // User added by admin - // define('USER_AUDIT_MAIL_BOUNCE', 21); // User mail bounce - // define('USER_AUDIT_BANNED', 22); // User banned - // define('USER_AUDIT_BOUNCE_RESET', 23); // User bounce reset - // define('USER_AUDIT_TEMP_ACCOUNT', 24); // User temporary account - - - $audit_checkboxes = array(USER_AUDIT_SIGNUP => RL_LAN_071, USER_AUDIT_EMAILACK => RL_LAN_072, USER_AUDIT_LOGIN => RL_LAN_073, // USER_AUDIT_LOGOUT => RL_LAN_074, // Logout is lumped in with login - USER_AUDIT_NEW_DN => RL_LAN_075, USER_AUDIT_NEW_PW => RL_LAN_076, USER_AUDIT_PW_RES => RL_LAN_078, USER_AUDIT_NEW_EML => RL_LAN_077, USER_AUDIT_NEW_SET => RL_LAN_079, - USER_AUDIT_ADD_ADMIN => RL_LAN_080, USER_AUDIT_MAIL_BOUNCE => RL_LAN_081, USER_AUDIT_BANNED => RL_LAN_082, USER_AUDIT_BOUNCE_RESET => RL_LAN_083, - USER_AUDIT_TEMP_ACCOUNT => RL_LAN_084); - - if(! isset($e_userclass) && ! is_object($e_userclass)) - { - require_once (e_HANDLER."userclass_class.php"); - $e_userclass = new user_class(); - } - - $user_signup_opts = array_flip(explode(',', varset($pref['user_audit_opts'], ''))); - - // Common to all logs - $text = " -
- ".RL_LAN_121." -
-
- ".RL_LAN_122." - - - - - - - - - - - "; - - // User Audit Trail Options - $text .= " - - - - - - - - - "; - - - // Rolling log options - //==================== - $text .= " - - - - - - - - - -
".RL_LAN_044."".$frm->select('sys_log_perpage', array(10, 20, 30, 40, 50), $pref['sys_log_perpage'])."".RL_LAN_064."
".RL_LAN_123." - - ".RL_LAN_026." -
".RL_LAN_031.""; - - foreach($audit_checkboxes as $k => $t) - { - $checked = isset($user_signup_opts[$k]) ? true : false; - $text .= $frm->checkbox('user_audit_opts[]',$k, $checked, array('label'=>$t)); - } - - - $text .= $frm->admin_button('check_all', 'jstarget:user_audit_opts', 'checkall', LAN_CHECKALL).$frm->admin_button('uncheck_all', 'jstarget:user_audit_opts', 'checkall', LAN_UNCHECKALL)." -
".RL_LAN_008." -
- ".$frm->checkbox('roll_log_active', 1, varset($pref['roll_log_active'],0))." -
-
".RL_LAN_009."".$frm->text('roll_log_days', $pref['roll_log_days'], 5)."
-
- ".$frm->admin_button('setoptions', 'no-value', 'update', LAN_UPDATE)." -
-
-
- "; - - // Admin log maintenance - //================== - $text .= " -
-
- ".RL_LAN_125." - - - - - - - - - - - "; - - // User log maintenance - //==================== - $text .= " - - - - - -
".RL_LAN_045." ".gen_log_delete('rolllog_clearadmin')." ".RL_LAN_046.$frm->admin_button('deleteoldadmin', 'no-value', 'delete', RL_LAN_049)."
".RL_LAN_066." ".gen_log_delete('rolllog_clearaudit')." ".RL_LAN_046.$frm->admin_button('deleteoldaudit', 'no-value', 'delete', RL_LAN_049)."
-
-
- -
- "; - - $ns->tablerender(ADLAN_155.SEP.LAN_OPTIONS, $mes->render().$text); -} -*/ - -//==================================================================== -// LOG VIEW MENU -//==================================================================== -if(isset($page_title[$action])) -{ - $from = intval(varset($qs[1], 0)); // First entry to display - $amount = max(varset($pref['sys_log_perpage'], 20), 5); // Number of entries per page - - - // Array decides which filters are active for each log. There are 4 columns total. All but 'datetimes' occupy 2. Must specify multiple of 4 columns - add 'blank' if necessary - $active_filters = array( - 'adminlog' => array('datetimes' => 0, 'ipfilter' => 0, 'userfilter' => 0, 'eventfilter' => 0, 'priority' => 0), - 'auditlog' => array('datetimes' => 0, 'ipfilter' => 0, 'userfilter' => 0, 'eventfilter' => 0, 'blank' => 2), - 'rolllog' => array('datetimes' => 0, 'ipfilter' => 0, 'userfilter' => 0, 'eventfilter' => 0, 'priority' => 0, 'callerfilter' => 0, 'blank' => 2), - 'downlog' => array('datetimes' => 0, 'ipfilter' => 0, 'userfilter' => 0, 'downloadidfilter' => 0, 'blank' => 2), - 'detailed' => array('datestart' => 0, 'ipfilter' => 0, 'userfilter' => 0, 'eventfilter' => 0, 'blank' => 2), - 'online' => array('ipfilter' => 0, 'userfilter' => 0)); - - // Arrays determine column widths, headings, displayed fields for each log - $col_fields = array( - 'adminlog' => array('cf_datestring', 'dblog_type', 'dblog_ip', 'dblog_user_id', 'user_name', 'dblog_eventcode', 'dblog_title', 'dblog_remarks'), - 'auditlog' => array('cf_datestring', 'dblog_ip', 'dblog_user_id', 'dblog_user_name', 'dblog_eventcode', 'dblog_title', 'dblog_remarks'), - 'rolllog' => array('cf_datestring', 'dblog_type', 'dblog_ip', 'dblog_user_id', 'dblog_user_name', 'dblog_eventcode', 'dblog_caller', 'dblog_title', 'dblog_remarks'), - 'downlog' => array('cf_datestring', 'dblog_ip', 'dblog_user_id', 'user_name', 'download_request_download_id', 'download_name'), - 'detailed' => array('cf_microtime', 'cf_microtimediff', 'source', 'dblog_type', 'dblog_ip', 'dblog_user_id', 'user_name', 'dblog_eventcode', 'dblog_title', 'dblog_remarks'), - 'online' => array('cf_datestring', 'dblog_ip', 'dblog_user_id', 'user_name', 'online_location', 'online_pagecount', 'online_flag', 'online_active')); - $col_widths = array( - 'adminlog' => array(18, 4, 14, 7, 15, 8, 14, 20), // Date - Pri - IP - UID - User - Code - Event - Info - 'auditlog' => array(18, 14, 7, 15, 8, 14, 24), - 'rolllog' => array(15, 4, 12, 6, 12, 7, 13, 13, 18), // Date - Pri - IP - UID - User - Code - Caller - Event - Info - 'downlog' => array(18, 14, 7, 15, 8, 38), - 'detailed' => array(10, 8, 6, 4, 14, 6, 17, 7, 17, 21), - 'comments' => array(14, 7, 7, 7, 14, 3, 10, 12, 5, 17, 1, 1, 1), - 'online' => array(18, 15, 7, 14, 32, 6, 4, 4)); - $col_titles = array( - 'adminlog' => array(RL_LAN_019, RL_LAN_032, RL_LAN_020, RL_LAN_104, LAN_USER, RL_LAN_023, LAN_TITLE, RL_LAN_033), - 'auditlog' => array(RL_LAN_019, RL_LAN_020, RL_LAN_104, LAN_USER, RL_LAN_023, LAN_TITLE, RL_LAN_033), - 'rolllog' => array(RL_LAN_019, RL_LAN_032, RL_LAN_020, RL_LAN_104, LAN_USER, RL_LAN_023, RL_LAN_024, LAN_TITLE, RL_LAN_033), - 'downlog' => array(RL_LAN_019, RL_LAN_020, RL_LAN_104, LAN_USER, RL_LAN_068, RL_LAN_069), - 'detailed' => array(LAN_TIME, RL_LAN_096, LAN_SOURCE, RL_LAN_032, RL_LAN_020, RL_LAN_104, LAN_USER, RL_LAN_023, LAN_TITLE, RL_LAN_033), - 'online' => array(RL_LAN_019, RL_LAN_020, LAN_ID, LAN_USER, RL_LAN_116, RL_LAN_117, RL_LAN_118, RL_LAN_116)); - - - - // Only need to define entries in this array if the base DB query is non-standard (i.e. different field names and/or joins) - $base_query = array('downlog' => "SELECT SQL_CALC_FOUND_ROWS - dbl.download_request_id as dblog_id, - dbl.download_request_userid as dblog_user_id, - dbl.download_request_ip as dblog_ip, - dbl.download_request_download_id, - dbl.download_request_datestamp as dblog_datestamp, - d.download_name, - u.user_name - FROM #download_requests AS dbl - LEFT JOIN #user AS u ON dbl.download_request_userid=u.user_id - LEFT JOIN #download AS d ON dbl.download_request_download_id=d.download_id - ", 'detailed' => "SELECT SQL_CALC_FOUND_ROWS cl.*, u.* FROM ( - SELECT dblog_datestamp + (dblog_microtime/1000000) AS dblog_time, dblog_user_id, dblog_eventcode, dblog_title, dblog_remarks, dblog_type, dblog_ip, 'roll' AS source FROM `#dblog` - UNION - SELECT dblog_datestamp + (dblog_microtime/1000000) AS dblog_time, dblog_user_id, dblog_eventcode, dblog_title, dblog_remarks, '-' AS dblog_type, dblog_ip, 'audit' AS source FROM `#audit_log` - UNION - SELECT dblog_datestamp + (dblog_microtime/1000000) AS dblog_time, dblog_user_id, dblog_eventcode, dblog_title, dblog_remarks, dblog_type, dblog_ip, 'admin' AS source FROM `#admin_log`) AS cl - LEFT JOIN `#user` AS u ON cl.dblog_user_id=u.user_id ", 'comments' => "SELECT SQL_CALC_FOUND_ROWS *, comment_datestamp AS dblog_datestamp FROM `#comments` AS c", 'online' => "SELECT SQL_CALC_FOUND_ROWS online_timestamp AS dblog_datestamp, - online_ip AS dblog_ip, - SUBSTRING_INDEX(online_user_id,'.',1) AS dblog_user_id, - SUBSTRING(online_user_id FROM LOCATE('.',online_user_id)+1) AS user_name, - `online_location`, `online_pagecount`, `online_flag`, `online_active` - FROM `#online`"); - - // The filters have to use the 'actual' db field names. So the following table sets the defaults and the exceptions which vary across the range of tables supported - $map_filters = array('default' => array('datetimes' => '`dblog_datestamp`', 'ipfilter' => '`dblog_ip`', 'userfilter' => '`dblog_user_id`', 'eventfilter' => '`dblog_eventcode`'), 'downlog' => array('datetimes' => '`download_request_datestamp`', 'ipfilter' => '`download_request_ip`', 'userfilter' => '`download_request_userid`'), 'detailed' => array('datestart' => '`dblog_time`'), 'comments' => array('datetimes' => '`comment_datestamp`', 'ipfilter' => '`comment_ip`', 'eventfilter' => 'comment_type', 'userfilter' => '`comment_author_id`'), 'online' => array('online_ip' => '`dblog_ip`', 'online_user_id' => '`dblog_user_id`')); - - // Field to sort table on - $sort_fields = array('default' => 'dblog_id', 'detailed' => 'dblog_time', 'comments' => 'comment_datestamp', 'online' => 'online_timestamp'); - - // Check things - if($start_time >= $end_time) - { // Make end time beginning of tomorrow - $tempdate = getdate(); - $end_time = mktime(0, 0, 0, $tempdate['mon'], $tempdate['mday'] + 1, $tempdate['year']); // Seems odd, but mktime will work this out OK - // (or so the manual says) - } - - // Now work out the query - only use those filters which are displayed - $qry = ''; - $and_array = array(); - foreach($active_filters[$action] as $fname => $fpars) - { - $filter_field = varset($map_filters[$action][$fname], $map_filters['default'][$fname]); - switch($fname) - { - case 'datetimes': - if($start_enabled && ($start_time > 0)) - $and_array[] = "{$filter_field} >= ".intval($start_time); - if($end_enabled && ($end_time > 0)) - $and_array[] = "{$filter_field} <= ".intval($end_time); - break; - case 'datestart': - if($start_time == 0) - { - $end_time = time(); - $start_time = $end_time - 300; // Default to last 5 mins - } - $and_array[] = "{$filter_field} >= ".intval($start_time); - $and_array[] = "{$filter_field} <= ".intval($end_time); - break; - case 'ipfilter': - if($ipaddress_filter != "") - { - if(substr($ipaddress_filter, - 1) == '*') - { // Wildcard to handle - mySQL uses % - $and_array[] = "{$filter_field} LIKE '".substr($ipaddress_filter, 0, - 1)."%' "; - } - else - { - $and_array[] = "{$filter_field}= '".$ipaddress_filter."' "; - } - } - break; - case 'userfilter': - if($user_filter != '') - $and_array[] = "{$filter_field} = ".intval($user_filter); - break; - case 'eventfilter': - if($event_filter != '') - { - if(substr($event_filter, - 1) == '*') - { // Wildcard to handle - mySQL uses % - $and_array[] = " {$filter_field} LIKE '".substr($event_filter, 0, - 1)."%' "; - } - else - { - $and_array[] = "{$filter_field}= '".$event_filter."' "; - } - } - break; - case 'callerfilter': - if($caller_filter != '') - { - if(substr($caller_filter, - 1) == '*') - { // Wildcard to handle - mySQL uses % - $and_array[] = "dblog_caller LIKE '".substr($caller_filter, 0, - 1)."%' "; - } - else - { - $and_array[] = "dblog_caller= '".$caller_filter."' "; - } - } - break; - case 'priority': - if(($pri_filter_val != "") && ($pri_filter_cond != "") && ($pri_filter_cond != "xx")) - { - switch($pri_filter_cond) - { - case "lt": - $and_array[] = "dblog_type <= '{$pri_filter_val}' "; - break; - case "eq": - $and_array[] = "dblog_type = '{$pri_filter_val}' "; - break; - case "gt": - $and_array[] = "dblog_type >= '{$pri_filter_val}' "; - break; - } - } - break; - case 'downloadidfilter': - if($downloadid_filter != '') - $and_array[] = "download_request_download_id = ".intval($downloadid_filter); - break; - } - } - - if(count($and_array)) - $qry = " WHERE ".implode(' AND ', $and_array); - - $limit_clause = " LIMIT {$from}, {$amount} "; - $sort_field = varset($sort_fields[$action], $sort_fields['default']); - - if(isset($base_query[$action])) - { - $qry = $base_query[$action].$qry." ORDER BY {$sort_field} ".$sort_order; - } - else - { - $qry = "SELECT SQL_CALC_FOUND_ROWS dbl.*,u.user_name FROM #".$log_db_table[$action]." AS dbl LEFT JOIN #user AS u ON dbl.dblog_user_id=u.user_id".$qry." ORDER BY {$sort_field} ".$sort_order; - } - - $num_entry = 0; - if($sql->gen($qry.$limit_clause)) - { - $num_entry = $sql->total_results; - } - if($from > $num_entry) - { - $from = 0; // We may be on a later page - $limit_clause = " LIMIT {$from}, {$amount} "; - $sql->gen($qry.$limit_clause); // Re-run query with new value of $from - $num_entry = $sql->total_results; - } - - // Start by putting up the filter boxes - $text = " -
-
- ".RL_LAN_012." - - - - - - - - "; - $filter_cols = 0; - foreach($active_filters[$action] as $fname => $fpars) - { - if($filter_cols == 0) - $text .= ''; - switch($fname) - { - case 'datetimes': - $text .= " - - - - - "; - $filter_cols = 4; - break; - case 'datestart': - $text .= " - - - - "; - $filter_cols = 4; - break; - case 'priority': - $text .= " - - - "; - $filter_cols += 2; - break; - case 'ipfilter': - $text .= " - - - "; - $filter_cols += 2; - break; - case 'userfilter': - $text .= " - - - "; - $filter_cols += 2; - break; - case 'eventfilter': - $text .= " - - - "; - $filter_cols += 2; - break; - case 'callerfilter': - $text .= " - - - "; - $filter_cols += 2; - break; - case 'downloadidfilter': - $text .= " - - "; - $filter_cols += 2; - break; - case 'blank': // Any number of blank cells - $text .= str_repeat("", $fpars); - $filter_cols += $fpars; - break; - } - if($filter_cols >= 4) - { - $text .= ''; - $filter_cols = 0; - } - } - - // $text .= ""; - $text .= " -
".$frm->checkbox('start-enabled', 1, varset($pref['start-enabled'],0))."".time_box("starttime", $start_time, $back_day_count[$action], FALSE)."".$frm->checkbox('end-enabled', 1, varset($pref['end-enabled'],0))."".time_box("endtime", $end_time, $back_day_count[$action], TRUE)."".RL_LAN_013."".time_box("starttime", $start_time, $back_day_count[$action], FALSE, TRUE)."".RL_LAN_092." - ".RL_LAN_093." - ".RL_LAN_058."".$frm->select('roll_pri_cond', array('xx' => ' ', 'gt' => '>=', 'eq' => '==', 'lt' => '<='), $pri_filter_cond)." - - ".RL_LAN_060." - - ".RL_LAN_061." - ".RL_LAN_015." - - ".RL_LAN_016." - ".RL_LAN_029." - - ".RL_LAN_061." - ".RL_LAN_059." - - ".RL_LAN_061." - ".RL_LAN_090." - -  
Query = ".$qry.$limit_clause."
{$_COOKIE[$rl_cookiename]}
-
- ".$frm->admin_button('clearfilters', 'no-value', 'delete', RL_LAN_114)." - ".$frm->admin_button('updatefilters', 'no-value', 'update', RL_LAN_028)." -
-
-
- "; - - // Next bit is the actual log display - the arrays define column widths, titles, fields etc for each log - $column_count = count($col_widths[$action]); - $text .= " -
-
- {$page_title[$action]} - - - "; - - foreach($col_widths[$action] as $i) - { - $text .= " - - "; - } - - $text .= " - - - "; - - if($num_entry == 0) - { - $text .= " - - - - "; - } - else - { // Start with header - $text .= ' - - - '; - $count = 1; - foreach($col_titles[$action] as $ct) - { - count($col_titles[$action]); - $text .= " - {$ct} - "; - $count ++; - } - $text .= " - - - - "; - - // Routine to handle the simple bbcode-like codes for log body text - function log_process($matches) - { - switch($matches[1]) - { - case 'br': - return '
'; - case 'link': - $temp = substr($matches[2], 1); - return "{$temp}"; - case 'test': - return '----TEST----'; - default: - return $matches[0]; // No change - } - } - // Now put up the events - $delete_button = FALSE; - while($row = $sql->fetch()) - { - $text .= ''; - foreach($col_fields[$action] as $cf) - { - switch($cf) - { - case 'cf_datestring': - $val = date(AL_DATE_TIME_FORMAT, $row['dblog_datestamp']); - break; - case 'cf_microtime': - $val = date("H:i:s", intval($row['dblog_time']) % 86400).'.'.str_pad(100000 * round($row['dblog_time'] - floor($row['dblog_time']), 6), 6, '0'); - break; - case 'cf_microtimediff': - $val = ' '; - if($last_noted_time > 0) - { - $val = number_format($last_noted_time - $row['dblog_time'], 6, '.', ''); - } - $last_noted_time = $row['dblog_time']; - break; - case 'cf_eventcode': - $val = 'ADMIN'.$row['dblog_eventcode']; - break; - case 'dblog_title': // Look up constants to give multi-language viewing - $val = trim($row['dblog_title']); - if(defined($val)) - $val = constant($val); - break; - case 'dblog_user_name': - $val = $row['dblog_user_id'] ? $row['dblog_user_name'] : LAN_ANONYMOUS; - break; - case 'user_name': - $val = $row['dblog_user_id'] ? $row['user_name'] : LAN_ANONYMOUS; - break; - case 'dblog_caller': - $val = $row['dblog_caller']; - if((strpos($val, '|') !== FALSE) && (strpos($val, '@') !== FALSE)) - { - list($file, $rest) = explode('|', $val); - list($routine, $rest) = explode('@', $rest); - $val = $file.'
Function: '.$routine.'
Line: '.$rest; - } - break; - case 'dblog_remarks': - // Look for pseudo-code for newlines, link insertion - $val = preg_replace_callback("#\[!(\w+?)(=.+?)?!]#", 'log_process', $row['dblog_remarks']); - break; - case 'dblog_ip': - $val = e107::getIPHandler()->ipDecode($row['dblog_ip']); - break; - case 'comment_ip': - $val = e107::getIPHandler()->ipDecode($row['comment_ip']); - /* if (strlen($val) == 8) // New decoder should handle this automatically - { - $hexip = explode('.', chunk_split($val, 2, '.')); - $val = hexdec($hexip[0]). '.'.hexdec($hexip[1]).'.'.hexdec($hexip[2]).'.'.hexdec($hexip[3]); - } */ - break; - case 'comment_comment': - $val = $tp->text_truncate($row['comment_comment'], 100, '...'); // Just display first bit of comment - break; - case 'online_location': - $val = str_replace($e107->base_path, '', $row['online_location']); // Just display site-specific bit of path - break; - case 'del_check': // Put up a 'delete' checkbox - $val = ""; - $delete_button = TRUE; - break; - default: - $val = $row[$cf]; - } - $text .= ""; - } - $text .= ""; - } - } - $text .= " - -
".RL_LAN_017."
{$val}
-
- ".$frm->admin_button('refreshlog', 'no-value', 'submit', RL_LAN_018)." - "; - if($delete_button) - { - $text .= $frm->admin_button('deleteitems', 'no-value', 'delete', RL_LAN_11); - } - $text .= " -
-
-
- "; - - // Next-Previous. ========================== - - $text .= sprintf(str_replace("[x]", "%d", RL_LAN_126), $num_entry); - if($num_entry > $amount) - { - $parms = "{$num_entry},{$amount},{$from},".e_SELF."?".$action.".[FROM]"; - $text .= "
".$tp->parseTemplate("{NEXTPREV={$parms}}")."
"; - } - - $ns->tablerender("{$page_title[$action]}", $mes->render().$text); -} - -function admin_log_adminmenu() -{ - if(e_QUERY) - { - $tmp = explode(".", e_QUERY); - $action = $tmp[0]; - } - if($action == "") - { - $action = "adminlog"; - } - $var['adminlog']['text'] = RL_LAN_030; - $var['adminlog']['link'] = "admin_log.php?adminlog"; - - $var['auditlog']['text'] = RL_LAN_062; - $var['auditlog']['link'] = "admin_log.php?auditlog"; - - $var['rolllog']['text'] = RL_LAN_002; - $var['rolllog']['link'] = "admin_log.php?rolllog"; - - $var['downlog']['text'] = RL_LAN_067; - $var['downlog']['link'] = "admin_log.php?downlog"; - - $var['detailed']['text'] = RL_LAN_091; - $var['detailed']['link'] = "admin_log.php?detailed"; - -// Deprecated by Comments Manager. -/* - $var['comments']['text'] = 'Comments'; - $var['comments']['link'] = "admin_log.php?comments"; -*/ - $var['config']['text'] = LAN_OPTIONS; - $var['config']['link'] = "admin_log.php?config"; - - /* XXX - why?! - if($action == 'comments') - { - $var['users']['text'] = RL_LAN_115; - $var['users']['link'] = "users.php"; - } - */ - e107::getNav()->admin(RL_LAN_005, $action, $var); -} - -require_once (e_ADMIN."footer.php"); - - - -/** - * Handle page DOM within the page header - * - * @return string JS source - *//* -function headerjs() -{ - require_once(e_HANDLER.'js_helper.php'); - $ret = " - - - "; - - return $ret; -}*/ - -?> diff --git a/e107_admin/administrator.php b/e107_admin/administrator.php index 1705e1eee..d7432e9ec 100644 --- a/e107_admin/administrator.php +++ b/e107_admin/administrator.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('3')) { e107::redirect('admin'); diff --git a/e107_admin/banlist.php b/e107_admin/banlist.php index d68ccb5f5..8c71be2b0 100644 --- a/e107_admin/banlist.php +++ b/e107_admin/banlist.php @@ -11,7 +11,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('4')) { @@ -991,6 +991,6 @@ e107::getAdminUI()->runPage(); require_once(e_ADMIN.'footer.php'); -exit; + diff --git a/e107_admin/banlist_export.php b/e107_admin/banlist_export.php index 0a3f9921c..bdaf00fdb 100644 --- a/e107_admin/banlist_export.php +++ b/e107_admin/banlist_export.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('4')) { e107::redirect('admin'); @@ -18,7 +18,7 @@ if (!getperms('4')) } /* -Output a selection of data from the banlist table as a CSV +Output a selection of data from the banlist table arequire_once(__DIR__.'/../class2.php');s a CSV Selection data: $_POST['ban_types'] - array of 0..9 $_POST['ban_separator'] - 1 or 2 @@ -42,12 +42,15 @@ $format_array = array( 'banlist_notes' => 1 ); -$use_separator = varset($separator_char[intval($_POST['ban_separator'])],$separator_char[1]); -$use_quote = varset($quote_char[intval($_POST['ban_quote'])],$quote_char[2]); +$banSep = (int) varset($_POST['ban_separator']); +$banQuote = (int) varset($_POST['ban_quote']); +$use_separator = varset($separator_char[$banSep],$separator_char[1]); +$use_quote = varset($quote_char[$banQuote],$quote_char[2]); $type_list = ''; -if (is_array($_POST['ban_types'])) + +if (!empty($_POST['ban_types'])) { $validBanTypes = banlistManager::getValidReasonList(); $spacer = ''; diff --git a/e107_admin/boot.php b/e107_admin/boot.php index 914a025b6..023286ea8 100644 --- a/e107_admin/boot.php +++ b/e107_admin/boot.php @@ -16,7 +16,12 @@ if (!defined('e107_INIT')) } e107::getDebug()->logTime('(Start boot.php)'); -header('Content-type: text/html; charset=utf-8', TRUE); + +if(!e107::isCli()) +{ + header('Content-type: text/html; charset=utf-8', TRUE); +} + define('ADMINFEED', 'https://e107.org/adminfeed'); diff --git a/e107_admin/cache.php b/e107_admin/cache.php index 087c9b28c..c648e00e6 100644 --- a/e107_admin/cache.php +++ b/e107_admin/cache.php @@ -10,7 +10,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__."/../class2.php"); if (!getperms("C")) { diff --git a/e107_admin/check_inspector.php b/e107_admin/check_inspector.php deleted file mode 100644 index 087289a11..000000000 --- a/e107_admin/check_inspector.php +++ /dev/null @@ -1,44 +0,0 @@ - \ No newline at end of file diff --git a/e107_admin/comment.php b/e107_admin/comment.php index fbd646c48..4b7b7e565 100644 --- a/e107_admin/comment.php +++ b/e107_admin/comment.php @@ -8,7 +8,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if (!getperms("B")) { e107::redirect('admin'); @@ -346,5 +346,5 @@ require_once(e_ADMIN."auth.php"); e107::getAdminUI()->runPage(); require_once(e_ADMIN."footer.php"); -exit; + diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index 200623842..56c439906 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -10,7 +10,7 @@ * Admin-related functions for custom page and menu creation */ //define('e_MINIMAL',true); -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms("5|J")) { e107::redirect('admin'); exit; } diff --git a/e107_admin/credits.php b/e107_admin/credits.php index 41b094fb8..f8e520518 100644 --- a/e107_admin/credits.php +++ b/e107_admin/credits.php @@ -10,7 +10,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__."/../class2.php"); $css = "body { text-align: left; font-size:13px; line-height:1.5em; font-weight:normal; font-family:Arial, Helvetica, sans-serif; } p { margin:0px 5px 10px 5px; } @@ -60,5 +60,3 @@ require_once(e_ADMIN."auth.php"); $ns->tablerender("",$text); require_once(e_ADMIN."footer.php"); - -exit; \ No newline at end of file diff --git a/e107_admin/cron.php b/e107_admin/cron.php index a67c70bd2..5b926e154 100644 --- a/e107_admin/cron.php +++ b/e107_admin/cron.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('U')) { e107::redirect('admin'); @@ -423,6 +423,8 @@ class cron_admin_ui extends e_admin_ui function cronExecute($cron_id) { $sql = e107::getDb(); + $class_func = ''; + if($sql->select("cron","cron_name,cron_function","cron_id = ".intval($cron_id))) { $row = $sql->fetch(); @@ -750,562 +752,5 @@ $frm = e107::getForm(); // $cron = new cron(); require_once(e_ADMIN.'footer.php'); -exit; -/* -class cron -{ - protected $coreCrons = array(); - protected $cronAction; - protected $e_cron = array(); - - public function __construct() - { - $pref = e107::getPref(); - $mes = e107::getMessage(); - $this->cronAction = e_QUERY; - - // The 'available' flag only gives the option to configure the cron if the underlying feature is enabled - $this->coreCrons['_system'] = array( - 0 => array('name' => 'Test Email', 'function' => 'sendEmail', 'description' => 'Send a test email to '.$pref['siteadminemail'].'
Recommended to test the scheduling system.'), - 1 => array('name' => 'Mail Queue', 'function' => 'procEmailQueue', 'description' => 'Process mail queue'), - 2 => array('name' => 'Mail Bounce Check', 'function' => 'procEmailBounce', 'description' => 'Check for bounced emails', 'available' => vartrue($pref['mail_bounce_auto'])), - // 1 => array('name'=>'User Purge', 'function' => 'userPurge', 'description'=>'Purge Unactivated Users'), - // 2 => array('name'=>'User UnActivated', 'function' => 'userUnactivated', 'description'=>'Resend activation email to unactivated users.'), - // 3 => array('name'=>'News Sticky', 'function' => 'newsPurge', 'description'=>'Remove Sticky News Items') - ); - - if (!vartrue($pref['e_cron_pwd'])) - { - $pwd = $this->setCronPwd(); - } - - if (isset($_POST['submit'])) - { - $this->cronSave(); - } - - $this->lastRefresh(); - $this->cronLoad(); - - if (isset($_POST['save_prefs'])) - { - $this->cronSavePrefs(); - } - - if (isset($_POST['execute'])) - { - - $class_func = key($_POST['execute']); - $this->cronExecute($class_func); - } - - // Set Core Cron Options. - - // These core functions need to be put into e_BASE/cron.php ie. news_purge() - - if ($this->cronAction == "" || $this->cronAction == "main") - { - $this->cronRenderPage(); - } - - if ($this->cronAction == "pref") - { - $this->cronRenderPrefs(); - } - } - - function lastRefresh() - { - $pref = e107::getPref(); - e107::getCache()->CachePageMD5 = '_'; - $lastload = e107::getCache()->retrieve('cronLastLoad', FALSE, TRUE, TRUE); - $mes = e107::getMessage(); - $ago = (time() - $lastload); - - $active = ($ago < 901) ? TRUE : FALSE; - $status = ($active) ? LAN_ENABLED : LAN_DISABLED; // "Enabled" : "Offline"; - - $mins = floor($ago / 60); - $secs = $ago % 60; - - $lastRun = ($mins) ? $mins." minutes and ".$secs." seconds ago." : $secs." seconds ago."; - - $lastRefresh = ($ago < 10000) ? $lastRun : 'Never'; - - $mes->add("Status: ".$status."", E_MESSAGE_INFO); - - // print_a($pref['e_cron_pref']); - - if ($pref['e_cron_pref']) // grab cron - - { - foreach ($pref['e_cron_pref'] as $func => $cron) - { - if ($cron['active'] == 1) - { - $list[$func] = $cron; - } - } - } - - $mes->add("Active Crons: ".count($list)."", E_MESSAGE_INFO); - $mes->add("Last cron refresh: ".$lastRefresh, E_MESSAGE_INFO); - - //FIXME: for Windows, the is_executable() function only checks the file - // extensions of exe, com, bat and cmd. - - - $actualPerms = fileperms(e_BASE."cron.php"); - - if (!is_executable(realpath(e_BASE."cron.php"))) - { - $mes->add("Please CHMOD /cron.php to 755 ", E_MESSAGE_WARNING); - } - //elseif (!$active) - always show instructions - { - $setpwd_message = "Use the following Cron Command: ".$_SERVER['DOCUMENT_ROOT'].e_HTTP."cron.php ".$pref['e_cron_pwd']."
- Using your server control panel (eg. cPanel,Plesk etc.) please create a crontab to run this command on your server every minute."; - $mes->add($setpwd_message, E_MESSAGE_INFO); - } - - } - - function cronName($classname, $method) - { - $tp = e107::getParser(); - - foreach ($this->e_cron as $class => $val) - { - - if ($class == $classname) - { - foreach ($val as $func) - { - if ($func['function'] == $method) - { - return $tp->toHTML($func['name']); - } - } - } - } - } - - function cronExecute($class_func) - { - //TO/ DO L/ANs - list($class_name, $method_name) = explode("__", $class_func); - $mes = e107::getMessage(); - - $taskName = $class_name; - if ($class_name == '_system') - { - require_once(e_HANDLER.'cron_class.php'); - } - else - { - require_once(e_PLUGIN.$class_name.'/e_cron.php'); - } - $class_name .= '_cron'; - $status = $this->cronExecuteMethod($class_name, $method_name) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; - $mes->add("Running ".$this->cronName($taskName, $method_name)."", $status); - - } - - function cronSavePref() - { - // Store the USERID with the password. - // This way only the one password is needed, and the user login can be looked up in e_base/cron.php - - } - - function cronSave() - { - global $pref; - - $mes = e107::getMessage(); - $activeCount = 0; - - foreach ($_POST['cron'] as $key => $val) - { - if (!$val['active']) - { - $val['active'] = 0; - } - else - { - $activeCount++; - } - - $t['minute'] = implode(",", $_POST['tab'][$key]['minute']); - $t['hour'] = implode(",", $_POST['tab'][$key]['hour']); - $t['day'] = implode(",", $_POST['tab'][$key]['day']); - $t['month'] = implode(",", $_POST['tab'][$key]['month']); - $t['weekday'] = implode(",", $_POST['tab'][$key]['weekday']); - - $val['tab'] = implode(" ", $t); - $tabs .= $val['tab']."
"; - - list($class, $func) = explode("__", $key); - - $val['function'] = $func; - $val['class'] = $class; - $val['path'] = $class; - - $cron[$key] = $val; - } - - $pref['e_cron_pref'] = $cron; - - if (!vartrue($pref['e_cron_pwd']) || varset($_POST['generate_pwd'])) - { - $pwd = $this->setCronPwd(); - - $setpwd_message = "Use the following Cron Command:
".$_SERVER['DOCUMENT_ROOT'].e_HTTP."cron.php ".$pwd."
- This cron command is unique and will not be displayed again. Please copy and paste it into your webserver cron area to be run every minute (or 15 minutes) of every day."; - $mes->add($setpwd_message, E_MESSAGE_WARNING); - } - - // print_a($pref['e_cron_pref']); - - if (save_prefs()) - { - $mes->add(LAN_SETSAVED, E_MESSAGE_SUCCESS); - $mes->add($activeCount." Cron(s) Active", E_MESSAGE_SUCCESS); - } - else - { - $mes->add("There was a problem saving your settings.", E_MESSAGE_ERROR); - } - - } - - function setCronPwd() - { - //global $pref; - - $userMethods = e107::getUserSession(); - $newpwd = $userMethods->generateRandomString('*^*#.**^*'); - $newpwd = sha1($newpwd.time()); - //$pref['e_cron_pwd'] = $newpwd; - e107::getConfig()->set('e_cron_pwd', $newpwd)->save(false); - return true; - - } - - // -------------------------------------------------------------------------- - function cronRenderPrefs() - { - //global $frm,$ns; - $frm = e107::getForm(); - $text = "
-
- - - - - - - - - - - -
Cron Password - " - .$frm->password('cron_password', '', 100)." -
"; - $text .= $frm->admin_button('save_prefs', LAN_SAVE, 'update'); - - $text .= "
-
-
"; - - e107::getRender()->tablerender(LAN_PREFS, $text); - - } - - function cronLoad() //TODO Make a generic function to work with e_cron, e_sitelink, e_url etc. - - { - $pref = e107::getPref(); - - $core_cron = $this->coreCrons; // May need to check 'available' flag here - $new_cron = e107::getAddonConfig('e_cron'); - $this->e_cron = array_merge($core_cron, $new_cron); - return; - - } - - // ----------- Grab All e_cron parameters ----------------------------------- - - function cronRenderPage() - { - $pref = e107::getPref(); - $cronpref = $pref['e_cron_pref']; - $ns = e107::getRender(); - $frm = e107::getForm(); - $mes = e107::getMessage(); - - $e_cron = $this->e_cron; - - // ---------------------- List All Functions ----------------------------- - - $text = "
-
- - - - - - - - - - - - - - - - - - - - - - - - - "; - - foreach ($e_cron as $plug => $cfg) - { - foreach ($cfg as $class => $cron) - { - if (!isset($cron['available']) || $cron['available']) // Only display cron functions which are available - - { - $c = $plug.'__'.$cron['function']; // class and function. - $sep = array(); - - list($sep['minute'], $sep['hour'], $sep['day'], $sep['month'], $sep['weekday']) = explode(" ", $cronpref[$c]['tab']); - - foreach ($sep as $key => $value) - { - if ($value == "") - { - $sep[$key] = "*"; - } - } - - $minute = explode(",", $sep['minute']); - $hour = explode(",", $sep['hour']); - $day = explode(",", $sep['day']); - $month = explode(",", $sep['month']); - $weekday = explode(",", $sep['weekday']); - - $min_options = array( - "*" => LAN_CRON_11, - "0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58" => LAN_CRON_12, - "0,5,10,15,20,25,30,35,40,45,50,55" => LAN_CRON_13, - "0,10,20,30,40,50" => LAN_CRON_14, - "0,15,30,45" => LAN_CRON_10, - "0,30" => LAN_CRON_15 - ); - - $hour_options = array( - "*" => LAN_CRON_16, - "0,2,4,6,8,10,12,14,16,18,20,22" => LAN_CRON_17, - "0,3,6,9,12,15,18,21" => LAN_CRON_18, - "0,6,12,18" => LAN_CRON_19 - ); - - $text .= " - - - - - - - - - - - "; - } - } - } - $text .= " - - - - - -
" - .LAN_CRON_1XXX."" - .LAN_CRON_2."" - .LAN_CRON_3."" - .LAN_CRON_4."" - .LAN_CRON_5XXXX."" - .LAN_CRON_6."" - .LAN_CRON_7."" - .LAN_CRON_8."Run Now
" - .$cron['name']."" - .$cron['description']." - - - - - - - - - - - "; - $checked = ($cronpref[$c]['active'] == 1) ? "checked='checked'" : ""; - $text .= " - ".$frm->admin_button('execute['.$c.']', 'Run Now')."
-
"; - // $text .= ""; - $text .= $frm->admin_button('submit', LAN_SAVE, $action = 'update'); - $text .= $frm->checkbox_switch('generate_pwd', 1, '', 'Generate new cron command'); - $text .= "
-
-
"; - - $ns->tablerender(PAGE_NAME, $mes->render().$text); - } - - function cronOptions() - { - $e107 = e107::getInstance(); - - $var['main']['text'] = PAGE_NAME; - $var['main']['link'] = e_SELF; - - // $var['pref']['text'] = LAN_PREFS; - // $var['pref']['link'] = e_SELF."?pref"; - // $var['pref']['perm'] = "N"; - - $action = ($this->cronAction) ? $this->cronAction : 'main'; - - e107::getNav()->admin(PAGE_NAME, $action, $var); - } - - function cronExecuteMethod($class_name, $method_name, $return = 'boolean') - { - $mes = e107::getMessage(); - - if (class_exists($class_name)) - { - $obj = new $class_name; - if (method_exists($obj, $method_name)) - { - $mes->add("Executing config function ".$class_name." : ".$method_name."()", E_MESSAGE_DEBUG); - if ($return == 'boolean') - { - call_user_func(array($obj, $method_name)); - return TRUE; - } - else - { - return call_user_func(array($obj, $method_name)); - } - } - else - { - $mes->add("Config function ".$method_name."() NOT found.", E_MESSAGE_DEBUG); - } - } - return FALSE; - } -} - -function cron_adminmenu() -{ - global $cron; - $cron->cronOptions(); -} - */ - diff --git a/e107_admin/db.php b/e107_admin/db.php index c1cabf781..34089cf32 100644 --- a/e107_admin/db.php +++ b/e107_admin/db.php @@ -10,7 +10,7 @@ * */ -require_once ("../class2.php"); +require_once (__DIR__."/../class2.php"); $theme = e107::getPref('sitetheme'); define("EXPORT_PATH","{e_THEME}".$theme."/install/"); diff --git a/e107_admin/docs.php b/e107_admin/docs.php index 81cef9468..f2270e6f6 100644 --- a/e107_admin/docs.php +++ b/e107_admin/docs.php @@ -10,251 +10,154 @@ * * */ -require_once("../class2.php"); -if (!ADMIN) { +require_once(__DIR__ . '/../class2.php'); +if(!ADMIN) +{ e107::redirect(); exit; } e107::coreLan('docs', true); -define('DOC_PATH', e_DOCS.e_LANGUAGE.'/'); -define('DOC_PATH_ALT', e_DOCS.'English/'); +define('DOC_PATH', e_DOCS . e_LANGUAGE . '/'); +define('DOC_PATH_ALT', e_DOCS . 'English/'); e107::css('inline', 'div.qitem { margin-top:20px } div.aitem { padding:10px 15px; } '); - class docs_admin extends e_admin_dispatcher + +class docs_admin extends e_admin_dispatcher +{ + + protected $modes = array( + + 'main' => array( + 'controller' => 'docs_ui', + 'path' => null, + 'ui' => 'docs_form_ui', + 'uipath' => null + ), + + + ); + + protected $adminMenu = array(); + + protected $adminMenuAliases = array(); + + protected $menuTitle = LAN_DOCS; + + protected static $helpList = array(); + + public static function getDocs() { - protected $modes = array( - - 'main' => array( - 'controller' => 'docs_ui', - 'path' => null, - 'ui' => 'docs_form_ui', - 'uipath' => null - ), - - - ); - - protected $adminMenu = array(); - - protected $adminMenuAliases = array(); - - protected $menuTitle = LAN_DOCS; - - protected static $helpList = array(); - - public static function getDocs() - { - return self::$helpList; - } - - - function init() - { - - $fl = e107::getFile(); - - $helplist_all = $fl->get_files(DOC_PATH_ALT); - if(!is_dir(DOC_PATH) || DOC_PATH == DOC_PATH_ALT) - { - $helplist = $helplist_all; - } - else - { - $helplist = $fl->get_files(DOC_PATH); - } - - sort($helplist); - - self::$helpList = $helplist; - - foreach($helplist as $key=>$helpdata) - { - - $id = 'doc-'.$key; - $k = 'main/'.$id; - - $this->adminMenu[$k] = array('caption'=> str_replace("_", " ", $helpdata['fname']), 'perm' => false, 'uri'=>"#".$id ); - } - - - } + return self::$helpList; } - class docs_ui extends e_admin_ui + function init() { - public function Doc0Page() + $fl = e107::getFile(); + + $helplist_all = $fl->get_files(DOC_PATH_ALT); + if(!is_dir(DOC_PATH) || DOC_PATH == DOC_PATH_ALT) { - $helplist = docs_admin::getDocs(); + $helplist = $helplist_all; + } + else + { + $helplist = $fl->get_files(DOC_PATH); + } - $text = ''; + sort($helplist); - $iconQ = e107::getParser()->toGlyph('fa-question-circle'); - $iconA = " "; + self::$helpList = $helplist; - foreach($helplist as $key=>$helpdata) + foreach($helplist as $key => $helpdata) + { + + $id = 'doc-' . $key; + $k = 'main/' . $id; + + $this->adminMenu[$k] = array('caption' => str_replace("_", " ", $helpdata['fname']), 'perm' => false, 'uri' => "#" . $id); + } + + + } +} + + +class docs_ui extends e_admin_ui +{ + + public function Doc0Page() + { + + $helplist = docs_admin::getDocs(); + + $text = ''; + + $iconQ = e107::getParser()->toGlyph('fa-question-circle'); + $iconA = " "; + + foreach($helplist as $key => $helpdata) + { + + $filename = DOC_PATH . $helpdata['fname']; + $filename_alt = DOC_PATH_ALT . vartrue($helpdata['fname']); + + if(is_readable($filename)) { + $tmp = file_get_contents($filename); + } + else + { + $tmp = file_get_contents($filename_alt); + } - $filename = DOC_PATH.$helpdata['fname']; - $filename_alt = DOC_PATH_ALT.vartrue($helpdata['fname']); + $tmp = preg_replace('/Q\>(.*?)A>/si', "###QSTART###
" . $iconQ . "\\1
###QEND###", $tmp); + $tmp = preg_replace('/###QEND###(.*?)###QSTART###/si', "
" . $iconA . "\\1
", $tmp); + $tmp = str_replace(array('###QSTART###', '###QEND###'), array('', "
" . $iconA), $tmp) . "
"; - if(is_readable($filename)) - { - $tmp = file_get_contents($filename); - } - else - { - $tmp = file_get_contents($filename_alt); - } + $id = 'doc-' . $key; - $tmp = preg_replace('/Q\>(.*?)A>/si', "###QSTART###
".$iconQ."\\1
###QEND###", $tmp); - $tmp = preg_replace('/###QEND###(.*?)###QSTART###/si', "
".$iconA."\\1
", $tmp); - $tmp = str_replace(array('###QSTART###', '###QEND###'), array('', "
".$iconA), $tmp)."
"; + $display = ($key === 0) ? "" : "style='display:none'"; - $id = 'doc-'.$key; - - $display = ($key === 0) ? "" : "style='display:none'"; - - $text .= " + $text .= "
-

".LAN_DOCS.SEP.str_replace("_", " ", $helpdata['fname'])."

+

" . LAN_DOCS . SEP . str_replace("_", " ", $helpdata['fname']) . "

{$tmp}
"; - //
".LAN_DOCS_GOTOP."
- } - - - return $text; - + //
".LAN_DOCS_GOTOP."
} - } - - - - class docs_form_ui extends e_admin_form_ui - { + return $text; } - new docs_admin(); - - require_once(e_ADMIN."auth.php"); - - $data = e107::getAdminUI()->runPage('raw'); - - echo $data[1]; // just to remove the title. - - require_once(e_ADMIN."footer.php"); - exit; +} - - - - -/* - -$e_sub_cat = 'docs'; -require_once("auth.php"); - -require_once (e_HANDLER.'file_class.php'); -$fl = new e_file(); - - -$helplist_all = $fl->get_files(DOC_PATH_ALT); -if(!is_dir(DOC_PATH) || DOC_PATH == DOC_PATH_ALT) +class docs_form_ui extends e_admin_form_ui { - $helplist = $helplist_all; -} -else -{ - $helplist = $fl->get_files(DOC_PATH); -} - -//Titles in Admin Area are requested by the community -define('e_PAGETITLE', LAN_DOCS); - -if (e_QUERY) { - $i = intval(e_QUERY) - 1; - $filename = DOC_PATH.$helplist[$i]['fname']; - $filename_alt = DOC_PATH_ALT.$helplist[$i]['fname']; - - if(is_readable($filename)) - $text = file_get_contents($filename); - else - $text = file_get_contents($filename_alt); - - $text = $tp->toHTML($text, TRUE); - $text = preg_replace('/Q\>(.*?)A>/si', "Q\\1A>", $text); - $text = str_replace("A>", "A", $text); - - $ns->tablerender(LAN_DOCS.' - '.str_replace("_", " ", $helplist[$i]['fname']), $text); - unset($text); - require_once("footer.php"); - exit; -} - - -//NEW 0.8 -// Show All - - -$text = ''; -$text_h = ''; -foreach ($helplist as $key => $helpdata) -{ - $filename = DOC_PATH.$helpdata['fname']; - $filename_alt = DOC_PATH_ALT.vartrue($$helpdata['fname']); - - if(is_readable($filename)) - $tmp = file_get_contents($filename); - else - $tmp = file_get_contents($filename_alt); - - //$tmp = $tp->toHTML(trim($tmp), TRUE); - $tmp = preg_replace('/Q\>(.*?)A>/si', "###QSTART###
".LAN_DOCS_QUESTION."\\1
###QEND###", $tmp); - $tmp = preg_replace('/###QEND###(.*?)###QSTART###/si', "
".LAN_DOCS_ANSWER."\\1
", $tmp); - $tmp = str_replace(array('###QSTART###', '###QEND###'), array('', "
".LAN_DOCS_ANSWER.""), $tmp)."
"; - - $id = 'doc-'.$key; - $text_h .= " -
".E_16_DOCS." ".str_replace("_", " ", $helpdata['fname'])."
- "; - $text .= " -
-

".str_replace("_", " ", $helpdata['fname'])."

- {$tmp} -
".LAN_DOCS_GOTOP."
-
"; } +new docs_admin(); +require_once(e_ADMIN . "auth.php"); +$data = e107::getAdminUI()->runPage('raw'); -$text_h = "

".LAN_DOCS_SECTIONS."

".$text_h."
"; -$text = $text_h.$text; +echo $data[1]; // just to remove the title. -//Allow scroll navigation for bottom sections -$text .= " -
-"; - -$ns->tablerender(LAN_DOCS, $text, 'docs'); -require_once("footer.php"); -*/ -?> \ No newline at end of file +require_once(e_ADMIN . "footer.php"); diff --git a/e107_admin/e107_update.php b/e107_admin/e107_update.php index f69916926..d2f366965 100644 --- a/e107_admin/e107_update.php +++ b/e107_admin/e107_update.php @@ -16,7 +16,7 @@ */ define("e_MINIMAL",true); define('e_ADMIN_UPDATE', true); // used in class2.php -require_once ("../class2.php"); +require_once (__DIR__."/../class2.php"); // include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE); diff --git a/e107_admin/emoticon.php b/e107_admin/emoticon.php index 6b6f6117b..07e9f8b4a 100644 --- a/e107_admin/emoticon.php +++ b/e107_admin/emoticon.php @@ -11,7 +11,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if (!getperms("F")) { e107::redirect('admin'); @@ -700,23 +700,3 @@ class emotec require_once("footer.php"); -/** - * Handle page DOM within the page header - * - * @return string JS source - */ -function headerjs() -{ - /* require_once(e_HANDLER.'js_helper.php'); - - $ret = " - - - "; - - return $ret;*/ -} - -?> \ No newline at end of file diff --git a/e107_admin/eurl.php b/e107_admin/eurl.php index a9dcab735..736bc1496 100644 --- a/e107_admin/eurl.php +++ b/e107_admin/eurl.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('K')) { e107::redirect('admin'); @@ -847,7 +847,7 @@ class eurl_admin_form_ui extends e_admin_form_ui $id = 'eurl-'.str_replace('_', '-', $obj->module).'-'.$index; - $checked = varset($obj->current[$module]) == $location ? ' checked="checked"' : ''; + $checked = (isset($obj->current[$module]) && $obj->current[$module] == $location) ? ' checked="checked"' : ''; $path = eDispatcher::getConfigPath($module, $location, false); if(!is_readable($path)) @@ -881,7 +881,7 @@ class eurl_admin_form_ui extends e_admin_form_ui $exampleUrl .= "   ‡"; //XXX Add footer - denotes more CPU required. ? } */ - $selected = varset($obj->current[$module]) == $location ? "selected='selected'" : ''; + $selected = (isset($obj->current[$module]) && ($obj->current[$module] == $location)) ? "selected='selected'" : ''; $opt .= ""; $info .= "".$label." diff --git a/e107_admin/fileinspector.php b/e107_admin/fileinspector.php index 4cc8ae52d..94df745e3 100755 --- a/e107_admin/fileinspector.php +++ b/e107_admin/fileinspector.php @@ -19,7 +19,7 @@ if(!empty($_GET['action']) && $_GET['action'] === 'progress' && !empty($_GET['sc } -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); @@ -253,7 +253,7 @@ require_once(e_ADMIN."auth.php"); e107::getAdminUI()->runPage(); require_once(e_ADMIN."footer.php"); -exit; + @@ -464,7 +464,7 @@ class file_inspector { ".LAN_SHOW." ".FC_LAN_5.": - ".$frm->select('core',$coreOpts,$_POST['core'])." + ".$frm->select('core',$coreOpts,varset($_POST['core']))." "; @@ -473,7 +473,7 @@ class file_inspector { ".FC_LAN_14.": - ".$frm->select('type', $dispOpt, $_POST['type'])." + ".$frm->select('type', $dispOpt, varset($_POST['type']))." "; @@ -483,8 +483,8 @@ class file_inspector { ".LAN_SHOW." ".FC_LAN_13.": - ".LAN_YES."   - ".LAN_NO."   + ".LAN_YES."   + ".LAN_NO."   "; @@ -493,8 +493,8 @@ class file_inspector { ".LAN_SHOW." ".FC_LAN_7.": - ".LAN_YES."   - ".LAN_NO."   + ".LAN_YES."   + ".LAN_NO."   "; @@ -503,8 +503,8 @@ class file_inspector { ".LAN_SHOW." ".FC_LAN_21.": - ".LAN_YES."   - ".LAN_NO."   + ".LAN_YES."   + ".LAN_NO."   "; diff --git a/e107_admin/filemanager.php b/e107_admin/filemanager.php index 049f29d9a..6003af493 100644 --- a/e107_admin/filemanager.php +++ b/e107_admin/filemanager.php @@ -1,8 +1,7 @@ \ No newline at end of file diff --git a/e107_admin/fla.php b/e107_admin/fla.php index 73b37fd6f..a09f3d01e 100644 --- a/e107_admin/fla.php +++ b/e107_admin/fla.php @@ -10,8 +10,5 @@ * */ - -exit; - // -- No Longer used - see banlist.php diff --git a/e107_admin/footer.php b/e107_admin/footer.php index 4be89487a..890c43a04 100644 --- a/e107_admin/footer.php +++ b/e107_admin/footer.php @@ -22,7 +22,7 @@ $In_e107_Footer = TRUE; // For registered shutdown function global $error_handler,$db_time,$ADMIN_FOOTER; // Legacy fix - call header if not already done, mainly fixing left side menus to work proper -if(!deftrue('e_ADMIN_UI') /*&& !deftrue('ADMIN_AREA')*/) +if(!deftrue('e_ADMIN_UI') ) { // close the old buffer $content = ob_get_contents(); @@ -31,6 +31,7 @@ if(!deftrue('e_ADMIN_UI') /*&& !deftrue('ADMIN_AREA')*/) ob_start(); require_once(e_ADMIN.'header.php'); echo $content; + } // @@ -394,14 +395,17 @@ if($tmp1) // New - see class2.php $ehd = new e_http_header; + if($tmp) { + $ehd->setContent('buffer',$tmp['search'],$tmp['replace']); } else { $ehd->setContent('buffer'); } + unset($tmp1, $tmp1); $ehd->send(); $page = $ehd->getOutput(); @@ -414,7 +418,10 @@ unset($In_e107_Footer); // Clean session shutdown -e107::getSession()->shutdown(); -// Shutdown -$e107->destruct(); -$e107_Clean_Exit = TRUE; // For registered shutdown function -- let it know all is well! \ No newline at end of file +if(!e107::isCli()) +{ + e107::getSession()->shutdown(); + // Shutdown + $e107->destruct(); + $e107_Clean_Exit = TRUE; // For registered shutdown function -- let it know all is well! +} \ No newline at end of file diff --git a/e107_admin/frontpage.php b/e107_admin/frontpage.php index 75d12b515..a0f719bb3 100644 --- a/e107_admin/frontpage.php +++ b/e107_admin/frontpage.php @@ -14,7 +14,7 @@ if(!empty($_POST) && !isset($_POST['e-token'])) { $_POST['e-token'] = ''; } -require_once ('../class2.php'); +require_once (__DIR__.'/../class2.php'); if(!getperms('G')) { @@ -151,7 +151,7 @@ if (!empty($_POST)) { // avoid endless loop. - if($_POST['frontpage'] == 'other' && (trim($_POST['frontpage_other']) == 'index.php' || trim($_POST['frontpage_other']) == '{e_BASE}index.php')) + if(varset($_POST['frontpage']) == 'other' && (trim($_POST['frontpage_other']) == 'index.php' || trim($_POST['frontpage_other']) == '{e_BASE}index.php')) { $_POST['frontpage'] = 'wmessage'; $_POST['frontpage_other'] = ''; @@ -383,7 +383,7 @@ class frontpage $show_legend = $show_button ? " class='e-hideme'" : ''; $text = "
- +
".FRTLAN_13." @@ -406,29 +406,33 @@ class frontpage "; - foreach($fp_settings as $order => $current_value) + if(!empty($fp_settings)) { - $title = e107::getUserClass()->getName($current_value['class']); - $text .= " - - ".$order." - ".$title." - ".$this->lookup_path($current_value['page'])." - ".$this->lookup_path($current_value['force'])." - -
"; - // ".$frm->admin_button('fp_inc',$order,'up',ADMIN_UP_ICON)." - // ".$frm->admin_button('fp_dec',$order,'down',ADMIN_DOWN_ICON)." + foreach($fp_settings as $order => $current_value) + { + $title = e107::getUserClass()->getName($current_value['class']); + $text .= " + + ".$order." + ".$title." + ".$this->lookup_path($current_value['page'])." + ".$this->lookup_path($current_value['force'])." + +
"; - $text .= " - ".ADMIN_EDIT_ICON." - ".$frm->admin_button('fp_delete_rule['.$order.']',$order,'',ADMIN_DELETE_ICON)." -
- - "; - - + // ".$frm->admin_button('fp_inc',$order,'up',ADMIN_UP_ICON)." + // ".$frm->admin_button('fp_dec',$order,'down',ADMIN_DOWN_ICON)." + + $text .= " + ".ADMIN_EDIT_ICON." + ".$frm->admin_button('fp_delete_rule['.$order.']',$order,'',ADMIN_DELETE_ICON)." +
+ + "; + + + } } $text .= " diff --git a/e107_admin/header.php b/e107_admin/header.php index dadbbe324..9ee136db6 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -28,16 +28,17 @@ if(!defined('USER_AREA')) e107::getDebug()->logTime('(Header Top)'); - if(!deftrue('e_MENUMANAGER_ACTIVE')) { if (defined('THEME') && file_exists(THEME.'admin_template.php')) // Admin template { require_once (THEME.'admin_template.php'); + } else { + require_once (e_CORE.'templates/admin_template.php'); } @@ -450,9 +451,16 @@ echo "\n\n"; // I: Calculate JS onload() functions for the BODY tag [user mode only] // // XXX DEPRECATED $body_onload and related functionality -if (defined('THEME_ONLOAD')) $js_body_onload[] = THEME_ONLOAD; -$body_onload=''; -if (count($js_body_onload)) $body_onload = " onload=\"".implode(" ",$js_body_onload)."\""; +if(defined('THEME_ONLOAD')) +{ + $js_body_onload[] = THEME_ONLOAD; +} + +$body_onload = ''; +if(!empty($js_body_onload)) +{ + $body_onload = " onload=\"" . implode(" ", $js_body_onload) . "\""; +} if(deftrue('e_MENUMANAGER_ACTIVE')) diff --git a/e107_admin/image.php b/e107_admin/image.php index e82bd5cf5..6e25532ca 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -18,7 +18,7 @@ if(!empty($_GET['action']) && $_GET['action'] === 'dialog') if (!defined('e107_INIT')) { - require_once('../class2.php'); + require_once(__DIR__.'/../class2.php'); } if (!getperms('A') && ($_GET['action'] !== 'dialog') && ($_GET['action'] !== 'youtube')) diff --git a/e107_admin/lancheck.php b/e107_admin/lancheck.php index 8144eef0c..bf59b608f 100644 --- a/e107_admin/lancheck.php +++ b/e107_admin/lancheck.php @@ -12,7 +12,7 @@ */ if (!defined('e107_INIT')) { - require_once("../class2.php"); + require_once(__DIR__.'/../class2.php'); } e107::coreLan('lancheck', true); diff --git a/e107_admin/language.php b/e107_admin/language.php index 7fbbb5ea8..84d906a6b 100644 --- a/e107_admin/language.php +++ b/e107_admin/language.php @@ -9,7 +9,7 @@ * Administration Area - Languages */ -require_once ("../class2.php"); +require_once (__DIR__."/../class2.php"); if (!getperms('L')) { e107::redirect('admin'); @@ -636,7 +636,7 @@ if(!empty($_GET['iframe'])) $text .= " - +
". @@ -859,366 +859,10 @@ if(!empty($_GET['iframe'])) e107::getAdminUI()->runPage(); require_once(e_ADMIN."footer.php"); - exit; - - - - - - - - - - -/* - - - - - - - - - - - -require_once ("auth.php"); - - -$frm = e107::getForm(); -$mes = e107::getMessage(); - -e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_lancheck.php"); -require_once(e_ADMIN."lancheck.php"); -require_once(e_HANDLER."language_class.php"); - -// $ln = new language; -$ln = $lng; - -$lck = e107::getSingleton('lancheck', e_ADMIN."lancheck.php"); - -$tabs = table_list(); // array("news","content","links"); -$lanlist = e107::getLanguage()->installed();// Bugfix - don't use e_LANLIST as it's cached (SESSION) -$message = ''; - -if (e_QUERY) -{ - $tmp = explode('.', e_QUERY); - $action = varset($tmp[0]); - $sub_action = varset($tmp[1]); - $id = varset($tmp[2]); - unset($tmp); -} -elseif(!getperms('0')) -{ - $action = 'tools'; -} - - - - -if (isset($_POST['submit_prefs']) && isset($_POST['mainsitelanguage']) && getperms('0')) -{ - unset($temp); - $changes = array(); - $temp['multilanguage'] = $_POST['multilanguage']; - $temp['multilanguage_subdomain'] = $_POST['multilanguage_subdomain']; - $temp['multilanguage_domain'] = $_POST['multilanguage_domain']; - $temp['sitelanguage'] = $_POST['mainsitelanguage']; - $temp['adminlanguage'] = $_POST['mainadminlanguage']; - $temp['noLanguageSubs'] = $_POST['noLanguageSubs']; - - e107::getConfig()->setPref($temp)->save(true); - - e107::getSession()->clear('e_language'); - -} -// ----------------- delete tables --------------------------------------------- -if (isset($_POST['del_existing']) && $_POST['lang_choices'] && getperms('0')) -{ - $lang = strtolower($_POST['lang_choices']); - - foreach ($tabs as $del_table) - { - if ($sql->isTable($del_table, $lang)) - { - // echo $del_table." exists
"; - $qry = "DROP TABLE ".$mySQLprefix."lan_".$lang."_".$del_table; - if (mysql_query($qry)) - { - $msg = $tp->lanVars(LANG_LAN_100, $_POST['lang_choices'].' '.$del_table); - $message .= $msg.'[!br!]'; - $mes->addSuccess($msg); - } - else - { - $msg = $tp->lanVars(LANG_LAN_101, $_POST['lang_choices'].' '.$del_table); - $message .= $msg.'[!br!]'; - $mes->addWarning($msg); - } - } - } - - e107::getLog()->add('LANG_02', $message.'[!br!]', E_LOG_INFORMATIVE, ''); - $sql->db_ResetTableList(); - - -} -// ----------create tables ----------------------------------------------------- -if (isset($_POST['create_tables']) && $_POST['language']) -{ - $table_to_copy = array(); - $lang_to_create = array(); - foreach ($tabs as $value) - { - $lang = strtolower($_POST['language']); - if (isset($_POST[$value])) - { - $copdata = ($_POST['copydata_'.$value]) ? 1 : 0; - if ($sql->db_CopyTable($value, "lan_".$lang."_".$value, $_POST['drop'], $copdata)) - { - $msg = $tp->lanVars(LANG_LAN_103, $_POST['language'].' '.$value); - $message .= $msg . '[!br!]'; // Used in admin log. - $mes->addSuccess($msg); - } - else - { - if (!$_POST['drop']) - { - $msg = $tp->lanVars(LANG_LAN_00, $_POST['language'].' '.$value); - $message .= $msg . '[!br!]'; - $mes->addWarning($msg); - } - else - { - $msg = $tp->lanVars(LANG_LAN_01, $_POST['language'].' '.$value); - $message .= $msg . '[!br!]'; - $mes->addWarning($msg); - } - } - } - elseif ($sql->isTable($value,$_POST['language'])) - { - if ($_POST['remove']) - { - // Remove table. - if (mysql_query("DROP TABLE ".$mySQLprefix."lan_".$lang."_".$value)) - { - $message .= $_POST['language'].' '.$value.' '.LAN_DELETED.'[!br!]'; // can be removed? - $mes->addSuccess($_POST['language'].' '.$value.' '.LAN_DELETED); - } - else - { - $msg = $tp->lanVars(LANG_LAN_02, $_POST['language'].' '.$value); - $message .= $msg . '[!br!]'; - $mes->addWarning($msg); - } - } - else - { - // leave table. LANG_LAN_104 - - $msg = $tp->lanVars(LANG_LAN_104, $_POST['language'].' '.$value); - $message .= $msg . '[!br!]'; - $mes->addInfo($msg); - } - } - } - e107::getLog()->add('LANG_03', $message, E_LOG_INFORMATIVE, ''); - $sql->db_ResetTableList(); -} - - if(isset($message) && $message) - { - $ns->tablerender(LAN_OK, $message); - } - - - - - - - - - - - - - - - - - -$debug = "
f=".$_GET['f']; -$debug .= "
mode=".$_GET['mode']; -$debug .= "
lan=".$_GET['lan']; -// $ns->tablerender("Debug",$debug); - - $rendered = $lck->init(); // Lancheck functions. - - - - - - - - - - - - -new lanDeveloper; - - - - - - - -require_once (e_ADMIN."footer.php"); -// --------------------------------------------------------------------------- - - -function multilang_prefs() -{ - if(!getperms('0')) - { - return; - } - - global $lanlist; - $pref = e107::getPref(); - $mes = e107::getMessage(); - $frm = e107::getForm(); - - //XXX Remove later. - // Enable only for developers - SetEnv E_ENVIRONMENT develop -// if(!isset($_SERVER['E_DEV_LANGUAGE']) || $_SERVER['E_DEV_LANGUAGE'] !== 'true') -// { - // $lanlist = array('English'); - // $mes->addInfo("Alpha version currently supports only the English language. After most features are stable and English terms are optimized - translation will be possible."); -// } - - $text = " - -
- ".LANG_LAN_13." - - - - - - - - - - "; - - - // if(isset($_SERVER['E_DEV_LANGUAGE']) && $_SERVER['E_DEV_LANGUAGE'] === 'true') - { - - $text .= " - - - - "; - - } - - - - $text .= " - - - - - - - - - - - - - "; - - - $opt = ""; - $langs = explode(",",e_LANLIST); - foreach($langs as $val) - { - if($val != $pref['sitelanguage']) - { - $opt .= ""; - } - } - - if($opt) - { - //TODO class2.php check. - $text .= " - - - - "; - } - - $text .= " - -
".LANG_LAN_14.": "; - - $sellan = preg_replace("/lan_*.php/i", "", $pref['sitelanguage']); - - $text .= $frm->select('mainsitelanguage',$lanlist,$sellan,"useValues=1"); - $text .= " -
".LANG_LAN_50.": "; - - $sellan = preg_replace("/lan_*.php/i", "", $pref['adminlanguage']); - - $text .= $frm->select('mainadminlanguage',$lanlist,$sellan,array("useValues"=>1,"default" => LANG_LAN_14)); - $text .= " -
".LANG_LAN_12.": -
"; - $checked = ($pref['multilanguage'] == 1) ? " checked='checked'" : ""; - $text .= " - -
-
".LANG_LAN_26.": -
\n"; - $checked = ($pref['noLanguageSubs'] == 1) ? " checked='checked'" : ""; - $text .= " - -
".LANG_LAN_27."
-
-
- ".LANG_LAN_18." - ".LANG_LAN_19." - - -
".LANG_LAN_20."
-
".$val."
- ".LANG_LAN_106." -
".LANG_LAN_107."
-
".$opt."
-
". - $frm->admin_button('submit_prefs','no-value','update',LAN_SAVE)." -
-
- \n"; - - e107::getRender()->tablerender(ADLAN_132.SEP.LAN_PREFS, $mes->render().$text); // "Language Preferences"; -} - - -*/ - - - class lanDeveloper { diff --git a/e107_admin/links.php b/e107_admin/links.php index 34b0f8a19..727b50704 100644 --- a/e107_admin/links.php +++ b/e107_admin/links.php @@ -10,7 +10,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if (!getperms("I")) { @@ -944,7 +944,7 @@ echo "

Preview (To-Do)

"; echo $tp->parseTemplate("{SITELINKS_ALT}"); */ require_once(e_ADMIN."footer.php"); -exit; + diff --git a/e107_admin/mailout.php b/e107_admin/mailout.php index db68e5725..c6cd087d4 100644 --- a/e107_admin/mailout.php +++ b/e107_admin/mailout.php @@ -65,7 +65,7 @@ use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\POP3; use PHPMailer\PHPMailer\Exception; -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); @@ -702,7 +702,7 @@ class mailout_main_ui extends e_admin_ui return; } - $id = intval($_POST['email_id']); + $id = (int) varset($_POST['email_id']); if(vartrue($_POST['email_send'])) { @@ -2727,38 +2727,40 @@ function mailout_adminmenu() */ - -function headerjs() +if(!function_exists('headerjs')) { - - $text = " - "; - if(type =='mail') - { - document.getElementById('mail_bounce_auto').style.display = 'none'; - document.getElementById('mail_bounce_mail').style.display = ''; - return; - } + $mailAdmin = e107::getRegistry('_mailout_admin'); + // $text .= $mailAdmin->_cal->load_files(); - document.getElementById('mail_bounce_auto').style.display = 'none'; - document.getElementById('mail_bounce_mail').style.display = 'none'; + return $text; } - "; - - $mailAdmin = e107::getRegistry('_mailout_admin'); -// $text .= $mailAdmin->_cal->load_files(); - - return $text; } -?> + diff --git a/e107_admin/menus.php b/e107_admin/menus.php index 196ee8114..288cba00c 100644 --- a/e107_admin/menus.php +++ b/e107_admin/menus.php @@ -36,14 +36,17 @@ if(isset($_GET['configure'])) } else { - define('e_ADMIN_AREA', true); - define("USER_AREA", false); - define('ADMIN_AREA', true); + if(!defined('e_ADMIN_AREA')) + { + define('e_ADMIN_AREA', true); + define("USER_AREA", false); + define('ADMIN_AREA', true); + } define('e_MENUMANAGER_ACTIVE', false); } -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if(e_MENUMANAGER_ACTIVE === false ) @@ -639,7 +642,8 @@ if($_SERVER['E_DEV_MENU'] == 'true') //{ - +if(!function_exists('e_help')) +{ function e_help() { if(deftrue("e_DEBUG_MENUMANAGER")) @@ -651,6 +655,7 @@ if($_SERVER['E_DEV_MENU'] == 'true') return e_menu_layout::menuSelector(); } +} //} diff --git a/e107_admin/message.php b/e107_admin/message.php index cbb877aa1..f7712f1df 100644 --- a/e107_admin/message.php +++ b/e107_admin/message.php @@ -10,7 +10,7 @@ // FILE IS DEPRECATED - UP FOR REMOVAL IN THE FUTURE -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); e107::coreLan('message', true); diff --git a/e107_admin/meta.php b/e107_admin/meta.php index 12b056c57..11551b218 100644 --- a/e107_admin/meta.php +++ b/e107_admin/meta.php @@ -14,7 +14,7 @@ if(!empty($_POST) && !isset($_POST['e-token'])) { $_POST['e-token'] = ''; } -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if (!getperms("T")) { @@ -133,7 +133,7 @@ $text = "
". $frm->admin_button('metasubmit','no-value','update', LAN_UPDATE)."
- +
"; diff --git a/e107_admin/modcomment.php b/e107_admin/modcomment.php index 277cd96b0..c8dd81141 100644 --- a/e107_admin/modcomment.php +++ b/e107_admin/modcomment.php @@ -8,7 +8,7 @@ * Exists only for BC. */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if (!getperms("B")) { @@ -19,11 +19,11 @@ if (!getperms("B")) $tmp = explode(".", e_QUERY); $table = $tmp[0]; -$id = intval($tmp[1]); -$editid = intval($tmp[2]); +$id = (int) varset($tmp[1]); +$editid = (int) varset($tmp[2]); $url = e_ADMIN_ABS."comment.php?searchquery=".$id."&filter_options=comment_type__".e107::getComment()->getCommentType($table); e107::getRedirect()->go($url); -exit; + diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index 8d323a308..2087e0a02 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('H|N|H0|H1|H2|H3|H4|H5')) { @@ -1623,4 +1623,4 @@ if(!e_AJAX_REQUEST) require_once("footer.php"); } -exit; + diff --git a/e107_admin/notify.php b/e107_admin/notify.php index d6eaab5e3..6642218e8 100644 --- a/e107_admin/notify.php +++ b/e107_admin/notify.php @@ -8,7 +8,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('O')) { @@ -119,7 +119,7 @@ class plugin_notify_admin_ui extends e_admin_ui $recalibrate = FALSE; // load every e_notify.php file. - if($pref['e_notify_list']) + if(!empty($pref['e_notify_list'])) { foreach($pref['e_notify_list'] as $val) // List of available e_notify.php files. { @@ -464,579 +464,29 @@ e107::getAdminUI()->runPage(); require_once(e_ADMIN."footer.php"); -function headerjs() +// todo use e107::js('inline') +if(!function_exists('headerjs')) { - - $js = " - "; - - return $js; -} - -exit; - - - - - - - - - - - - - - - - - - - - - - - - - -$e_sub_cat = 'notify'; - -require_once('auth.php'); -require_once(e_HANDLER.'userclass_class.php'); - -$frm = e107::getForm(); - -$nc = new notify_config; - -$uc = new user_class; -$mes = e107::getMessage(); - -if(!empty($_GET['iframe'])) -{ - define('e_IFRAME', true); -} - - - -if (isset($_POST['update'])) -{ - if(!$nc -> update()) - { - $mes->addError(LAN_UPDATED_FAILED); - } - - //$emessage->add($message, $style); - - // $ns -> tablerender($message,"
".$message."
"); -} - -$nc -> config(); - - -class notify_config -{ - var $notify_prefs; - var $changeList = array(); - var $pluginConfig = array(); - - function __construct() - { - $pref = e107::getPref(); - $this->notify_prefs = e107::getConfig('notify')->getPref(); - - $this->prefCleanup(); - $this->test(); - - $recalibrate = FALSE; - - // load every e_notify.php file. - if($pref['e_notify_list']) - { - foreach($pref['e_notify_list'] as $val) // List of available e_notify.php files. + if(val == 'email') { - // if (!isset($this->notify_prefs['plugins'][$val])) - { - - $this -> notify_prefs['plugins'][$val] = TRUE; - - if (is_readable(e_PLUGIN.$val."/e_notify.php")) - { - require_once(e_PLUGIN.$val.'/e_notify.php'); - - if(class_exists($val."_notify")) // new v2.x - { - $legacy = 0; // Newe. - $config_events = array(); - - $data = e107::callMethod($val."_notify", 'config'); - - $config_category = str_replace("_menu","",ucfirst($val))." ".LAN_NOTIFY_01; - - foreach($data as $v) - { - $func = $v['function']; - $config_events[$func] = $v['name']; - } - - } - else - { - $legacy = 1; // Legacy Mode. - } - - // foreach ($config_events as $event_id => $event_text) - // { - // $this -> notify_prefs['event'][$event_id] = array('class' => '255', 'email' => '', 'plugin'=> $val); - - // } - $this->pluginConfig[$val] = array('category' => $config_category, 'events' => $config_events, 'legacy'=> $legacy); - $recalibrate = true; - } - } + document.getElementById(id).style.display =''; } - } - - // print_a($this->pluginConfig); - - //if ($recalibrate) - //{ - // $s_prefs = $tp -> toDB($this -> notify_prefs); - // $s_prefs = $eArrayStorage -> WriteArray($s_prefs); - // $sql -> db_Update("core", "e107_value='".$s_prefs."' WHERE e107_name='notify_prefs'"); - //} - } - - function prefCleanup() - { - $oldPrefs = e107::getEvent()->oldCoreList(); - $curData = $this->notify_prefs['event']; - - foreach($curData as $k=>$v) - { - if(isset($oldPrefs[$k])) + else { - $newKey = $oldPrefs[$k]; - $this->notify_prefs['event'][$newKey] = $v; - unset($this->notify_prefs['event'][$k]); - } - - } - - } - - - function test() - { - if(!empty($_POST['test'])) - { - $id = key( $_POST['test']); - $exampleData = array('id'=>'Test for '.$id, 'data'=>'example data' ); - e107::getMessage()->addSuccess('Triggering: '.$id); - e107::getEvent()->trigger($id, $exampleData); - } - - - } - - - - function config() - { - //global $ns, $rs, $frm, $emessage; - $ns = e107::getRender(); - $frm = e107::getForm(); - $mes = e107::getMessage(); - - - $events = e107::getEvent()->coreList(); - $tab = array(); - - foreach($events as $k=>$cat) - { - $text = " - - - - "; - - foreach($cat as $c=>$ev) - { - $text .= $this -> render_event($c, $ev); - } - $text .= "
"; - - $caption = str_replace("_menu","",ucfirst($k))." ".LAN_NOTIFY_01; - - $tab[] = array('caption'=>$caption, 'text' => $text); - } - - if(!empty($this->notify_prefs['plugins'])) - { - - foreach ($this->notify_prefs['plugins'] as $plugin_id => $plugin_settings) - { - if(is_readable(e_PLUGIN.$plugin_id.'/e_notify.php')) - { - $config_category = $this->pluginConfig[$plugin_id]['category']; - $legacy = $this->pluginConfig[$plugin_id]['legacy']; - - $text = " - - - - "; - ; - - foreach ($this->pluginConfig[$plugin_id]['events'] as $event_id => $event_text) - { - $text .= $this->render_event($event_id, $event_text, $plugin_id, $legacy); - } - - $text .= "
\n"; - - $tab[] = array('caption'=> $config_category, 'text'=> $text); - } + document.getElementById(id).style.display ='none'; } } - - - $text2 = $frm->open('scanform', 'post', e_REQUEST_URL); //
- $text2 .= $frm->tabs($tab); - $text2 .= "
". $frm->admin_button('update', LAN_UPDATE,'update') . "
"; - $text2 .= $frm->close(); - + "; - $ns -> tablerender(NT_LAN_1, $mes->render() . $text2); - - - return; - - -//
".NT_LAN_2.":
- /* - $text = " - - - -
-
-
- ".NU_LAN_1." - - - - - - "; - - $text .= $this -> render_event('usersup', NU_LAN_2); - $text .= $this -> render_event('userveri', NU_LAN_3); - $text .= $this -> render_event('login', NU_LAN_4); - $text .= $this -> render_event('logout', NU_LAN_5); - $text .= $this -> render_event('user_xup_', NU_LAN_5); - - $text .= "
-
- ".NS_LAN_1." - - - - - "; - - $text .= $this -> render_event('flood', NS_LAN_2); - - - $text .= "
-
- - -
-
- ".NN_LAN_1." - - - - - "; - - $text .= $this -> render_event('subnews', NN_LAN_2); - $text .= $this -> render_event('newspost', NN_LAN_3); - $text .= $this -> render_event('newsupd', NN_LAN_4); - $text .= $this -> render_event('newsdel', NN_LAN_5); - - $text .= "
-
- - -
-
- ".NM_LAN_1." - - - - - "; - - $text .= $this -> render_event('maildone', NM_LAN_2); - - - $text .= "
-
- - -
-
- ".NF_LAN_1." - - - - - "; - - $text .= $this -> render_event('fileupload', NF_LAN_2); - - $text .= "
-
-
"; - - if(!empty($this->notify_prefs['plugins'])) - { - - foreach ($this->notify_prefs['plugins'] as $plugin_id => $plugin_settings) - { - if(is_readable(e_PLUGIN.$plugin_id.'/e_notify.php')) - { - $config_category = $this->pluginConfig[$plugin_id]['category']; - $legacy = $this->pluginConfig[$plugin_id]['legacy']; - - // require(e_PLUGIN.$plugin_id.'/e_notify.php'); - - $text .= "
-
- ".$config_category." - - - - - "; - ; - - foreach ($this->pluginConfig[$plugin_id]['events'] as $event_id => $event_text) - { - $text .= $this->render_event($event_id, $event_text, $plugin_id, $legacy); - } - - $text .= "
-
"; - } - } - } - - $text .= " - -
"; - $text .= $frm->admin_button('update', LAN_UPDATE,'update'); - $text .= " -
- - - "; - - $ns -> tablerender(NT_LAN_1, $mes->render() . $text); - */ - - } - - - function render_event($id, $description, $include='', $legacy = 0) - { - $tp = e107::getParser(); - $frm = e107::getForm(); - $uc = e107::getUserClass(); - $uc->fixed_classes['email'] = NM_LAN_3; - $uc->text_class_link['email'] = 'email'; - - - if(defined($description)) - { - $description = constant($description); - } - - - - $highlight = varset($_GET['type']) == $id ? " class='text-warning'" : ''; - - $text = " - - ".$description.":"; - - - - if(e_DEBUG) - { - $text .= "".$id.""; - } - - $text .= " - - ".$uc->uc_dropdown('event['.$id.'][class]', varset($this->notify_prefs['event'][$id]['class'], e_UC_NOBODY), "nobody,main,admin,member,classes,email","onchange=\"mail_field(this.value,'event_".$id."');\" "); - - if($this -> notify_prefs['event'][$id]['class'] == 'email') - { - $disp='display:visible'; - $value = $tp -> toForm($this -> notify_prefs['event'][$id]['email']); - } - else - { - $disp = "display:none"; - $value= ""; - } - - $text .= "\n"; - - $text .= $frm->hidden("event[".$id."][include]", $include); - $text .= $frm->hidden("event[".$id."][legacy]", $legacy); // function or method - - if(isset($this->notify_prefs['event'][$id]['class']) && $this->notify_prefs['event'][$id]['class'] != e_UC_NOBODY) - { - $text .= $frm->button('test['.$id.']', $id, 'confirm', LAN_TEST); - } - - - $text .= ""; - - - - - $text .= " - "; - return $text; - } - - - function update() - { - $this->changeList = array(); - - $active = false; - - foreach ($_POST['event'] as $key => $value) - { - if ($this -> update_event($key)) - { - $active = true; - } - } - - // print_a($this->notify_prefs); - /* - $s_prefs = $tp -> toDB($this -> notify_prefs); - $s_prefs = $eArrayStorage -> WriteArray($s_prefs); - if($sql -> db_Update("core", "e107_value='".$s_prefs."' WHERE e107_name='notify_prefs'")!==FALSE) - */ - - e107::getConfig()->set('notify',$active)->save(true,true,false); - e107::getConfig('notify')->updatePref($this->notify_prefs); - if (e107::getConfig('notify')->save(FALSE)) - { - // e107::getAdminLog()->logArrayAll('NOTIFY_01',$this->changeList); - return true; - } - else - { - return false; - } - - } - - function update_event($id) - { - $changed = FALSE; - - if ($this -> notify_prefs['event'][$id]['class'] != $_POST['event'][$id]['class']) - { - $this -> notify_prefs['event'][$id]['class'] = $_POST['event'][$id]['class']; - $changed = TRUE; - } - if ($this -> notify_prefs['event'][$id]['email'] != $_POST['event'][$id]['email']) - { - $this -> notify_prefs['event'][$id]['email'] = $_POST['event'][$id]['email']; - $changed = TRUE; - } - - $this -> notify_prefs['event'][$id]['include'] = $_POST['event'][$id]['include']; - $this -> notify_prefs['event'][$id]['legacy'] = $_POST['event'][$id]['legacy']; - - unset($this -> notify_prefs['event'][$id]['plugin']); - unset($this -> notify_prefs['event'][$id]['type']); - - if ($changed) - { - $this->changeList[$id] = $this->notify_prefs['event'][$id]['class'].', '.$this->notify_prefs['event'][$id]['email']; - } - if ($this -> notify_prefs['event'][$id]['class'] != 255) - { - return TRUE; - } - else - { - return FALSE; - } + return $js; } } - -require_once(e_ADMIN.'footer.php');/* -function headerjs() -{ - - $js = " - "; - - return $js; -}*/ -?> diff --git a/e107_admin/phpinfo.php b/e107_admin/phpinfo.php index 4edc471d7..956fdcdeb 100644 --- a/e107_admin/phpinfo.php +++ b/e107_admin/phpinfo.php @@ -8,7 +8,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if(!getperms("0")) { diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index a5d4705e0..dda494667 100755 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -10,7 +10,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if(!getperms("Z")) { @@ -2085,6 +2085,10 @@ class pluginLanguage extends e_admin_ui } +new plugman_adminArea(); +require_once(e_ADMIN."auth.php"); +e107::getAdminUI()->runPage(); +require_once(e_ADMIN."footer.php"); @@ -2098,26 +2102,6 @@ class pluginLanguage extends e_admin_ui -//if(deftrue('e_DEBUG_PLUGMANAGER')) -{ - new plugman_adminArea(); - require_once(e_ADMIN."auth.php"); - e107::getAdminUI()->runPage(); - require_once(e_ADMIN."footer.php"); - exit; - -} - - - - - - - - - - - @@ -2243,1288 +2227,8 @@ $mes = e107::getMessage(); $frm = e107::getForm();*/ require_once("footer.php"); -exit; -// FIXME switch to admin UI -/* -class pluginManager{ - - var $plugArray; - var $action; - var $id; - var $frm; - var $fieldpref; - var $titlearray = array(); - var $pagetitle; - - - var $mp; - - protected $pid = 'plugin_id'; - - protected $fields = array( - - "checkboxes" => array("title" => "", 'type'=>null, "forced"=>TRUE, "width"=>"3%", 'thclass'=>'center','class'=>'center'), - "plugin_icon" => array("title" => EPL_ADLAN_82, "type"=>"icon", "width" => "5%", "thclass" => "middle center",'class'=>'center', "url" => ""), - "plugin_name" => array("title" => EPL_ADLAN_10, 'forced'=>true, "type"=>"text", "width" => "auto", 'class'=>'left', "thclass" => "middle", "url" => ""), - "plugin_version" => array("title" => EPL_ADLAN_11, "type"=>"numeric", "width" => "5%", "thclass" => "middle", "url" => ""), - "plugin_date" => array("title" => LAN_RELEASED, "type"=>"text", "width" => "8%", "thclass" => "middle"), - - "plugin_folder" => array("title" => EPL_ADLAN_64, "type"=>"text", "width" => "10%", "thclass" => "middle"), - "plugin_category" => array("title" => LAN_CATEGORY, "type"=>"text", "width" => "auto", "thclass" => "middle"), - "plugin_author" => array("title" => LAN_AUTHOR, "type"=>"text", "width" => "10%", "thclass" => "middle"), - "plugin_license" => array("title" => "License", 'nolist'=>true, "forced"=>true, "type"=>"text", "width" => "5%", "thclass" => "left"), - // "plugin_price" => array("title" => "Price", 'nolist'=>true, "forced"=>true, "type"=>"text", "width" => "5%", "thclass" => "left"), - "plugin_compatible" => array("title" => EPL_ADLAN_13, "type"=>"text", "width" => "5%", "thclass" => "middle"), - "plugin_description" => array("title" => EPL_ADLAN_14, "type"=>"bbarea", "width" => "30%", "thclass" => "middle center", 'readParms' => 'expand=1&truncate=180&bb=1'), - "plugin_compliant" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""), - // "plugin_release" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""), - // "plugin_notes" => array("title" => EPL_ADLAN_83, "type"=>"url", "width" => "5%", "thclass" => "middle center", "url" => ""), - - "options" => array("title" => LAN_OPTIONS, 'forced'=>TRUE, 'type'=> 'method', "width" => "15%", "thclass" => "right last", 'class'=>'right'), - - ); - - - - function __construct() - { - global $user_pref,$admin_log; - - $qry = str_replace('XDEBUG_PROFILE', '', e_QUERY); - - $tmp = explode('.',$qry); - - $this -> action = ($tmp[0]) ? $tmp[0] : "installed"; - $this -> id = !empty($tmp[1]) ? intval($tmp[1]) : ""; - $this -> titlearray = array('installed'=>EPL_ADLAN_22,'avail'=>EPL_ADLAN_23, 'upload'=>EPL_ADLAN_38); - - if(isset($_GET['mode'])) - { - $this->action = $_GET['mode']; - } - - if($this->action == 'online') - { - // $this->fields["plugin_price"]['nolist'] = false; // = array("title" => "Price", "forced"=>true, "type"=>"text", "width" => "5%", "thclass" => "middle center"); - $this->fields["plugin_license"]['nolist'] = false; - } - - $keys = array_keys($this -> titlearray); - $this->pagetitle = (in_array($this->action,$keys)) ? $this -> titlearray[$this->action] : $this -> titlearray['installed']; - - - - } - - - public function getMarketplace() - { - if(null === $this->mp) - { - require_once(e_HANDLER.'e_marketplace.php'); - $this->mp = new e_marketplace(); // autodetect the best method - } - return $this->mp; - } - - - - function pluginObserver() - { - $tp = e107::getParser(); - - global $user_pref,$admin_log; - - if (isset($_POST['upload'])) - { - $this -> pluginProcessUpload(); - $this->action = 'avail'; - } - - if(isset($_POST['etrigger_ecolumns'])) - { - $user_pref['admin_pluginmanager_columns'] = $tp->filter($_POST['e-columns']); - save_prefs('user'); - } - - $user_pref['admin_pluginmanager_columns'] = false; - - $this -> fieldpref = (vartrue($user_pref['admin_pluginmanager_columns'])) ? $user_pref['admin_pluginmanager_columns'] : array("plugin_icon","plugin_name","plugin_version","plugin_date","plugin_description","plugin_category","plugin_compatible","plugin_author","plugin_website","plugin_notes"); - - - foreach($this->fields as $key=>$val) - { - if(vartrue($val['forced']) && substr($key,0,6)=='plugin') - { - $this->fieldpref[] = $key; - } - } - - if($this->action == 'download') - { - $this->pluginDownload(); - return; - - } - - - if($this->action == 'pull' && !empty($this->id)) - { - $info = e107::getPlugin()->getinfo($this->id); - - if(!empty($info['plugin_path'])) - { - $return = e107::getFile()->gitPull($info['plugin_path'], 'plugin'); - e107::getMessage()->addSuccess($return); - $this->action = 'refresh'; - } - else - { - $this->action = 'avail'; - } - - } - - - - if($this->action == 'avail' || $this->action == 'installed') // Plugin Check is done during upgrade_routine. - { - $this -> pluginCheck(); - } - - if($this->action == "uninstall") - { - $this -> pluginUninstall(); - $this -> pluginCheck(true); // forced - } - - - - if($this->action == "repair") - { - $this -> pluginRepair(); - $this->action = 'refresh'; - } - - - - if($this->action == "refresh") - { - $this -> pluginCheck(true); // forced - } - - if($this->action == "install" || $this->action == "refresh") - { - $this -> pluginInstall(); - $this -> action = "installed"; - } - - if($this->action == 'create') - { - $pc = new pluginBuilder; - return; - - } - - if($this->action == 'lans') - { - $pc = new pluginLanguage; - return; - - } - - if($this->action == "upgrade") - { - $this -> pluginUpgrade(); - $this -> action = "installed"; - } - - - - if($this->action == "upload") - { - $this -> pluginUpload(); - } - - if($this->action == "online") - { - $text = $this -> pluginOnline(); - $mes = e107::getMessage(); - e107::getRender()->tablerender(ADLAN_98.SEP.$caption, $mes->render(). $text); - return; - } - - // print_a($_POST); - - if(isset($_POST['install-selected'])) - { - foreach($_POST['multiselect'] as $val) - { - $this -> id = intval($val); - $this -> pluginInstall(); - } - $this -> action = "installed"; - } - - if($this->action != 'avail' && varset($this->fields['checkboxes'])) - { - unset($this->fields['checkboxes']); // = FALSE; - } - - if($this->action !='upload' && $this->action !='uninstall') - { - $this -> pluginRenderList(); - } - - - - } - - - private function compatibilityLabel($val='') - { - $badge = (vartrue($val) > 1.9) ? "".EPL_ADLAN_88."" : '1.x'; - return $badge; - } - - - - function pluginOnline() - { - global $plugin, $e107SiteUsername, $e107SiteUserpass; - $tp = e107::getParser(); - $frm = e107::getForm(); - - $caption = EPL_ADLAN_89; - - $e107 = e107::getInstance(); - $xml = e107::getXml(); - $mes = e107::getMessage(); - - // $mes->addWarning("Some older plugins may produce unpredictable results."); - // check for cURL - if(!function_exists('curl_init')) - { - $mes->addWarning(EPL_ADLAN_90); - } - - //TODO use admin_ui including filter capabilities by sending search queries back to the xml script. - $from = isset($_GET['frm']) ? intval($_GET['frm']) : 0; - $srch = preg_replace('/[^\w]/','', vartrue($_GET['srch'])); - - - $mp = $this->getMarketplace(); - - // auth - $mp->generateAuthKey($e107SiteUsername, $e107SiteUserpass); - - // do the request, retrieve and parse data - $xdata = $mp->call('getList', array( - 'type' => 'plugin', - 'params' => array('limit' => 10, 'search' => $srch, 'from' => $from) - )); - $total = $xdata['params']['count']; - - // OLD BIT OF CODE -------------------------------> - - // OLD BIT OF CODE END -------------------------------> - - -// print_a($xdata); - - $c = 1; - foreach($xdata['data'] as $row) - { - //$row = $r['@attributes']; - - // print_a($row); - - $badge = $this->compatibilityLabel($row['compatibility']);; - $featured = ($row['featured']== 1) ? " ".EPL_ADLAN_91."" : ''; - $price = (!empty($row['price'])) ? "".$row['price']." ".$row['currency']."" : "".EPL_ADLAN_93.""; - - $data[] = array( - 'plugin_id' => $row['params']['id'], - 'plugin_mode' => $row['params']['mode'], - 'plugin_icon' => vartrue($row['icon'],'e-plugins-32'), - 'plugin_name' => stripslashes($row['name']), - 'plugin_featured' => $featured, - 'plugin_sef' => '', - 'plugin_folder' => $row['folder'], - 'plugin_date' => vartrue($row['date']), - 'plugin_category' => vartrue($row['category'], 'n/a'), - 'plugin_author' => vartrue($row['author']), - 'plugin_version' => $row['version'], - 'plugin_description' => nl2br(vartrue($row['description'])), - 'plugin_compatible' => $badge, - - 'plugin_website' => vartrue($row['authorUrl']), - 'plugin_url' => $row['urlView'], - 'plugin_notes' => '', - 'plugin_price' => $row['price'], - 'plugin_license' => $price - ); - - $c++; - } - - $fieldList = $this->fields; - unset($fieldList['checkboxes']); - - $text = " - - -
-
- ".$caption." - - - - - - - ".$frm->colGroup($fieldList,$this->fieldpref). - $frm->thead($fieldList,$this->fieldpref)." - - "; - - - - - foreach($data as $key=>$val ) - { - // print_a($val); - $text .= ""; - - foreach($this->fields as $v=>$foo) - { - if(!in_array($v,$this->fieldpref) || $v == 'checkboxes') - { - continue; - } - - $_value = $val[$v]; - if($v == 'plugin_name') $_value .= $val['plugin_featured']; - // echo '
v='.$v; - $text .= "\n"; - } - $text .= ""; - $text .= ""; - - } - - - $text .= " - -
".$frm->renderValue($v, $_value, $this->fields[$v], $key)."".$this->options($val)."
"; - $text .= " -
-
- "; - - if($total > $this->perPage) - { - $parms = $total.",".$this->perPage.",".$from.",".e_SELF.'?mode=online&frm=[FROM]'; - - if(!empty($srch)) - { - $parms .= '&srch='.$srch; - } - - $text .= "
".$tp->parseTemplate("{NEXTPREV=$parms}",TRUE)."
"; - } - - return $text; - - } - - - - function options($data) - { - - // print_a($data); - - - - //$url = e_SELF."?src=".base64_encode($d); - // $url = e_SELF.'?action=download&src='.base64_encode($d);//$url.'&action=download'; - $id = 'plug_'.$data['plugin_id']; - // - $modalCaption = (!empty($data['plugin_price'])) ? EPL_ADLAN_92." ".$data['plugin_name']." ".$data['plugin_version'] : EPL_ADLAN_230." ".$data['plugin_name']." ".$data['plugin_version']; - - $srcData = array( - 'plugin_id' => $data['plugin_id'], - 'plugin_folder' => $data['plugin_folder'], - 'plugin_price' => $data['plugin_price'], - 'plugin_mode' => $data['plugin_mode'], - 'plugin_url' => $data['plugin_url'], - ); - - - $d = http_build_query($srcData,false,'&'); - $url = e_SELF.'?mode=download&src='.base64_encode($d); - $dicon = ''.ADMIN_INSTALLPLUGIN_ICON.''; - - - - // Temporary Pop-up version. - // $dicon = ''; - - // $dicon = " "; - - return "
- {$dicon} -
"; - } - - - - private function pluginDownload() - { - define('e_IFRAME', true); - $frm = e107::getForm(); - $mes = e107::getMessage(); - $tp = e107::getParser(); - - // print_a($_GET); - - $string = base64_decode($_GET['src']); - parse_str($string, $data); - - if(deftrue('e_DEBUG_MARKETPLACE')) - { - echo "DEBUG MODE ACTIVE (no downloading)
"; - echo '$_GET[src]: '; - print_a($_GET); - - echo 'base64 decoded and parsed as $data:'; - print_a($data); - return false; - } - - $pluginFolder = !empty($data['plugin_folder']) ? $tp->filter($data['plugin_folder']) : ''; - $pluginUrl = !empty($data['plugin_url']) ? $tp->filter($data['plugin_url']) : ''; - $pluginID = !empty($data['plugin_id']) ? $tp->filter($data['plugin_id']) : ''; - $pluginMode = !empty($data['plugin_mode']) ? $tp->filter($data['plugin_mode']) : ''; - - if(!empty($data['plugin_price'])) - { - e107::getRedirect()->go($pluginUrl); - return true; - } - - $mp = $this->getMarketplace(); - // $mp->generateAuthKey($e107SiteUsername, $e107SiteUserpass); - - - - // Server flush useless. It's ajax ready state 4, we can't flush (sadly) before that (at least not for all browsers) - $mes->addSuccess(EPL_ADLAN_94); - - if($mp->download($pluginID, $pluginMode, 'plugin')) - { - $this -> pluginCheck(true); // rescan the plugin directory - $text = e107::getPlugin()->install($pluginFolder); - - $mes->addInfo($text); - echo $mes->render('default', 'success'); - } - else - { - // Unable to continue - echo $mes->addError(EPL_ADLAN_95)->render('default', 'error'); - } - - echo $mes->render('default', 'debug'); - return; - - - - $text =""; - // print_a($data); - $text .= $frm->open('upload-url-form','post'); - - $text .= "
"; - $text .= ""; - $text .= $frm->admin_button('upload_remote_url',1,'create','Install'); - $text .= "
"; - $text .= "
\n\n"; - - $text .= $frm->close(); - echo $text; - - } - - - function pluginUninstall() - { - - if(!isset($_POST['uninstall_confirm'])) - { // $id is already an integer - - $this->pluginConfirmUninstall(); - return; - } - - $post = e107::getParser()->filter($_POST); - $text = e107::getPlugin()->uninstall($this->id, $post); - $this->show_message($text, E_MESSAGE_SUCCESS); - - $this->action = 'installed'; - - $log = e107::getPlugin()->getLog(); - e107::getDebug()->log($log); - - return; - - } - - - - - - function pluginProcessUpload() - { - if (!$_POST['ac'] == md5(ADMINPWCHANGE)) - { - exit; - } - - $fl = e107::getFile(); - $data = $fl->getUploaded(e_TEMP); - $mes = e107::getMessage(); - - if(empty($data[0]['error'])) - { - if($fl->unzipArchive($data[0]['name'],'plugin')) - { - $mes->addSuccess(EPL_ADLAN_43); - } - else - { - $mes->addError(EPL_ADLAN_97); - } - } - - // $data = process_uploaded_files(e_TEMP); - // print_a($data); - - echo $mes->render(); - - return true; - - - } - - -// ----------------------------------------------------------------------------- -// TODO FIXME - This needs cleaning: e107::getMessage(), limit the globals, etc. - - function pluginInstall() - { - global $plugin; - $text = $plugin->install_plugin($this->id); - - $log = e107::getAdminLog(); - - - - if ($text === FALSE) - { // Tidy this up - $this->show_message(EPL_ADLAN_99, E_MESSAGE_ERROR); - } - else - { - $plugin->save_addon_prefs('update'); - $info = $plugin->getinfo($this->id); - - $name = deftrue($info['plugin_name'],$info['plugin_name']). " v".$info['plugin_version']. "({e_PLUGIN}".$info['plugin_path'].")"; - - $log->add('PLUGMAN_01', $name, E_LOG_INFORMATIVE, ''); - - $this->show_message($text, E_MESSAGE_SUCCESS); - } - - } - - -// ----------------------------------------------------------------------------- - - function pluginUpgrade() - { - $pref = e107::getPref(); - $admin_log = e107::getAdminLog(); - $plugin = e107::getPlugin(); - - $sql = e107::getDb(); - $mes = e107::getMessage(); - $plug = $plugin->getinfo($this->id); - - $text = ''; - - $_path = e_PLUGIN.$plug['plugin_path'].'/'; - if(file_exists($_path.'plugin.xml')) - { - $plugin->install_plugin_xml($this->id, 'upgrade'); - } - else - { - $eplug_folder = null; - $upgrade_alter_tables = null; - $upgrade_add_prefs = null; - $upgrade_remove_prefs = null; - $upgrade_add_array_pref = null; - $upgrade_remove_array_pref = null; - $eplug_version = null; - - - - include(e_PLUGIN.$plug['plugin_path'].'/plugin.php'); - - $text = ''; - - $func = $eplug_folder.'_upgrade'; - if (function_exists($func)) - { - $text .= call_user_func($func); - } - - if (is_array($upgrade_alter_tables)) - { - $result = $plugin->manage_tables('upgrade', $upgrade_alter_tables); - if (true !== $result) - { - //$text .= EPL_ADLAN_9.'
'; - $mes->addWarning(EPL_ADLAN_9) - ->addDebug($result); - } - else - { - $text .= EPL_ADLAN_7."
"; - } - } - - if (is_array($upgrade_add_prefs)) - { - $plugin->manage_prefs('add', $upgrade_add_prefs); - $text .= EPL_ADLAN_8.'
'; - } - - if (is_array($upgrade_remove_prefs)) - { - $plugin->manage_prefs('remove', $upgrade_remove_prefs); - } - - if (is_array($upgrade_add_array_pref)) - { - foreach($upgrade_add_array_pref as $key => $val) - { - $plugin->manage_plugin_prefs('add', $key, $eplug_folder, $val); - } - } - - if (is_array($upgrade_remove_array_pref)) - { - foreach($upgrade_remove_array_pref as $key => $val) - { - $plugin->manage_plugin_prefs('remove', $key, $eplug_folder, $val); - } - } - - $plugin->manage_search('upgrade', $eplug_folder); - $plugin->manage_notify('upgrade', $eplug_folder); - - $eplug_addons = $plugin -> getAddons($eplug_folder); - - $info = $plugin->getinfo($this->id); - - $name = deftrue($info['plugin_name'],$info['plugin_name']). " v".$eplug_version. "({e_PLUGIN}".$info['plugin_path'].")"; - - e107::getLog()->add('PLUGMAN_02', $name, E_LOG_INFORMATIVE, ''); - $text .= (isset($eplug_upgrade_done)) ? '
'.$eplug_upgrade_done : "
".LAN_UPGRADE_SUCCESSFUL; - $sql->update('plugin', "plugin_version ='{$eplug_version}', plugin_addons='{$eplug_addons}' WHERE plugin_id='$this->id' "); - $pref['plug_installed'][$plug['plugin_path']] = $eplug_version; // Update the version - - e107::getConfig('core')->setPref($pref); - $plugin->rebuildUrlConfig(); - e107::getConfig('core')->save(); - } - - - $mes->addSuccess($text); - $plugin->save_addon_prefs('update'); - - } - - -// ----------------------------------------------------------------------------- - - function pluginRepair() - { - // global $plug; - - $plug = e107::getSingleton('e107plugin')->getinfo($this->id); - - $_path = e_PLUGIN.$plug['plugin_path'].'/'; - if(file_exists($_path.'plugin.xml')) - { - // $text .= $plugin->install_plugin_xml($this->id, 'refresh'); - e107::getSingleton('e107plugin')->refresh($plug['plugin_path']); - e107::getLog()->add('PLUGMAN_04', $this->id.':'.$plug['plugin_path'], E_LOG_INFORMATIVE, ''); - } - - } - -// ----------------------------------------------------------------------------- - - // Check for new plugins, create entry in plugin table ... - function pluginCheck($force=false) - { - global $plugin; - - if(!PLUGIN_SCAN_INTERVAL) - { - $plugin->update_plugins_table('update'); - return; - } - - if((time() > vartrue($_SESSION['nextPluginFolderScan'],0)) || $force == true) - { - $plugin->update_plugins_table('update'); - } - - $_SESSION['nextPluginFolderScan'] = time() + PLUGIN_SCAN_INTERVAL; - //echo "TIME = ".$_SESSION['nextPluginFolderScan']; - - } - // ---------------------------------------------------------- - // render plugin information ... - - -// ----------------------------------------------------------------------------- - - - function pluginUpload() - { - global $plugin; - $frm = e107::getForm(); - - //TODO 'install' checkbox in plugin upload form. (as it is for theme upload) - - - if(!is_writable(e_PLUGIN)) - { - $text = EPL_ADLAN_44; - } - else - { - // Get largest allowable file upload - require_once(e_HANDLER.'upload_handler.php'); - $max_file_size = get_user_max_upload(); - - $text = " -
- - - - - - - - - -
".EPL_ADLAN_37." - - - -
- -
"; - $text .= $frm->admin_button('upload', EPL_ADLAN_38, 'submit', EPL_ADLAN_38); - - $text .= " -
- -
\n"; - } - - e107::getRender()->tablerender(ADLAN_98.SEP.EPL_ADLAN_38, $text); - } - -// ----------------------------------------------------------------------------- - - - - - function pluginRenderList() // Uninstall and Install sorting should be fixed once and for all now ! - { - - global $plugin; - $frm = e107::getForm(); - $mes = e107::getMessage(); - - if($this->action == "" || $this->action == "installed") - { - $installed = $plugin->getall(1); - - $mp = $this->getMarketplace(); - - $versions = $mp->getVersionList(); - - // print_a($versions); - $caption = EPL_ADLAN_22; - $pluginRenderPlugin = $this->pluginRenderPlugin($installed, $versions); - $button_mode = "uninstall-selected"; - $button_caption = EPL_ADLAN_85; - $button_action = "delete"; - } - if($this->action == "avail") - { - $uninstalled = $plugin->getall(0); - $caption = EPL_ADLAN_23; - $pluginRenderPlugin = $this->pluginRenderPlugin($uninstalled); - $button_mode = "install-selected"; - $button_caption = EPL_ADLAN_84; - $button_action = "update"; - } - - $text = " -
-
- ".vartrue($caption)." - - ".$frm->colGroup($this->fields,$this->fieldpref). - $frm->thead($this->fields,$this->fieldpref)." - - "; - - if(vartrue($pluginRenderPlugin)) - { - $text .= $pluginRenderPlugin; - } - else - { - $text .= ""; - } - - $text .= " - -
"; - $text .= str_replace("[x]", "".EPL_ADLAN_100."", EPL_ADLAN_101); - $text .= "
"; - - if($this->action == "avail") - { - $text .= " -
".$frm->admin_button($button_mode, $button_caption, $button_action)."
"; - } - $text .= " -
-
- "; - - e107::getRender()->tablerender(ADLAN_98.SEP.$caption, $mes->render(). $text); - } - - -// ----------------------------------------------------------------------------- - - function pluginRenderPlugin($pluginList, $versions = array()) - { - global $plugin; - - if (empty($pluginList)) return ''; - - $tp = e107::getParser(); - $frm = e107::getForm(); - - $pgf = new pluginmanager_form; - - $text = ""; - - - - foreach($pluginList as $plug) - { - e107::loadLanFiles($plug['plugin_path'],'admin'); - - if($this->action == "avail") - { - e107::lan($plug['plugin_path'],'global', true); // Load language files. - } - - - - $_path = e_PLUGIN.$plug['plugin_path'].'/'; - - $plug_vars = false; - $plugin_config_icon = ""; - - - - if($plugin->parse_plugin($plug['plugin_path'])) - { - $plug_vars = $plugin->plug_vars; - } - - - - if(varset($plug['plugin_category']) == "menu") // Hide "Menu Only" plugins. - { - continue; - } - - if($plug_vars) - { - - $icon_src = (isset($plug_vars['plugin_php']) ? e_PLUGIN : $_path).$plug_vars['administration']['icon']; - - $plugin_icon = $plug_vars['administration']['icon'] ? $icon_src : $tp->toGlyph('e-cat_plugins-32'); - - - $conf_file = "#"; - $conf_title = ""; - - if ($plug_vars['administration']['configFile'] && $plug['plugin_installflag'] == true) - { - $conf_file = e_PLUGIN.$plug['plugin_path'].'/'.$plug_vars['administration']['configFile']; - $conf_title = LAN_CONFIGURE.' '.$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable"); - // $plugin_icon = "".$plugin_icon.""; - $plugin_config_icon = "".ADMIN_CONFIGURE_ICON.""; - } - - $plugEmail = varset($plug_vars['author']['@attributes']['email'],''); - $plugAuthor = varset($plug_vars['author']['@attributes']['name'],''); - $plugURL = varset($plug_vars['author']['@attributes']['url'],''); - $plugDate = varset($plug_vars['@attributes']['date'],''); - $compatibility = varset($plug_vars['@attributes']['compatibility'],''); - - $description = varset($plug_vars['description']['@attributes']['lang']) ? $tp->toHTML($plug_vars['description']['@attributes']['lang'], false, "defs,emotes_off, no_make_clickable") : $tp->toHTML($plug_vars['description']['@value'], false, "emotes_off, no_make_clickable") ; - - $plugReadme = ""; - if(varset($plug['plugin_installflag'])) - { - $plugName = "".$tp->toHTML($plug['plugin_name'], false, "defs,emotes_off, no_make_clickable").""; - } - else - { - $plugName = $tp->toHTML($plug['plugin_name'], false, "defs,emotes_off, no_make_clickable"); - } - if(varset($plug_vars['readme'])) // 0.7 plugin.php - { - $plugReadme = $plug_vars['readme']; - } - if(varset($plug_vars['readMe'])) // 0.8 plugin.xml - { - $plugReadme = $plug_vars['readMe']; - } - - if(!file_exists($plugin_icon)) - { - $plugin_icon = 'e-cat_plugins-32'; // e_IMAGE."admin_images/cat_plugins_32.png"; - } - - - $data = array( - 'plugin_id' => $plug['plugin_id'], - 'plugin_icon' => $plugin_icon, - 'plugin_name' => $plugName, - 'plugin_folder' => $plug['plugin_path'], - 'plugin_date' => $plugDate, - 'plugin_category' => vartrue($plug['plugin_category']), - 'plugin_author' => vartrue($plugAuthor), // vartrue($plugEmail) ? "".$plugAuthor."" : vartrue($plugAuthor), - 'plugin_version' => $plug['plugin_version'], - 'plugin_description' => $description, - 'plugin_compatible' => $this->compatibilityLabel($plug_vars['@attributes']['compatibility']), - - 'plugin_website' => vartrue($plug['authorUrl']), - // 'plugin_url' => vartrue($plugURL), // ; // ? "".ADMIN_URL_ICON."" : "", - 'plugin_notes' => '' - ); - - - $pgf->plug_vars = $plug_vars; - $pgf->plug = $plug; - $text .= $pgf->renderTableRow($this->fields, $this->fieldpref, $data, 'plugin_id'); - - - - } - } - return $text; - } - - -// ----------------------------------------------------------------------------- - - - - function pluginConfirmUninstall() - { - global $plugin; - - $frm = e107::getForm(); - $tp = e107::getParser(); - $mes = e107::getMessage(); - - $plug = $plugin->getinfo($this->id); - - if ($plug['plugin_installflag'] == true ) - { - if($plugin->parse_plugin($plug['plugin_path'])) - { - $plug_vars = $plugin->plug_vars; - } - else - { - return FALSE; - } - } - else - { - return FALSE; - } - $userclasses = ''; - $eufields = ''; - if (isset($plug_vars['userClasses'])) - { - if (isset($plug_vars['userclass']['@attributes'])) - { - $plug_vars['userclass'][0]['@attributes'] = $plug_vars['userclass']['@attributes']; - unset($plug_vars['userclass']['@attributes']); - } - $spacer = ''; - foreach ($plug_vars['userClasses']['class'] as $uc) - { - $userclasses .= $spacer.$uc['@attributes']['name'].' - '.$uc['@attributes']['description']; - $spacer = '
'; - } - } - if (isset($plug_vars['extendedFields'])) - { - if (isset($plug_vars['extendedFields']['@attributes'])) - { - $plug_vars['extendedField'][0]['@attributes'] = $plug_vars['extendedField']['@attributes']; - unset($plug_vars['extendedField']['@attributes']); - } - $spacer = ''; - foreach ($plug_vars['extendedFields']['field'] as $eu) - { - $eufields .= $spacer.'plugin_'.$plug_vars['folder'].'_'.$eu['@attributes']['name']; - $spacer = '
'; - } - } - - if(is_writable(e_PLUGIN.$plug['plugin_path'])) - { - $del_text = $frm->select('delete_files','yesno',0); - } - else - { - $del_text = " - ".EPL_ADLAN_53." - - "; - } - - $text = " -
-
- ".EPL_ADLAN_54." ".$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable")." - - - - - - - - - "; - - $opts = array(); - - $opts['delete_tables'] = array( - 'label' => EPL_ADLAN_57, - 'helpText' => EPL_ADLAN_58, - 'itemList' => array(1=>LAN_YES,0=>LAN_NO), - 'itemDefault' => 1 - ); - - if ($userclasses) - { - $opts['delete_userclasses'] = array( - 'label' => EPL_ADLAN_78, - 'preview' => $userclasses, - 'helpText' => EPL_ADLAN_79, - 'itemList' => array(1=>LAN_YES,0=>LAN_NO), - 'itemDefault' => 1 - ); - } - - if ($eufields) - { - $opts['delete_xfields'] = array( - 'label' => EPL_ADLAN_80, - 'preview' => $eufields, - 'helpText' => EPL_ADLAN_79, - 'itemList' => array(1=>LAN_YES,0=>LAN_NO), - 'itemDefault' => 0 - ); - } - - $med = e107::getMedia(); - $icons = $med->listIcons(e_PLUGIN.$plug['plugin_path']); - - $iconText = ''; - - if(count($icons)>0) - { - foreach($icons as $key=>$val) - { - $iconText .= ""; - } - - $iconText = '
'.$iconText.'
'; - - $opts['delete_ipool'] = array( - 'label' => EPL_ADLAN_231, - 'preview' => $iconText, - 'helpText' => EPL_ADLAN_79, - 'itemList' => array(1=>LAN_YES,0=>LAN_NO), - 'itemDefault' => 1 - ); - - - } - - - - if(is_readable(e_PLUGIN.$plug['plugin_path']."/".$plug['plugin_path']."_setup.php")) - { - include_once(e_PLUGIN.$plug['plugin_path']."/".$plug['plugin_path']."_setup.php"); - - - $mes->add("Loading ".e_PLUGIN.$plug['plugin_path']."/".$plug['plugin_path']."_setup.php", E_MESSAGE_DEBUG); - - $class_name = $plug['plugin_path']."_setup"; - - if(class_exists($class_name)) - { - $obj = new $class_name; - if(method_exists($obj,'uninstall_options')) - { - $arr = call_user_func(array($obj,'uninstall_options'), $this); - foreach($arr as $key=>$val) - { - $newkey = $plug['plugin_path']."_".$key; - $opts[$newkey] = $val; - } - } - } - } - - foreach($opts as $key=>$val) - { - $text .= "\n\n\n\n"; - } - - - $text .=" - - - -
".EPL_ADLAN_55."".LAN_YES."
".$tp->toHTML($val['label'],FALSE,'TITLE'); - $text .= varset($val['preview']) ? "
".$val['preview']."
" : ""; - $text .= "
".$frm->select($key,$val['itemList'],$val['itemDefault']); - $text .= varset($val['helpText']) ? "
".$val['helpText']."
" : ""; - $text .= "
".EPL_ADLAN_59."{$del_text} -
".EPL_ADLAN_60."
-
-
"; - - $text .= $frm->admin_button('uninstall_confirm',EPL_ADLAN_3,'submit'); - $text .= $frm->admin_button('uninstall_cancel',EPL_ADLAN_62,'cancel'); - - - // $frm->admin_button($name, $value, $action = 'submit', $label = '', $options = array()); - - $text .= "
-
-
- "; - // e107::getRender()->tablerender(EPL_ADLAN_63.SEP.$tp->toHTML($plug_vars['@attributes']['name'], "", "defs,emotes_off, no_make_clickable"),$mes->render(). $text); - - } - - function show_message($message, $type = E_MESSAGE_INFO, $session = false) - { - // ##### Display comfort --------- - $mes = e107::getMessage(); - $mes->add($message, $type, $session); - } - - function pluginMenuOptions() - { - // $e107 = &e107::getInstance(); - - $var['installed']['text'] = EPL_ADLAN_22; - $var['installed']['link'] = e_SELF; - - $var['avail']['text'] = EPL_ADLAN_23; - $var['avail']['link'] = e_SELF."?avail"; - - - $var['online']['text'] = EPL_ADLAN_220; - $var['online']['link'] = e_SELF."?mode=online"; - - - if(E107_DEBUG_LEVEL > 0) - { - $var['upload']['text'] = EPL_ADLAN_38; - $var['upload']['link'] = e_SELF."?mode=upload"; - } - - $var['create']['text'] = EPL_ADLAN_114; - $var['create']['link'] = e_SELF."?mode=create"; - - - - - - $keys = array_keys($var); - - $action = (in_array($this->action,$keys)) ? $this->action : "installed"; - - if($this->action == 'lans') - { - $action = 'create'; - } - - $icon = e107::getParser()->toIcon('e-plugmanager-24'); - $caption = $icon."".ADLAN_98.""; - - e107::getNav()->admin($caption, $action, $var); - } - - - - - -} // end of Class. -*/ - -/* -function plugin_adminmenu() -{ - global $pman; - $pman -> pluginMenuOptions(); -}*/ diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index 34b399569..7b7cf6f82 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -14,7 +14,7 @@ if(!empty($_POST) && !isset($_POST['e-token'])) { $_POST['e-token'] = ''; } -require_once ("../class2.php"); +require_once (__DIR__."/../class2.php"); if(isset($_POST['newver'])) { @@ -319,7 +319,7 @@ $pref['membersonly_exceptions'] = implode("\n",$pref['membersonly_exceptions']); $text = "
- +
".PRFLAN_1." @@ -1445,21 +1445,21 @@ $text .= " - @@ -1474,7 +1474,7 @@ $text .= " @@ -2023,7 +2023,7 @@ $text .= " "; $auth_dropdown = ''; -if($authlist) +if(!empty($authlist)) { $auth_dropdown = "\n".$frm->select_open('auth_method')."\n"; foreach($authlist as $a) diff --git a/e107_admin/search.php b/e107_admin/search.php index 42437ecec..99f713734 100644 --- a/e107_admin/search.php +++ b/e107_admin/search.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('X')) { e107::redirect('admin'); @@ -30,7 +30,10 @@ $e_userclass = new user_class(); $query = explode('.', e_QUERY); -$search_prefs = $sysprefs -> getArray('search_prefs'); +$search_prefs = e107::getConfig('search')->getPref(); + + + diff --git a/e107_admin/theme.php b/e107_admin/theme.php index 313c1e6d9..e47d43d89 100644 --- a/e107_admin/theme.php +++ b/e107_admin/theme.php @@ -15,7 +15,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if (!getperms("1|TMP")) { diff --git a/e107_admin/ugflag.php b/e107_admin/ugflag.php index c4e8ef441..fdceb12d3 100644 --- a/e107_admin/ugflag.php +++ b/e107_admin/ugflag.php @@ -9,7 +9,7 @@ * Administration - Site Maintenance * */ -require_once ('../class2.php'); +require_once (__DIR__.'/../class2.php'); if(!getperms('9')) { @@ -106,16 +106,17 @@ $text .= " "; //Ajax Support -if(!e_AJAX_REQUEST) +if(e_AJAX_REQUEST) { - echo "
\n"; $ns->tablerender(UGFLAN_4, $mes->render().$text, 'core-ugflag'); - echo "\n
"; - require_once (e_ADMIN."footer.php"); - exit(); + exit; } +echo "
\n"; $ns->tablerender(UGFLAN_4, $mes->render().$text, 'core-ugflag'); +echo "\n
"; +require_once (e_ADMIN."footer.php"); + /** * Handle page DOM within the page header diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index dab48f1b8..511891b50 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -19,7 +19,7 @@ // [debug=8] shows the operations on major table update -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); require_once(e_HANDLER.'db_table_admin_class.php'); e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_e107_update.php'); // Modified update routine - combines checking and update code into one block per function diff --git a/e107_admin/updateadmin.php b/e107_admin/updateadmin.php index 7ffc54051..ecf064350 100644 --- a/e107_admin/updateadmin.php +++ b/e107_admin/updateadmin.php @@ -11,7 +11,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); // include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE); e107::lan('core','updateadmin',true); @@ -110,7 +110,7 @@ else
- ".$frm->radio('user_tracking', array('cookie' => PRFLAN_49, 'session' => PRFLAN_50), $pref['user_tracking'])." + ".$frm->radio('user_tracking', array('cookie' => PRFLAN_49, 'session' => PRFLAN_50), varset($pref['user_tracking']))."
".$frm->text('cookie_name', $pref['cookie_name'], 20)." + ".$frm->text('cookie_name', varset($pref['cookie_name']), 20)."
".PRFLAN_263.".
- ".$frm->number('session_lifetime', $pref['session_lifetime'],6)." + ".$frm->number('session_lifetime', varset($pref['session_lifetime']), 6)."
".PRFLAN_273."
- ".$frm->select('session_save_method', [ 'db'=>'Database', 'files'=>'Files'], $pref['session_save_method'])." + ".$frm->select('session_save_method', [ 'db'=>'Database', 'files'=>'Files'], varset($pref['session_save_method']))."
- ". + ". $frm->admin_button('update_settings','no-value','update',UDALAN_7)."
diff --git a/e107_admin/upload.php b/e107_admin/upload.php index 6f5aad6bc..20d44121a 100644 --- a/e107_admin/upload.php +++ b/e107_admin/upload.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('V')) { e107::redirect('admin'); @@ -476,35 +476,3 @@ require_once(e_ADMIN."auth.php"); e107::getAdminUI()->runPage(); require_once(e_ADMIN."footer.php"); -exit; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/e107_admin/userclass2.php b/e107_admin/userclass2.php index 5c55b7899..d17bd2caf 100644 --- a/e107_admin/userclass2.php +++ b/e107_admin/userclass2.php @@ -10,7 +10,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('4')) { @@ -505,15 +505,8 @@ e107::coreLan('userclass2', true); - new uclass_admin(); +new uclass_admin(); +require_once(e_ADMIN."auth.php"); +e107::getAdminUI()->runPage(); +require_once(e_ADMIN."footer.php"); - require_once(e_ADMIN."auth.php"); - - e107::getAdminUI()->runPage(); - - require_once(e_ADMIN."footer.php"); - exit; - - - -?> diff --git a/e107_admin/users.php b/e107_admin/users.php index efed8c8bf..9d6bc2c7d 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -17,7 +17,7 @@ if(!empty($_POST) && !isset($_POST['e-token'])) if (!defined('e107_INIT')) { - require_once("../class2.php"); + require_once(__DIR__.'/../class2.php'); } if (!getperms('4|U0|U1|U2|U3')) diff --git a/e107_admin/users_extended.php b/e107_admin/users_extended.php index e43cc1336..0249e28b0 100755 --- a/e107_admin/users_extended.php +++ b/e107_admin/users_extended.php @@ -8,7 +8,7 @@ * */ -require_once('../class2.php'); +require_once(__DIR__.'/../class2.php'); if (!getperms('4')) { @@ -1164,21 +1164,13 @@ e107::js('footer-inline', js()); - new user_extended_adminArea(); - - require_once(e_ADMIN."auth.php"); - e107::getAdminUI()->runPage(); - - require_once(e_ADMIN."footer.php"); +new user_extended_adminArea(); +require_once(e_ADMIN."auth.php"); +e107::getAdminUI()->runPage(); +require_once(e_ADMIN."footer.php"); - exit; - - - - - diff --git a/e107_admin/wmessage.php b/e107_admin/wmessage.php index ace169b9c..fe580bcfa 100644 --- a/e107_admin/wmessage.php +++ b/e107_admin/wmessage.php @@ -8,7 +8,7 @@ * */ -require_once("../class2.php"); +require_once(__DIR__.'/../class2.php'); if (!getperms("M")) { e107::redirect('admin'); @@ -155,16 +155,7 @@ class generic_form_ui extends e_admin_form_ui new wmessage_admin(); - require_once(e_ADMIN."auth.php"); - e107::getAdminUI()->runPage(); - require_once(e_ADMIN."footer.php"); -exit; - - - - - diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index a9aced6ad..bfee4b8c3 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -2048,15 +2048,15 @@ Inverse 10 10 $upStatus = (e107::getSession()->get('core-update-status') === true) ? "" : ''; - return $template['start']. '
  • '.$upStatus.'
  • ' .$template['end']; + return varset($template['start']). '
  • '.$upStatus.'
  • ' .varset($template['end']); } if($parm == self::ADMIN_NAV_HOME || $parm == self::ADMIN_NAV_LOGOUT || $parm == self::ADMIN_NAV_LANGUAGE || $parm == 'pm') { - $template = $$tmpl; + $template = (array) $$tmpl; - $template['start'] = $template['start_other']; + $template['start'] = varset($template['start_other']); $menu_vars = $this->getOtherNav($parm); return e107::getNav()->admin('', '', $menu_vars, $template, FALSE, FALSE); diff --git a/e107_core/shortcodes/single/nextprev.php b/e107_core/shortcodes/single/nextprev.php index 160d2c552..c9ac79176 100644 --- a/e107_core/shortcodes/single/nextprev.php +++ b/e107_core/shortcodes/single/nextprev.php @@ -260,7 +260,7 @@ function nextprev_shortcode($parm = null) // caption, e.g. 'Page 1 of 20' box if($e_vars->caption) { - $ret .= $tp->simpleParse($tmpl[$tprefix.'nav_caption'], $e_vars); + $ret .= $tp->simpleParse(varset($tmpl[$tprefix.'nav_caption']), $e_vars); } $ret_array = array(); diff --git a/e107_core/templates/admin_template.php b/e107_core/templates/admin_template.php index f28ce1160..3369a748e 100644 --- a/e107_core/templates/admin_template.php +++ b/e107_core/templates/admin_template.php @@ -2,53 +2,330 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2016 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * + * Admin template - _blank theme * - * - * $Source: /cvs_backup/e107_0.8/e107_themes/templates/admin_template.php,v $ + * $Source: /cvs_backup/e107_0.8/e107_themes/_blank/admin_template.php,v $ * $Revision$ * $Date$ * $Author$ + * +*/ + +if (!defined('e107_INIT')) { exit(); } + +//e107::lan('theme', 'admin',true); + + +$E_ADMIN_NAVIGATION['start'] = '
    "; diff --git a/e107_handlers/menumanager_class.php b/e107_handlers/menumanager_class.php index 9a393b8ff..fe8fcfeeb 100644 --- a/e107_handlers/menumanager_class.php +++ b/e107_handlers/menumanager_class.php @@ -248,7 +248,10 @@ class e_menuManager $FOOTER = array(); foreach($LAYOUT as $key=>$template) { - list($hd,$ft) = explode("{---}",$template); + $tmp = explode("{---}",$template); + $hd = varset($tmp[0]); + $ft = varset($tmp[1]); + $HEADER[$key] = isset($LAYOUT['_header_']) ? $LAYOUT['_header_'] . $hd : $hd; $FOOTER[$key] = isset($LAYOUT['_footer_']) ? $ft . $LAYOUT['_footer_'] : $ft ; } diff --git a/e107_handlers/redirection_class.php b/e107_handlers/redirection_class.php index 1f0c80c6a..5d31ef9bb 100644 --- a/e107_handlers/redirection_class.php +++ b/e107_handlers/redirection_class.php @@ -355,6 +355,11 @@ class redirection */ public function go($url='', $replace = TRUE, $http_response_code = NULL, $preventCache = true) { + if(e107::isCli()) + { + return null; + } + $url = str_replace("&", "&", $url); // cleanup when using e_QUERY in $url; if(empty($url)) diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index 5d27ed3c5..86ae40db6 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -1400,7 +1400,7 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } || e_REQUEST_HTTP === varset($e107_vars[$act]['link']) ) { - $temp = $tmpl['button_active'.$kpost]; + $temp = varset($tmpl['button_active'.$kpost]); } else { @@ -1423,7 +1423,7 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } if(!empty($e107_vars[$act]['template'])) { $tmplateKey = 'button_'.$e107_vars[$act]['template'].$kpost; - $temp = $tmpl[$tmplateKey]; + $temp = varset($tmpl[$tmplateKey]); // e107::getDebug()->log($tmplateKey); } diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 7abb50232..5a62f679b 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -2226,7 +2226,7 @@ class themeHandler } $tdClass = !empty($val['writeParms']['post']) ? 'form-inline' : ''; - $text .= "".$val['title'].":".$frm->renderElement($field, $value[$field], $val)."
    ".varset($val['help'])."
    "; + $text .= "".$val['title'].":".$frm->renderElement($field, varset($value[$field]), $val)."
    ".varset($val['help'])."
    "; } } diff --git a/e107_languages/English/admin/lan_userclass2.php b/e107_languages/English/admin/lan_userclass2.php index 253c7b892..8542b6065 100644 --- a/e107_languages/English/admin/lan_userclass2.php +++ b/e107_languages/English/admin/lan_userclass2.php @@ -19,7 +19,7 @@ //define("UCSLAN_7", "No user classes yet.");//LAN_NO_RECORDS_FOUND //define("UCSLAN_8", "Existing Classes");//NOT USED //define("UCSLAN_9", "No Icon");//NOT USED -define("UCSLAN_10", "Class not deleted - it is a core class, or is used in the definition of another class, as either parent or edit class"); +// define("UCSLAN_10", "Class not deleted - it is a core class, or is used in the definition of another class, as either parent or edit class"); //define("UCSLAN_11", "tick to confirm");//NOT USED //define("UCSLAN_12", "Class Name");//LAN_NAME //define("UCSLAN_13", "Class Description");//LAN_DESCRIPTION diff --git a/e107_tests/lib/preparers/E107Preparer.php b/e107_tests/lib/preparers/E107Preparer.php index cc247012e..f2e15b7dc 100644 --- a/e107_tests/lib/preparers/E107Preparer.php +++ b/e107_tests/lib/preparers/E107Preparer.php @@ -56,7 +56,18 @@ class E107Preparer implements Preparer if(is_dir($dirPath)) { - rmdir($dirPath); + try + { + rmdir($dirPath); + } + catch (Exception $e) + { + echo $e->getMessage()."\n"; + /* echo "Contents: \n"; + $list = scandir($dirPath); + var_export($list);*/ + // do something + } } } } diff --git a/e107_tests/tests/_data/e107_v2.3.0.sample.sql b/e107_tests/tests/_data/e107_v2.3.0.sample.sql index f8388c746..b71daac6c 100644 --- a/e107_tests/tests/_data/e107_v2.3.0.sample.sql +++ b/e107_tests/tests/_data/e107_v2.3.0.sample.sql @@ -167,7 +167,7 @@ CREATE TABLE `e107_core` ( LOCK TABLES `e107_core` WRITE; /*!40000 ALTER TABLE `e107_core` DISABLE KEYS */; -INSERT INTO `e107_core` VALUES ('SitePrefs','array (\n \'admin_alerts_ok\' => \'1\',\n \'admin_alerts_uniquemenu\' => \'0\',\n \'admin_separate_plugins\' => \'0\',\n \'admincode\' => \'0\',\n \'admincss\' => \'css/bootstrap-dark.min.css\',\n \'adminlanguage\' => \'\',\n \'adminpwordchange\' => \'0\',\n \'adminstyle\' => \'flexpanel\',\n \'admintheme\' => \'bootstrap3\',\n \'allowCommentEdit\' => \'0\',\n \'allowEmailLogin\' => \'2\',\n \'anon_post\' => \'0\',\n \'antiflood1\' => \'1\',\n \'antiflood_timeout\' => \'10\',\n \'auth_method\' => \'\',\n \'autoban\' => \'1\',\n \'autologinpostsignup\' => \'1\',\n \'ban_date_format\' => \'%H:%M %d-%m-%y\',\n \'ban_max_online_access\' => \'100,200\',\n \'ban_retrigger\' => \'0\',\n \'cachestatus\' => \'\',\n \'check_updates\' => \'1\',\n \'comments_disabled\' => \'0\',\n \'comments_emoticons\' => \'0\',\n \'comments_engine\' => \'e107\',\n \'comments_icon\' => \'0\',\n \'comments_moderate\' => \'247\',\n \'comments_sort\' => \'desc\',\n \'compress_output\' => \'0\',\n \'contact_emailcopy\' => \'0\',\n \'contact_visibility\' => \'0\',\n \'contact_filter\' => \'\',\n \'cookie_name\' => \'e107_cookie\',\n \'core-infopanel-default\' => \n array (\n 0 => \'e-administrator\',\n 1 => \'e-cpage\',\n 2 => \'e-filemanager\',\n 3 => \'e-frontpage\',\n 4 => \'e-image\',\n 5 => \'e-mailout\',\n 6 => \'e-menus\',\n 7 => \'e-meta\',\n 8 => \'e-newspost\',\n 9 => \'e-plugin\',\n 10 => \'e-prefs\',\n 11 => \'e-links\',\n 12 => \'e-theme\',\n 13 => \'e-userclass2\',\n 14 => \'e-users\',\n 15 => \'e-wmessage\',\n ),\n \'db_updates\' => \n array (\n ),\n \'developer\' => \'0\',\n \'disable_emailcheck\' => \'0\',\n \'disallowMultiLogin\' => \'0\',\n \'display_memory_usage\' => \'0\',\n \'displayname_class\' => \'255\',\n \'displayname_maxlength\' => \'20\',\n \'displayrendertime\' => \'0\',\n \'displaysql\' => \'0\',\n \'displaythemeinfo\' => \'1\',\n \'e_admin_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_comment_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_event_list\' => \n array (\n \'news\' => \'news\',\n \'social\' => \'social\',\n ),\n \'e_featurebox_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_footer_list\' => \n array (\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_header_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_jslib_cdn\' => \'1\',\n \'e_jslib_cdn_provider\' => \'jsdelivr\',\n \'e_jslib_browser_cache\' => \'0\',\n \'e_jslib_nobcache\' => \'1\',\n \'e_jslib_nocache\' => \'1\',\n \'e_jslib_gzip\' => \'1\',\n \'e_jslib_nocombine\' => \'1\',\n \'e_jslib_core\' => \n array (\n \'prototype\' => \'none\',\n \'jquery\' => \'all\',\n ),\n \'e_jslib_plugin\' => \n array (\n ),\n \'e_jslib_theme\' => \n array (\n ),\n \'e_meta_list\' => \n array (\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_module_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_related_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_rss_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'news\' => \'news\',\n ),\n \'e_search_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n \'user\' => \'user\',\n ),\n \'e_shortcode_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'page\' => \'page\',\n \'siteinfo\' => \'siteinfo\',\n \'social\' => \'social\',\n ),\n \'shortcode_list\' => \n array (\n ),\n \'e_sitelink_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_sql_list\' => \n array (\n \'featurebox\' => \'featurebox_sql\',\n \'rss_menu\' => \'rss_sql\',\n ),\n \'e_url_list\' => \n array (\n \'contact\' => \'contact\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_user_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'email_text\' => \'\',\n \'emotepack\' => \'default\',\n \'enable_rdns\' => \'0\',\n \'enable_rdns_on_ban\' => \'0\',\n \'failed_login_limit\' => \'10\',\n \'filter_script\' => \'1\',\n \'flood_hits\' => \'100\',\n \'flood_protect\' => \'1\',\n \'flood_time\' => \'30\',\n \'flood_timeout\' => \'5\',\n \'forumdate\' => \'%a %b %d %Y, %I:%M%p\',\n \'fpwcode\' => \'0\',\n \'frontpage\' => \n array (\n 0 => \'index.php\',\n ),\n \'frontpage_force\' => \n array (\n 0 => \'\',\n ),\n \'gdpr_privacypolicy\' => \'\',\n \'gdpr_termsandconditions\' => \'\',\n \'html_abuse\' => \'1\',\n \'im_height\' => \'80\',\n \'im_path\' => \'/usr/X11R6/bin/\',\n \'im_width\' => \'80\',\n \'image_post\' => \'1\',\n \'image_post_class\' => \'0\',\n \'image_preload\' => \'0\',\n \'img_import_resize\' => \'1200x800\',\n \'inline_editing\' => \'255\',\n \'inputdate\' => \'%A, %d %b, %Y\',\n \'inputtime\' => \'%I:%M %p\',\n \'install_date\' => 1590351985,\n \'link_replace\' => \'0\',\n \'link_text\' => \'\',\n \'linkpage_screentip\' => \'0\',\n \'links_new_window\' => \'1\',\n \'log_page_accesses\' => \'0\',\n \'log_refertype\' => \'1\',\n \'logcode\' => \'0\',\n \'loginname_maxlength\' => \'30\',\n \'longdate\' => \'%A %d %B %Y - %H:%M:%S\',\n \'mail_pause\' => \'3\',\n \'mail_bounce\' => \'none\',\n \'mail_pausetime\' => \'4\',\n \'mail_sendstyle\' => \'texthtml\',\n \'mail_workpertick\' => \'5\',\n \'mailer\' => \'php\',\n \'bulkmailer\' => \'smtp\',\n \'main_wordwrap\' => \'\',\n \'maintainance_flag\' => \'0\',\n \'make_clickable\' => \'0\',\n \'memberlist_access\' => \'253\',\n \'membersonly_enabled\' => \'0\',\n \'membersonly_exceptions\' => \n array (\n 0 => \'\',\n ),\n \'menu_wordwrap\' => \'0\',\n \'menuconfig_list\' => \n array (\n \'login_menu\' => \n array (\n \'name\' => \'Login\',\n \'link\' => \'login_menu/config.php\',\n ),\n \'news\' => \n array (\n \'name\' => \'Newsmonths\',\n \'link\' => \'blogcalendar_menu/config.php\',\n ),\n ),\n \'membersonly_redirect\' => \'login\',\n \'meta_tag\' => \'\',\n \'multilanguage\' => \'0\',\n \'nbr_cols\' => \'1\',\n \'nested_comments\' => \'1\',\n \'news_cats\' => \'\',\n \'news_default_template\' => \'default\',\n \'news_list_limit\' => \'10\',\n \'news_newdateheader\' => \'0\',\n \'newsposts\' => \'10\',\n \'newsposts_archive\' => \'0\',\n \'newsposts_archive_title\' => \'\',\n \'noLanguageSubs\' => \'0\',\n \'null\' => \'\',\n \'old_np\' => \'0\',\n \'pageCookieExpire\' => \'84600\',\n \'passwordEncoding\' => 3,\n \'password_CHAP\' => \'0\',\n \'plug_installed\' => \n array (\n \'news\' => \'1.0\',\n \'page\' => \'1.0\',\n \'siteinfo\' => \'1.0\',\n \'social\' => \'1.0\',\n \'tinymce4\' => \'1.0\',\n \'rss_menu\' => \'1.3\',\n \'contact\' => \'1.0\',\n \'user\' => \'1.0\',\n \'featurebox\' => \'1.1\',\n \'gallery\' => \'1.1\',\n ),\n \'post_html\' => \'254\',\n \'post_script\' => \'254\',\n \'predefinedLoginName\' => \'\',\n \'profanity_filter\' => \'0\',\n \'profanity_replace\' => \'[censored]\',\n \'profanity_words\' => \'\',\n \'redirectsiteurl\' => \'0\',\n \'replyto_email\' => \'e107inc@gmail.com\',\n \'replyto_name\' => \'e107\',\n \'resize_method\' => \'gd2\',\n \'resize_dimensions\' => \n array (\n \'news-image\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'news-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'page-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n ),\n \'search_highlight\' => \'1\',\n \'search_restrict\' => \'0\',\n \'session_lifetime\' => \'86400\',\n \'shortdate\' => \'%d %b %Y : %H:%M\',\n \'signcode\' => \'0\',\n \'signup_disallow_text\' => \'\',\n \'signup_maxip\' => \'3\',\n \'signup_option_class\' => \'0\',\n \'signup_option_customtitle\' => \'0\',\n \'signup_option_email_confirm\' => \'0\',\n \'signup_option_hideemail\' => \'0\',\n \'signup_option_image\' => \'0\',\n \'signup_option_password\' => \'2\',\n \'signup_option_realname\' => \'0\',\n \'signup_option_signature\' => \'0\',\n \'signup_pass_len\' => \'6\',\n \'signup_text\' => \'\',\n \'signup_text_after\' => \'\',\n \'siteadmin\' => \'e107\',\n \'siteadminemail\' => \'e107inc@gmail.com\',\n \'sitebutton\' => \'{e_IMAGE}button.png\',\n \'sitecontactinfo\' => \'[b]My Company[/b]\n13 My Address St.\nCity, State, Country\n[b]Phone:[/b] 555-555-5555\n[b]Email:[/b] sales@mydomain.com\',\n \'sitecontacts\' => \'255\',\n \'sitedescription\' => \'\',\n \'sitedisclaimer\' => \'\',\n \'sitelang_init\' => \'English\',\n \'sitelanguage\' => \'English\',\n \'sitelogo\' => \'\',\n \'sitename\' => \'e107\',\n \'sitetag\' => \'e107 Website System\',\n \'sitetheme\' => \'bootstrap3\',\n \'sitetheme_custompages\' => \n array (\n \'jumbotron_home\' => \n array (\n 0 => \'FRONTPAGE\',\n ),\n \'jumbotron_full\' => \n array (\n 0 => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n 0 => \'/news\',\n ),\n ),\n \'sitetheme_deflayout\' => \'jumbotron_sidebar_right\',\n \'sitetheme_layouts\' => \n array (\n \'jumbotron_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (home)\',\n \'default\' => \'false\',\n ),\n \'custompages\' => \'FRONTPAGE\',\n ),\n \'modern_business_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Modern Business: Home page carousel with fixed custom-menus\',\n ),\n \'@value\' => \'\',\n ),\n \'jumbotron_full\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (full-width)\',\n ),\n \'custompages\' => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (sidebar-right)\',\n \'default\' => \'true\',\n ),\n \'custompages\' => \'/news\',\n \'menuPresets\' => \n array (\n \'area\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'id\' => \'1\',\n ),\n \'menu\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'search\',\n ),\n \'@value\' => \'\',\n ),\n 1 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'news_categories\',\n ),\n \'@value\' => \'\',\n ),\n 2 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news\',\n ),\n \'@value\' => \'\',\n ),\n 3 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news2\',\n ),\n \'@value\' => \'\',\n ),\n 4 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'blogcalendar\',\n ),\n \'@value\' => \'\',\n ),\n ),\n ),\n ),\n ),\n ),\n ),\n \'sitetheme_pref\' => \'\',\n \'siteurl\' => \'https://localhost/e107/\',\n \'smiley_activate\' => \'1\',\n \'smtp_server\' => \'\',\n \'smtp_username\' => \'\',\n \'smtp_password\' => \'\',\n \'smtp_options\' => \'\',\n \'smtp_port\' => \'25\',\n \'social_login_active\' => \'0\',\n \'social_login\' => \'array()\',\n \'ssl_enabled\' => \'0\',\n \'subnews_attach\' => \'253\',\n \'subnews_class\' => \'253\',\n \'subnews_htmlarea\' => \'0\',\n \'subnews_resize\' => \'\',\n \'themecss\' => \'style.css\',\n \'thumbnail_quality\' => \'75\',\n \'timezone\' => \'UTC\',\n \'track_online\' => \'1\',\n \'ue_upgrade\' => \'1\',\n \'upload_class\' => \'255\',\n \'upload_enabled\' => \'0\',\n \'upload_maxfilesize\' => \'2M\',\n \'url_aliases\' => \n array (\n ),\n \'url_config\' => \n array (\n \'index\' => \'core\',\n \'news\' => \'core\',\n \'page\' => \'core\',\n \'search\' => \'core\',\n \'system\' => \'core\',\n \'user\' => \'core\',\n \'gallery\' => \'plugin\',\n ),\n \'url_profiles\' => \n array (\n ),\n \'url_disable_pathinfo\' => \'1\',\n \'url_error_redirect\' => \'0\',\n \'url_locations\' => \n array (\n \'index\' => \n array (\n 0 => \'core\',\n ),\n \'news\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_full\',\n 2 => \'core/sef_noid\',\n 3 => \'core/sef\',\n ),\n \'page\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_noid\',\n 2 => \'core/sef\',\n 3 => \'core/sef_chapters\',\n ),\n \'search\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'system\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'user\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'gallery\' => \n array (\n 0 => \'plugin\',\n 1 => \'plugin/rewrite\',\n ),\n ),\n \'url_main_module\' => \'\',\n \'url_modules\' => \n array (\n \'core\' => \n array (\n 0 => \'index\',\n 1 => \'news\',\n 2 => \'page\',\n 3 => \'search\',\n 4 => \'system\',\n 5 => \'user\',\n ),\n \'plugin\' => \n array (\n 0 => \'gallery\',\n ),\n \'override\' => \n array (\n ),\n ),\n \'url_sef_translate\' => \'dashl\',\n \'useGeshi\' => \'0\',\n \'use_coppa\' => \'1\',\n \'user_new_period\' => \'3\',\n \'user_reg\' => \'1\',\n \'user_reg_secureveri\' => \'1\',\n \'user_reg_veri\' => \'1\',\n \'session_handler\' => \'e107\\\\SessionHandlers\\\\DatabaseSessionHandler\',\n \'version\' => \'2.3.0\',\n \'wm_enclose\' => \'1\',\n \'wmessage_sc\' => \'0\',\n \'wysiwyg\' => \'1\',\n \'xup_enabled\' => \'1\',\n \'xurl\' => \n array (\n \'facebook\' => \'#\',\n \'twitter\' => \'#\',\n \'youtube\' => \'#\',\n \'google\' => \'#\',\n \'linkedin\' => \'\',\n \'github\' => \'\',\n \'flickr\' => \'\',\n \'instagram\' => \'\',\n \'pinterest\' => \'\',\n \'vimeo\' => \'\',\n ),\n \'xmlfeed_languagepacks\' => \'http://www.e107.org/themeupdate.php\',\n \'xmlfeed_security\' => \'http://www.e107.org/themeupdate.php\',\n \'avatar_upload\' => \'0\',\n \'photo_upload\' => \'0\',\n \'profile_rate\' => \'0\',\n \'profile_comments\' => \'0\',\n \'force_userupdate\' => \'0\',\n \'del_unv\' => \'0\',\n \'del_accu\' => \'1\',\n \'signature_access\' => \'253\',\n \'lan_global_list\' => \n array (\n \'rss_menu\' => \'rss_menu\',\n \'social\' => \'social\',\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n ),\n \'bbcode_list\' => \n array (\n ),\n \'shortcode_legacy_list\' => \n array (\n \'newforumposts_main\' => \n array (\n \'newforumposts\' => 255,\n ),\n ),\n \'e_frontpage_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_menu_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_gsitemap_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_dashboard_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'e_mailout_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'fb_active\' => \'1\',\n \'sitetheme_version\' => \'1.0\',\n \'sitetheme_glyphicons\' => \n array (\n ),\n \'e_library_list\' => \n array (\n \'gallery\' => \'gallery\',\n ),\n)'),('emote_default','array (\n \'alien!png\' => \'!alien\',\n \'amazed!png\' => \'!amazed\',\n \'angry!png\' => \'!grr !angry\',\n \'biglaugh!png\' => \'!lol\',\n \'cheesey!png\' => \':D :oD :-D\',\n \'confused!png\' => \':? :o? :-?\',\n \'cry!png\' => \'&| &-| &o| :(( !cry\',\n \'dead!png\' => \'x) xo) x-) x( xo( x-(\',\n \'dodge!png\' => \'!dodge\',\n \'frown!png\' => \':( :o( :-(\',\n \'gah!png\' => \':@ :o@ :o@\',\n \'grin!png\' => \':D :oD :-D\',\n \'heart!png\' => \'!heart\',\n \'idea!png\' => \':! :o! :-!\',\n \'ill!png\' => \'!ill\',\n \'mad!png\' => \'~:( ~:o( ~:-(\',\n \'mistrust!png\' => \'!mistrust\',\n \'neutral!png\' => \':| :o| :-|\',\n \'question!png\' => \'?!\',\n \'rolleyes!png\' => \'B) Bo) B-)\',\n \'sad!png\' => \'!sad\',\n \'shades!png\' => \'8) 8o) 8-)\',\n \'shy!png\' => \'!shy\',\n \'smile!png\' => \':) :o) :-)\',\n \'special!png\' => \'%-6\',\n \'suprised!png\' => \':O :oO :-O\',\n \'tongue!png\' => \':p :op :-p :P :oP :-P\',\n \'wink!png\' => \';) ;o) ;-)\',\n)'),('menu_pref','array (\n \'clock_caption\' => \'Date / Time\',\n \'comment_caption\' => \'Latest Comments\',\n \'comment_characters\' => \'50\',\n \'comment_display\' => \'10\',\n \'comment_postfix\' => \'[more ...]\',\n \'comment_title\' => \'0\',\n \'forum_no_characters\' => \'20\',\n \'forum_postfix\' => \'[more ...]\',\n \'forum_show_topics\' => \'1\',\n \'newforumposts_caption\' => \'Latest Forum Posts\',\n \'newforumposts_characters\' => \'50\',\n \'newforumposts_display\' => \'10\',\n \'newforumposts_postfix\' => \'[more ...]\',\n \'newforumposts_title\' => \'0\',\n \'update_menu\' => \'Update menu Settings\',\n)'),('search_prefs','array (\n \'comments_handlers\' => \n array (\n \'news\' => \n array (\n \'id\' => 0,\n \'dir\' => \'core\',\n \'class\' => \'0\',\n ),\n \'download\' => \n array (\n \'id\' => 2,\n \'dir\' => \'core\',\n \'class\' => \'0\',\n ),\n ),\n \'core_handlers\' => \n array (\n \'comments\' => \n array (\n \'class\' => \'0\',\n \'pre_title\' => \'1\',\n \'pre_title_alt\' => \'\',\n \'chars\' => \'150\',\n \'results\' => \'10\',\n \'order\' => \'2\',\n ),\n \'users\' => \n array (\n \'class\' => \'0\',\n \'pre_title\' => \'1\',\n \'pre_title_alt\' => \'\',\n \'chars\' => \'150\',\n \'results\' => \'10\',\n \'order\' => \'3\',\n ),\n ),\n \'google\' => \'0\',\n \'multisearch\' => \'1\',\n \'mysql_sort\' => \'1\',\n \'php_limit\' => \'\',\n \'relevance\' => \'0\',\n \'selector\' => \'2\',\n \'time_restrict\' => \'0\',\n \'time_secs\' => \'60\',\n \'user_select\' => \'1\',\n)'),('notify_prefs','array (\n \'event\' => \n array (\n \'login\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'logout\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_signup_submitted\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_signup_activated\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_ban_flood\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_news_submit\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_created\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_updated\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_deleted\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_xup_login\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_xup_signup\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_ban_failed_login\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_profile_display\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_password_update\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_user_created\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_user_activated\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_notify\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'maildone\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_file_upload\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n ),\n)'),('SitePrefs_Backup','array (\n \'admin_alerts_ok\' => \'1\',\n \'admin_alerts_uniquemenu\' => \'0\',\n \'admin_separate_plugins\' => \'0\',\n \'admincode\' => \'0\',\n \'admincss\' => \'admin_dark.css\',\n \'adminlanguage\' => \'\',\n \'adminpwordchange\' => \'0\',\n \'adminstyle\' => \'flexpanel\',\n \'admintheme\' => \'bootstrap3\',\n \'allowCommentEdit\' => \'0\',\n \'allowEmailLogin\' => \'2\',\n \'anon_post\' => \'0\',\n \'antiflood1\' => \'1\',\n \'antiflood_timeout\' => \'10\',\n \'auth_method\' => \'\',\n \'autoban\' => \'1\',\n \'autologinpostsignup\' => \'1\',\n \'ban_date_format\' => \'%H:%M %d-%m-%y\',\n \'ban_max_online_access\' => \'100,200\',\n \'ban_retrigger\' => \'0\',\n \'cachestatus\' => \'\',\n \'check_updates\' => \'1\',\n \'comments_disabled\' => \'0\',\n \'comments_emoticons\' => \'0\',\n \'comments_engine\' => \'e107\',\n \'comments_icon\' => \'0\',\n \'comments_moderate\' => \'247\',\n \'comments_sort\' => \'desc\',\n \'compress_output\' => \'0\',\n \'contact_emailcopy\' => \'0\',\n \'contact_visibility\' => \'0\',\n \'contact_filter\' => \'\',\n \'cookie_name\' => \'e107cookie\',\n \'core-infopanel-default\' => \n array (\n 0 => \'e-administrator\',\n 1 => \'e-cpage\',\n 2 => \'e-filemanager\',\n 3 => \'e-frontpage\',\n 4 => \'e-image\',\n 5 => \'e-mailout\',\n 6 => \'e-menus\',\n 7 => \'e-meta\',\n 8 => \'e-newspost\',\n 9 => \'e-plugin\',\n 10 => \'e-prefs\',\n 11 => \'e-links\',\n 12 => \'e-theme\',\n 13 => \'e-userclass2\',\n 14 => \'e-users\',\n 15 => \'e-wmessage\',\n ),\n \'db_updates\' => \n array (\n ),\n \'developer\' => \'0\',\n \'disable_emailcheck\' => \'0\',\n \'disallowMultiLogin\' => \'0\',\n \'display_memory_usage\' => \'0\',\n \'displayname_class\' => \'255\',\n \'displayname_maxlength\' => \'20\',\n \'displayrendertime\' => \'0\',\n \'displaysql\' => \'0\',\n \'displaythemeinfo\' => \'1\',\n \'e_admin_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_comment_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_event_list\' => \n array (\n \'news\' => \'news\',\n \'social\' => \'social\',\n ),\n \'e_featurebox_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_footer_list\' => \n array (\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_header_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_jslib_cdn\' => \'1\',\n \'e_jslib_cdn_provider\' => \'jsdelivr\',\n \'e_jslib_browser_cache\' => \'0\',\n \'e_jslib_nobcache\' => \'1\',\n \'e_jslib_nocache\' => \'1\',\n \'e_jslib_gzip\' => \'1\',\n \'e_jslib_nocombine\' => \'1\',\n \'e_jslib_core\' => \n array (\n \'prototype\' => \'none\',\n \'jquery\' => \'all\',\n ),\n \'e_jslib_plugin\' => \n array (\n ),\n \'e_jslib_theme\' => \n array (\n ),\n \'e_meta_list\' => \n array (\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_module_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_related_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_rss_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'news\' => \'news\',\n ),\n \'e_search_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n \'user\' => \'user\',\n ),\n \'e_shortcode_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'page\' => \'page\',\n \'siteinfo\' => \'siteinfo\',\n \'social\' => \'social\',\n ),\n \'shortcode_list\' => \n array (\n ),\n \'e_sitelink_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_sql_list\' => \n array (\n \'featurebox\' => \'featurebox_sql\',\n \'rss_menu\' => \'rss_sql\',\n ),\n \'e_url_list\' => \n array (\n \'contact\' => \'contact\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_user_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'email_text\' => \'\',\n \'emotepack\' => \'default\',\n \'enable_rdns\' => \'0\',\n \'enable_rdns_on_ban\' => \'0\',\n \'failed_login_limit\' => \'10\',\n \'filter_script\' => \'1\',\n \'flood_hits\' => \'100\',\n \'flood_protect\' => \'1\',\n \'flood_time\' => \'30\',\n \'flood_timeout\' => \'5\',\n \'forumdate\' => \'%a %b %d %Y, %I:%M%p\',\n \'fpwcode\' => \'0\',\n \'frontpage\' => \n array (\n 0 => \'index.php\',\n ),\n \'frontpage_force\' => \n array (\n 0 => \'\',\n ),\n \'gdpr_privacypolicy\' => \'\',\n \'gdpr_termsandconditions\' => \'\',\n \'html_abuse\' => \'1\',\n \'im_height\' => \'80\',\n \'im_path\' => \'/usr/X11R6/bin/\',\n \'im_width\' => \'80\',\n \'image_post\' => \'1\',\n \'image_post_class\' => \'0\',\n \'image_preload\' => \'0\',\n \'img_import_resize\' => \'1200x800\',\n \'inline_editing\' => \'255\',\n \'inputdate\' => \'%A, %d %b, %Y\',\n \'inputtime\' => \'%I:%M %p\',\n \'install_date\' => \'1251664949\',\n \'link_replace\' => \'0\',\n \'link_text\' => \'\',\n \'linkpage_screentip\' => \'0\',\n \'links_new_window\' => \'1\',\n \'log_page_accesses\' => \'0\',\n \'log_refertype\' => \'1\',\n \'logcode\' => \'0\',\n \'loginname_maxlength\' => \'30\',\n \'longdate\' => \'%A %d %B %Y - %H:%M:%S\',\n \'mail_pause\' => \'3\',\n \'mail_bounce\' => \'none\',\n \'mail_pausetime\' => \'4\',\n \'mail_sendstyle\' => \'texthtml\',\n \'mail_workpertick\' => \'5\',\n \'mailer\' => \'php\',\n \'bulkmailer\' => \'smtp\',\n \'main_wordwrap\' => \'\',\n \'maintainance_flag\' => \'0\',\n \'make_clickable\' => \'0\',\n \'memberlist_access\' => \'253\',\n \'membersonly_enabled\' => \'0\',\n \'membersonly_exceptions\' => \n array (\n 0 => \'\',\n ),\n \'menu_wordwrap\' => \'0\',\n \'menuconfig_list\' => \n array (\n \'login_menu\' => \n array (\n \'name\' => \'Login\',\n \'link\' => \'login_menu/config.php\',\n ),\n \'news\' => \n array (\n \'name\' => \'Newsmonths\',\n \'link\' => \'blogcalendar_menu/config.php\',\n ),\n ),\n \'membersonly_redirect\' => \'login\',\n \'meta_tag\' => \'\',\n \'multilanguage\' => \'0\',\n \'nbr_cols\' => \'1\',\n \'nested_comments\' => \'1\',\n \'news_cats\' => \'\',\n \'news_default_template\' => \'default\',\n \'news_list_limit\' => \'10\',\n \'news_newdateheader\' => \'0\',\n \'newsposts\' => \'10\',\n \'newsposts_archive\' => \'0\',\n \'newsposts_archive_title\' => \'\',\n \'noLanguageSubs\' => \'0\',\n \'null\' => \'\',\n \'old_np\' => \'0\',\n \'pageCookieExpire\' => \'84600\',\n \'passwordEncoding\' => \'0\',\n \'password_CHAP\' => \'0\',\n \'plug_installed\' => \n array (\n \'news\' => \'1.0\',\n \'page\' => \'1.0\',\n \'siteinfo\' => \'1.0\',\n \'social\' => \'1.0\',\n \'tinymce4\' => \'1.0\',\n \'rss_menu\' => \'1.3\',\n \'contact\' => \'1.0\',\n \'user\' => \'1.0\',\n \'featurebox\' => \'1.1\',\n \'gallery\' => \'1.1\',\n ),\n \'post_html\' => \'254\',\n \'post_script\' => \'254\',\n \'predefinedLoginName\' => \'\',\n \'profanity_filter\' => \'0\',\n \'profanity_replace\' => \'[censored]\',\n \'profanity_words\' => \'\',\n \'redirectsiteurl\' => \'0\',\n \'replyto_email\' => \'registration@yoursite.com\',\n \'replyto_name\' => \'e107 Website System\',\n \'resize_method\' => \'gd2\',\n \'resize_dimensions\' => \n array (\n \'news-image\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'news-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'page-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n ),\n \'search_highlight\' => \'1\',\n \'search_restrict\' => \'0\',\n \'session_lifetime\' => \'86400\',\n \'shortdate\' => \'%d %b %Y : %H:%M\',\n \'signcode\' => \'0\',\n \'signup_disallow_text\' => \'\',\n \'signup_maxip\' => \'3\',\n \'signup_option_class\' => \'0\',\n \'signup_option_customtitle\' => \'0\',\n \'signup_option_email_confirm\' => \'0\',\n \'signup_option_hideemail\' => \'0\',\n \'signup_option_image\' => \'0\',\n \'signup_option_password\' => \'2\',\n \'signup_option_realname\' => \'0\',\n \'signup_option_signature\' => \'0\',\n \'signup_pass_len\' => \'6\',\n \'signup_text\' => \'\',\n \'signup_text_after\' => \'\',\n \'siteadmin\' => \'admin\',\n \'siteadminemail\' => \'user@yoursite.com\',\n \'sitebutton\' => \'{e_IMAGE}button.png\',\n \'sitecontactinfo\' => \'[b]My Company[/b]\n13 My Address St.\nCity, State, Country\n[b]Phone:[/b] 555-555-5555\n[b]Email:[/b] sales@mydomain.com\',\n \'sitecontacts\' => \'255\',\n \'sitedescription\' => \'\',\n \'sitedisclaimer\' => \'Copyright Info. All Rights Reserved\',\n \'sitelang_init\' => \'English\',\n \'sitelanguage\' => \'English\',\n \'sitelogo\' => \'\',\n \'sitename\' => \'My Website\',\n \'sitetag\' => \'e107 Website System\',\n \'sitetheme\' => \'bootstrap3\',\n \'sitetheme_custompages\' => \n array (\n \'jumbotron_home\' => \n array (\n 0 => \'FRONTPAGE\',\n ),\n \'jumbotron_full\' => \n array (\n 0 => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n 0 => \'/news\',\n ),\n ),\n \'sitetheme_deflayout\' => \'jumbotron_sidebar_right\',\n \'sitetheme_layouts\' => \n array (\n \'jumbotron_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (home)\',\n \'default\' => \'false\',\n ),\n \'custompages\' => \'FRONTPAGE\',\n ),\n \'modern_business_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Modern Business: Home page carousel with fixed custom-menus\',\n ),\n \'@value\' => \'\',\n ),\n \'jumbotron_full\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (full-width)\',\n ),\n \'custompages\' => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (sidebar-right)\',\n \'default\' => \'true\',\n ),\n \'custompages\' => \'/news\',\n \'menuPresets\' => \n array (\n \'area\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'id\' => \'1\',\n ),\n \'menu\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'search\',\n ),\n \'@value\' => \'\',\n ),\n 1 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'news_categories\',\n ),\n \'@value\' => \'\',\n ),\n 2 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news\',\n ),\n \'@value\' => \'\',\n ),\n 3 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news2\',\n ),\n \'@value\' => \'\',\n ),\n 4 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'blogcalendar\',\n ),\n \'@value\' => \'\',\n ),\n ),\n ),\n ),\n ),\n ),\n ),\n \'sitetheme_pref\' => \'\',\n \'siteurl\' => \'/\',\n \'smiley_activate\' => \'1\',\n \'smtp_server\' => \'\',\n \'smtp_username\' => \'\',\n \'smtp_password\' => \'\',\n \'smtp_options\' => \'\',\n \'smtp_port\' => \'25\',\n \'social_login_active\' => \'0\',\n \'social_login\' => \'array()\',\n \'ssl_enabled\' => \'0\',\n \'subnews_attach\' => \'253\',\n \'subnews_class\' => \'253\',\n \'subnews_htmlarea\' => \'0\',\n \'subnews_resize\' => \'\',\n \'themecss\' => \'style.css\',\n \'thumbnail_quality\' => \'75\',\n \'timezone\' => \'UTC\',\n \'track_online\' => \'1\',\n \'ue_upgrade\' => \'1\',\n \'upload_class\' => \'255\',\n \'upload_enabled\' => \'0\',\n \'upload_maxfilesize\' => \'2M\',\n \'url_aliases\' => \n array (\n ),\n \'url_config\' => \n array (\n \'index\' => \'core\',\n \'news\' => \'core\',\n \'page\' => \'core\',\n \'search\' => \'core\',\n \'system\' => \'core\',\n \'user\' => \'core\',\n ),\n \'url_profiles\' => \n array (\n ),\n \'url_disable_pathinfo\' => \'1\',\n \'url_error_redirect\' => \'0\',\n \'url_locations\' => \n array (\n \'index\' => \n array (\n 0 => \'core\',\n ),\n \'news\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_full\',\n 2 => \'core/sef_noid\',\n 3 => \'core/sef\',\n ),\n \'page\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_chapters\',\n 2 => \'core/sef_noid\',\n 3 => \'core/sef\',\n ),\n \'search\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'system\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'user\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n ),\n \'url_main_module\' => \'\',\n \'url_modules\' => \n array (\n \'core\' => \n array (\n 0 => \'index\',\n 1 => \'news\',\n 2 => \'page\',\n 3 => \'search\',\n 4 => \'system\',\n 5 => \'user\',\n ),\n \'plugin\' => \n array (\n 0 => \'gallery\',\n ),\n \'override\' => \n array (\n ),\n ),\n \'url_sef_translate\' => \'dashl\',\n \'useGeshi\' => \'0\',\n \'use_coppa\' => \'1\',\n \'user_new_period\' => \'3\',\n \'user_reg\' => \'1\',\n \'user_reg_secureveri\' => \'1\',\n \'user_reg_veri\' => \'1\',\n \'session_handler\' => \'e107\\\\SessionHandlers\\\\DatabaseSessionHandler\',\n \'version\' => \'2.3.0\',\n \'wm_enclose\' => \'1\',\n \'wmessage_sc\' => \'0\',\n \'wysiwyg\' => \'1\',\n \'xup_enabled\' => \'1\',\n \'xurl\' => \n array (\n \'facebook\' => \'#\',\n \'twitter\' => \'#\',\n \'youtube\' => \'#\',\n \'google\' => \'#\',\n \'linkedin\' => \'\',\n \'github\' => \'\',\n \'flickr\' => \'\',\n \'instagram\' => \'\',\n \'pinterest\' => \'\',\n \'vimeo\' => \'\',\n ),\n \'xmlfeed_languagepacks\' => \'http://www.e107.org/themeupdate.php\',\n \'xmlfeed_security\' => \'http://www.e107.org/themeupdate.php\',\n \'avatar_upload\' => \'0\',\n \'photo_upload\' => \'0\',\n \'profile_rate\' => \'0\',\n \'profile_comments\' => \'0\',\n \'force_userupdate\' => \'0\',\n \'del_unv\' => \'0\',\n \'del_accu\' => \'1\',\n \'signature_access\' => \'253\',\n \'lan_global_list\' => \n array (\n \'rss_menu\' => \'rss_menu\',\n \'social\' => \'social\',\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n ),\n \'bbcode_list\' => \n array (\n ),\n \'shortcode_legacy_list\' => \n array (\n \'newforumposts_main\' => \n array (\n \'newforumposts\' => 255,\n ),\n ),\n \'e_frontpage_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_menu_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_gsitemap_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_dashboard_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'e_mailout_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'fb_active\' => \'1\',\n \'sitetheme_version\' => \'1.0\',\n \'sitetheme_glyphicons\' => \n array (\n ),\n \'e_library_list\' => \n array (\n \'gallery\' => \'gallery\',\n ),\n)'),('plugin_featurebox','array (\n \'menu_category\' => \'bootstrap3_carousel\',\n)'),('plugin_gallery','array (\n \'popup_w\' => \'800\',\n \'popup_h\' => \'800\',\n \'slideshow_category\' => \'1\',\n \'slideshow_duration\' => \'1000\',\n \'slideshow_auto\' => \'1\',\n \'slideshow_freq\' => \'4000\',\n \'slideshow_effect\' => \'scrollHorz\',\n \'perpage\' => \'12\',\n \'orderby\' => \'media_id DESC\',\n \'pp_global\' => \'0\',\n \'pp_hook\' => \'data-gal\',\n \'pp_animation_speed\' => \'fast\',\n \'pp_slideshow\' => \'5000\',\n \'pp_autoplay_slideshow\' => \'0\',\n \'pp_opacity\' => \'0.80\',\n \'pp_show_title\' => \'1\',\n \'pp_allow_resize\' => \'1\',\n \'pp_default_width\' => \'500\',\n \'pp_default_height\' => \'344\',\n \'pp_counter_separator_label\' => \'/\',\n \'pp_theme\' => \'pp_default\',\n \'pp_horizontal_padding\' => \'20\',\n \'pp_hideflash\' => \'0\',\n \'pp_wmode\' => \'opaque\',\n \'pp_autoplay\' => \'1\',\n \'pp_modal\' => \'0\',\n \'pp_deeplinking\' => \'0\',\n \'pp_overlay_gallery\' => \'0\',\n \'pp_keyboard_shortcuts\' => \'1\',\n \'pp_ie6_fallback\' => \'1\',\n)'),('theme_bootstrap3','array (\n \'branding\' => \'sitename\',\n \'nav_alignment\' => \'right\',\n \'usernav_placement\' => \'top\',\n)'); +INSERT INTO `e107_core` VALUES ('SitePrefs','array (\n \'admin_alerts_ok\' => \'1\',\n \'admin_alerts_uniquemenu\' => \'0\',\n \'admin_separate_plugins\' => \'0\',\n \'admincode\' => \'0\',\n \'admincss\' => \'css/bootstrap-dark.min.css\',\n \'adminlanguage\' => \'\',\n \'adminpwordchange\' => \'0\',\n \'adminstyle\' => \'flexpanel\',\n \'admintheme\' => \'bootstrap3\',\n \'allowCommentEdit\' => \'0\',\n \'allowEmailLogin\' => \'2\',\n \'anon_post\' => \'0\',\n \'antiflood1\' => \'1\',\n \'antiflood_timeout\' => \'10\',\n \'auth_method\' => \'\',\n \'autoban\' => \'1\',\n \'autologinpostsignup\' => \'1\',\n \'ban_date_format\' => \'%H:%M %d-%m-%y\',\n \'ban_max_online_access\' => \'100,200\',\n \'ban_retrigger\' => \'0\',\n \'cachestatus\' => \'\',\n \'check_updates\' => \'1\',\n \'comments_disabled\' => \'0\',\n \'comments_emoticons\' => \'0\',\n \'comments_engine\' => \'e107\',\n \'comments_icon\' => \'0\',\n \'comments_moderate\' => \'247\',\n \'comments_sort\' => \'desc\',\n \'compress_output\' => \'0\',\n \'contact_emailcopy\' => \'0\',\n \'contact_visibility\' => \'0\',\n \'contact_filter\' => \'\',\n \'cookie_name\' => \'e107_cookie\',\n \'core-infopanel-default\' => \n array (\n 0 => \'e-administrator\',\n 1 => \'e-cpage\',\n 2 => \'e-filemanager\',\n 3 => \'e-frontpage\',\n 4 => \'e-image\',\n 5 => \'e-mailout\',\n 6 => \'e-menus\',\n 7 => \'e-meta\',\n 8 => \'e-newspost\',\n 9 => \'e-plugin\',\n 10 => \'e-prefs\',\n 11 => \'e-links\',\n 12 => \'e-theme\',\n 13 => \'e-userclass2\',\n 14 => \'e-users\',\n 15 => \'e-wmessage\',\n ),\n \'db_updates\' => \n array (\n ),\n \'developer\' => \'0\',\n \'disable_emailcheck\' => \'0\',\n \'disallowMultiLogin\' => \'0\',\n \'display_memory_usage\' => \'0\',\n \'displayname_class\' => \'255\',\n \'displayname_maxlength\' => \'20\',\n \'displayrendertime\' => \'0\',\n \'displaysql\' => \'0\',\n \'displaythemeinfo\' => \'1\',\n \'e_admin_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_comment_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_event_list\' => \n array (\n \'news\' => \'news\',\n \'social\' => \'social\',\n ),\n \'e_featurebox_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_footer_list\' => \n array (\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_header_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_jslib_cdn\' => \'1\',\n \'e_jslib_cdn_provider\' => \'jsdelivr\',\n \'e_jslib_browser_cache\' => \'0\',\n \'e_jslib_nobcache\' => \'1\',\n \'e_jslib_nocache\' => \'1\',\n \'e_jslib_gzip\' => \'1\',\n \'e_jslib_nocombine\' => \'1\',\n \'e_jslib_core\' => \n array (\n \'prototype\' => \'none\',\n \'jquery\' => \'all\',\n ),\n \'e_jslib_plugin\' => \n array (\n ),\n \'e_jslib_theme\' => \n array (\n ),\n \'e_meta_list\' => \n array (\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_module_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_related_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_rss_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'news\' => \'news\',\n ),\n \'e_search_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n \'user\' => \'user\',\n ),\n \'e_shortcode_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'page\' => \'page\',\n \'siteinfo\' => \'siteinfo\',\n \'social\' => \'social\',\n ),\n \'shortcode_list\' => \n array (\n ),\n \'e_sitelink_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_sql_list\' => \n array (\n \'featurebox\' => \'featurebox_sql\',\n \'rss_menu\' => \'rss_sql\',\n ),\n \'e_url_list\' => \n array (\n \'contact\' => \'contact\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_user_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'email_text\' => \'\',\n \'emotepack\' => \'default\',\n \'enable_rdns\' => \'0\',\n \'enable_rdns_on_ban\' => \'0\',\n \'failed_login_limit\' => \'10\',\n \'filter_script\' => \'1\',\n \'flood_hits\' => \'100\',\n \'flood_protect\' => \'1\',\n \'flood_time\' => \'30\',\n \'flood_timeout\' => \'5\',\n \'forumdate\' => \'%a %b %d %Y, %I:%M%p\',\n \'fpwcode\' => \'0\',\n \'frontpage\' => \n array (\n 0 => \'index.php\',\n ),\n \'frontpage_force\' => \n array (\n 0 => \'\',\n ),\n \'gdpr_privacypolicy\' => \'\',\n \'gdpr_termsandconditions\' => \'\',\n \'html_abuse\' => \'1\',\n \'im_height\' => \'80\',\n \'im_path\' => \'/usr/X11R6/bin/\',\n \'im_width\' => \'80\',\n \'image_post\' => \'1\',\n \'image_post_class\' => \'0\',\n \'image_preload\' => \'0\',\n \'img_import_resize\' => \'1200x800\',\n \'inline_editing\' => \'255\',\n \'inputdate\' => \'%A, %d %b, %Y\',\n \'inputtime\' => \'%I:%M %p\',\n \'install_date\' => 1590351985,\n \'link_replace\' => \'0\',\n \'link_text\' => \'\',\n \'linkpage_screentip\' => \'0\',\n \'links_new_window\' => \'1\',\n \'log_page_accesses\' => \'0\',\n \'log_refertype\' => \'1\',\n \'logcode\' => \'0\',\n \'loginname_maxlength\' => \'30\',\n \'longdate\' => \'%A %d %B %Y - %H:%M:%S\',\n \'mail_pause\' => \'3\',\n \'mail_bounce\' => \'none\',\n \'mail_pausetime\' => \'4\',\n \'mail_sendstyle\' => \'texthtml\',\n \'mail_workpertick\' => \'5\',\n \'mailer\' => \'php\',\n \'bulkmailer\' => \'smtp\',\n \'main_wordwrap\' => \'\',\n \'maintainance_flag\' => \'0\',\n \'make_clickable\' => \'0\',\n \'memberlist_access\' => \'253\',\n \'membersonly_enabled\' => \'0\',\n \'membersonly_exceptions\' => \n array (\n 0 => \'\',\n ),\n \'menu_wordwrap\' => \'0\',\n \'menuconfig_list\' => \n array (\n \'login_menu\' => \n array (\n \'name\' => \'Login\',\n \'link\' => \'login_menu/config.php\',\n ),\n \'news\' => \n array (\n \'name\' => \'Newsmonths\',\n \'link\' => \'blogcalendar_menu/config.php\',\n ),\n ),\n \'membersonly_redirect\' => \'login\',\n \'meta_tag\' => \'\',\n \'multilanguage\' => \'0\',\n \'nbr_cols\' => \'1\',\n \'nested_comments\' => \'1\',\n \'news_cats\' => \'\',\n \'news_default_template\' => \'default\',\n \'news_list_limit\' => \'10\',\n \'news_newdateheader\' => \'0\',\n \'newsposts\' => \'10\',\n \'newsposts_archive\' => \'0\',\n \'newsposts_archive_title\' => \'\',\n \'noLanguageSubs\' => \'0\',\n \'null\' => \'\',\n \'old_np\' => \'0\',\n \'pageCookieExpire\' => \'84600\',\n \'passwordEncoding\' => 3,\n \'password_CHAP\' => \'0\',\n \'plug_installed\' => \n array (\n \'news\' => \'1.0\',\n \'page\' => \'1.0\',\n \'siteinfo\' => \'1.0\',\n \'social\' => \'1.0\',\n \'tinymce4\' => \'1.0\',\n \'rss_menu\' => \'1.3\',\n \'contact\' => \'1.0\',\n \'user\' => \'1.0\',\n \'featurebox\' => \'1.1\',\n \'gallery\' => \'1.1\',\n ),\n \'post_html\' => \'254\',\n \'post_script\' => \'254\',\n \'predefinedLoginName\' => \'\',\n \'profanity_filter\' => \'0\',\n \'profanity_replace\' => \'[censored]\',\n \'profanity_words\' => \'\',\n \'redirectsiteurl\' => \'0\',\n \'replyto_email\' => \'e107inc@gmail.com\',\n \'replyto_name\' => \'e107\',\n \'resize_method\' => \'gd2\',\n \'resize_dimensions\' => \n array (\n \'news-image\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'news-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'page-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n ),\n \'search_highlight\' => \'1\',\n \'search_restrict\' => \'0\',\n \'session_lifetime\' => \'86400\',\n \'shortdate\' => \'%d %b %Y : %H:%M\',\n \'signcode\' => \'0\',\n \'signup_disallow_text\' => \'\',\n \'signup_maxip\' => \'3\',\n \'signup_option_class\' => \'0\',\n \'signup_option_customtitle\' => \'0\',\n \'signup_option_email_confirm\' => \'0\',\n \'signup_option_hideemail\' => \'0\',\n \'signup_option_image\' => \'0\',\n \'signup_option_password\' => \'2\',\n \'signup_option_realname\' => \'0\',\n \'signup_option_signature\' => \'0\',\n \'signup_pass_len\' => \'6\',\n \'signup_text\' => \'\',\n \'signup_text_after\' => \'\',\n \'siteadmin\' => \'e107\',\n \'siteadminemail\' => \'e107inc@gmail.com\',\n \'sitebutton\' => \'{e_IMAGE}button.png\',\n \'sitecontactinfo\' => \'[b]My Company[/b]\n13 My Address St.\nCity, State, Country\n[b]Phone:[/b] 555-555-5555\n[b]Email:[/b] sales@mydomain.com\',\n \'sitecontacts\' => \'255\',\n \'sitedescription\' => \'\',\n \'sitedisclaimer\' => \'\',\n \'sitelang_init\' => \'English\',\n \'sitelanguage\' => \'English\',\n \'sitelogo\' => \'\',\n \'sitename\' => \'e107\',\n \'sitetag\' => \'e107 Website System\',\n \'sitetheme\' => \'bootstrap3\',\n \'sitetheme_custompages\' => \n array (\n \'jumbotron_home\' => \n array (\n 0 => \'FRONTPAGE\',\n ),\n \'jumbotron_full\' => \n array (\n 0 => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n 0 => \'/news\',\n ),\n ),\n \'sitetheme_deflayout\' => \'jumbotron_sidebar_right\',\n \'sitetheme_layouts\' => \n array (\n \'jumbotron_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (home)\',\n \'default\' => \'false\',\n ),\n \'custompages\' => \'FRONTPAGE\',\n ),\n \'modern_business_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Modern Business: Home page carousel with fixed custom-menus\',\n ),\n \'@value\' => \'\',\n ),\n \'jumbotron_full\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (full-width)\',\n ),\n \'custompages\' => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (sidebar-right)\',\n \'default\' => \'true\',\n ),\n \'custompages\' => \'/news\',\n \'menuPresets\' => \n array (\n \'area\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'id\' => \'1\',\n ),\n \'menu\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'search\',\n ),\n \'@value\' => \'\',\n ),\n 1 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'news_categories\',\n ),\n \'@value\' => \'\',\n ),\n 2 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news\',\n ),\n \'@value\' => \'\',\n ),\n 3 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news2\',\n ),\n \'@value\' => \'\',\n ),\n 4 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'blogcalendar\',\n ),\n \'@value\' => \'\',\n ),\n ),\n ),\n ),\n ),\n ),\n ),\n \'sitetheme_pref\' => \'\',\n \'siteurl\' => \'https://localhost/e107/\',\n \'smiley_activate\' => \'1\',\n \'smtp_server\' => \'\',\n \'smtp_username\' => \'\',\n \'smtp_password\' => \'\',\n \'smtp_options\' => \'\',\n \'smtp_port\' => \'25\',\n \'social_login_active\' => \'0\',\n \'social_login\' => \'array()\',\n \'ssl_enabled\' => \'0\',\n \'subnews_attach\' => \'253\',\n \'subnews_class\' => \'253\',\n \'subnews_htmlarea\' => \'0\',\n \'subnews_resize\' => \'\',\n \'themecss\' => \'style.css\',\n \'thumbnail_quality\' => \'75\',\n \'timezone\' => \'UTC\',\n \'track_online\' => \'1\',\n \'ue_upgrade\' => \'1\',\n \'upload_class\' => \'255\',\n \'upload_enabled\' => \'0\',\n \'upload_maxfilesize\' => \'2M\',\n \'url_aliases\' => \n array (\n ),\n \'url_config\' => \n array (\n \'index\' => \'core\',\n \'news\' => \'core\',\n \'page\' => \'core\',\n \'search\' => \'core\',\n \'system\' => \'core\',\n \'user\' => \'core\',\n \'gallery\' => \'plugin\',\n ),\n \'url_profiles\' => \n array (\n ),\n \'url_disable_pathinfo\' => \'1\',\n \'url_error_redirect\' => \'0\',\n \'url_locations\' => \n array (\n \'index\' => \n array (\n 0 => \'core\',\n ),\n \'news\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_full\',\n 2 => \'core/sef_noid\',\n 3 => \'core/sef\',\n ),\n \'page\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_noid\',\n 2 => \'core/sef\',\n 3 => \'core/sef_chapters\',\n ),\n \'search\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'system\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'user\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'gallery\' => \n array (\n 0 => \'plugin\',\n 1 => \'plugin/rewrite\',\n ),\n ),\n \'url_main_module\' => \'\',\n \'url_modules\' => \n array (\n \'core\' => \n array (\n 0 => \'index\',\n 1 => \'news\',\n 2 => \'page\',\n 3 => \'search\',\n 4 => \'system\',\n 5 => \'user\',\n ),\n \'plugin\' => \n array (\n 0 => \'gallery\',\n ),\n \'override\' => \n array (\n ),\n ),\n \'url_sef_translate\' => \'dashl\',\n \'useGeshi\' => \'0\',\n \'use_coppa\' => \'1\',\n \'user_new_period\' => \'3\',\n \'user_reg\' => \'1\',\n \'user_reg_secureveri\' => \'1\',\n \'user_reg_veri\' => \'1\',\n \'session_handler\' => \'e107\\\\SessionHandlers\\\\DatabaseSessionHandler\',\n \'version\' => \'2.3.0\',\n \'wm_enclose\' => \'1\',\n \'wmessage_sc\' => \'0\',\n \'wysiwyg\' => \'1\',\n \'xup_enabled\' => \'1\',\n \'xurl\' => \n array (\n \'facebook\' => \'#\',\n \'twitter\' => \'#\',\n \'youtube\' => \'#\',\n \'google\' => \'#\',\n \'linkedin\' => \'\',\n \'github\' => \'\',\n \'flickr\' => \'\',\n \'instagram\' => \'\',\n \'pinterest\' => \'\',\n \'vimeo\' => \'\',\n ),\n \'xmlfeed_languagepacks\' => \'http://www.e107.org/themeupdate.php\',\n \'xmlfeed_security\' => \'http://www.e107.org/themeupdate.php\',\n \'avatar_upload\' => \'0\',\n \'photo_upload\' => \'0\',\n \'profile_rate\' => \'0\',\n \'profile_comments\' => \'0\',\n \'force_userupdate\' => \'0\',\n \'del_unv\' => \'0\',\n \'del_accu\' => \'1\',\n \'signature_access\' => \'253\',\n \'lan_global_list\' => \n array (\n \'page\' => \'page\',\n \'rss_menu\' => \'rss_menu\',\n \'social\' => \'social\',\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n ),\n \'bbcode_list\' => \n array (\n ),\n \'shortcode_legacy_list\' => \n array (\n \'newforumposts_main\' => \n array (\n \'newforumposts\' => 255,\n ),\n ),\n \'e_frontpage_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_menu_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_gsitemap_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_dashboard_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'e_mailout_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'fb_active\' => \'1\',\n \'sitetheme_version\' => \'1.0\',\n \'sitetheme_glyphicons\' => \n array (\n ),\n \'e_library_list\' => \n array (\n \'gallery\' => \'gallery\',\n ),\n)'),('emote_default','array (\n \'alien!png\' => \'!alien\',\n \'amazed!png\' => \'!amazed\',\n \'angry!png\' => \'!grr !angry\',\n \'biglaugh!png\' => \'!lol\',\n \'cheesey!png\' => \':D :oD :-D\',\n \'confused!png\' => \':? :o? :-?\',\n \'cry!png\' => \'&| &-| &o| :(( !cry\',\n \'dead!png\' => \'x) xo) x-) x( xo( x-(\',\n \'dodge!png\' => \'!dodge\',\n \'frown!png\' => \':( :o( :-(\',\n \'gah!png\' => \':@ :o@ :o@\',\n \'grin!png\' => \':D :oD :-D\',\n \'heart!png\' => \'!heart\',\n \'idea!png\' => \':! :o! :-!\',\n \'ill!png\' => \'!ill\',\n \'mad!png\' => \'~:( ~:o( ~:-(\',\n \'mistrust!png\' => \'!mistrust\',\n \'neutral!png\' => \':| :o| :-|\',\n \'question!png\' => \'?!\',\n \'rolleyes!png\' => \'B) Bo) B-)\',\n \'sad!png\' => \'!sad\',\n \'shades!png\' => \'8) 8o) 8-)\',\n \'shy!png\' => \'!shy\',\n \'smile!png\' => \':) :o) :-)\',\n \'special!png\' => \'%-6\',\n \'suprised!png\' => \':O :oO :-O\',\n \'tongue!png\' => \':p :op :-p :P :oP :-P\',\n \'wink!png\' => \';) ;o) ;-)\',\n)'),('menu_pref','array (\n \'clock_caption\' => \'Date / Time\',\n \'comment_caption\' => \'Latest Comments\',\n \'comment_characters\' => \'50\',\n \'comment_display\' => \'10\',\n \'comment_postfix\' => \'[more ...]\',\n \'comment_title\' => \'0\',\n \'forum_no_characters\' => \'20\',\n \'forum_postfix\' => \'[more ...]\',\n \'forum_show_topics\' => \'1\',\n \'newforumposts_caption\' => \'Latest Forum Posts\',\n \'newforumposts_characters\' => \'50\',\n \'newforumposts_display\' => \'10\',\n \'newforumposts_postfix\' => \'[more ...]\',\n \'newforumposts_title\' => \'0\',\n \'update_menu\' => \'Update menu Settings\',\n)'),('search_prefs','array (\n \'comments_handlers\' => \n array (\n \'news\' => \n array (\n \'id\' => 0,\n \'dir\' => \'core\',\n \'class\' => \'0\',\n ),\n \'download\' => \n array (\n \'id\' => 2,\n \'dir\' => \'core\',\n \'class\' => \'0\',\n ),\n ),\n \'core_handlers\' => \n array (\n \'comments\' => \n array (\n \'class\' => \'0\',\n \'pre_title\' => \'1\',\n \'pre_title_alt\' => \'\',\n \'chars\' => \'150\',\n \'results\' => \'10\',\n \'order\' => \'2\',\n ),\n \'users\' => \n array (\n \'class\' => \'0\',\n \'pre_title\' => \'1\',\n \'pre_title_alt\' => \'\',\n \'chars\' => \'150\',\n \'results\' => \'10\',\n \'order\' => \'3\',\n ),\n ),\n \'google\' => \'0\',\n \'multisearch\' => \'1\',\n \'mysql_sort\' => \'1\',\n \'php_limit\' => \'\',\n \'relevance\' => \'0\',\n \'selector\' => \'2\',\n \'time_restrict\' => \'0\',\n \'time_secs\' => \'60\',\n \'user_select\' => \'1\',\n)'),('notify_prefs','array (\n \'event\' => \n array (\n \'login\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'logout\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_signup_submitted\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_signup_activated\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_ban_flood\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_news_submit\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_created\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_updated\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_deleted\' => \n array (\n \'class\' => \'255\',\n \'email\' => \'\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_xup_login\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_xup_signup\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_ban_failed_login\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_profile_display\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_password_update\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_user_created\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_user_activated\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'admin_news_notify\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'maildone\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n \'user_file_upload\' => \n array (\n \'class\' => \'255\',\n \'include\' => \'\',\n \'legacy\' => \'0\',\n ),\n ),\n)'),('SitePrefs_Backup','array (\n \'admin_alerts_ok\' => \'1\',\n \'admin_alerts_uniquemenu\' => \'0\',\n \'admin_separate_plugins\' => \'0\',\n \'admincode\' => \'0\',\n \'admincss\' => \'admin_dark.css\',\n \'adminlanguage\' => \'\',\n \'adminpwordchange\' => \'0\',\n \'adminstyle\' => \'flexpanel\',\n \'admintheme\' => \'bootstrap3\',\n \'allowCommentEdit\' => \'0\',\n \'allowEmailLogin\' => \'2\',\n \'anon_post\' => \'0\',\n \'antiflood1\' => \'1\',\n \'antiflood_timeout\' => \'10\',\n \'auth_method\' => \'\',\n \'autoban\' => \'1\',\n \'autologinpostsignup\' => \'1\',\n \'ban_date_format\' => \'%H:%M %d-%m-%y\',\n \'ban_max_online_access\' => \'100,200\',\n \'ban_retrigger\' => \'0\',\n \'cachestatus\' => \'\',\n \'check_updates\' => \'1\',\n \'comments_disabled\' => \'0\',\n \'comments_emoticons\' => \'0\',\n \'comments_engine\' => \'e107\',\n \'comments_icon\' => \'0\',\n \'comments_moderate\' => \'247\',\n \'comments_sort\' => \'desc\',\n \'compress_output\' => \'0\',\n \'contact_emailcopy\' => \'0\',\n \'contact_visibility\' => \'0\',\n \'contact_filter\' => \'\',\n \'cookie_name\' => \'e107cookie\',\n \'core-infopanel-default\' => \n array (\n 0 => \'e-administrator\',\n 1 => \'e-cpage\',\n 2 => \'e-filemanager\',\n 3 => \'e-frontpage\',\n 4 => \'e-image\',\n 5 => \'e-mailout\',\n 6 => \'e-menus\',\n 7 => \'e-meta\',\n 8 => \'e-newspost\',\n 9 => \'e-plugin\',\n 10 => \'e-prefs\',\n 11 => \'e-links\',\n 12 => \'e-theme\',\n 13 => \'e-userclass2\',\n 14 => \'e-users\',\n 15 => \'e-wmessage\',\n ),\n \'db_updates\' => \n array (\n ),\n \'developer\' => \'0\',\n \'disable_emailcheck\' => \'0\',\n \'disallowMultiLogin\' => \'0\',\n \'display_memory_usage\' => \'0\',\n \'displayname_class\' => \'255\',\n \'displayname_maxlength\' => \'20\',\n \'displayrendertime\' => \'0\',\n \'displaysql\' => \'0\',\n \'displaythemeinfo\' => \'1\',\n \'e_admin_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_comment_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_event_list\' => \n array (\n \'news\' => \'news\',\n \'social\' => \'social\',\n ),\n \'e_featurebox_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_footer_list\' => \n array (\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_header_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'tinymce4\' => \'tinymce4\',\n ),\n \'e_jslib_cdn\' => \'1\',\n \'e_jslib_cdn_provider\' => \'jsdelivr\',\n \'e_jslib_browser_cache\' => \'0\',\n \'e_jslib_nobcache\' => \'1\',\n \'e_jslib_nocache\' => \'1\',\n \'e_jslib_gzip\' => \'1\',\n \'e_jslib_nocombine\' => \'1\',\n \'e_jslib_core\' => \n array (\n \'prototype\' => \'none\',\n \'jquery\' => \'all\',\n ),\n \'e_jslib_plugin\' => \n array (\n ),\n \'e_jslib_theme\' => \n array (\n ),\n \'e_meta_list\' => \n array (\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_module_list\' => \n array (\n \'social\' => \'social\',\n ),\n \'e_related_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_rss_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'news\' => \'news\',\n ),\n \'e_search_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n \'user\' => \'user\',\n ),\n \'e_shortcode_list\' => \n array (\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n \'page\' => \'page\',\n \'siteinfo\' => \'siteinfo\',\n \'social\' => \'social\',\n ),\n \'shortcode_list\' => \n array (\n ),\n \'e_sitelink_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_sql_list\' => \n array (\n \'featurebox\' => \'featurebox_sql\',\n \'rss_menu\' => \'rss_sql\',\n ),\n \'e_url_list\' => \n array (\n \'contact\' => \'contact\',\n \'gallery\' => \'gallery\',\n \'news\' => \'news\',\n \'rss_menu\' => \'rss_menu\',\n ),\n \'e_user_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'email_text\' => \'\',\n \'emotepack\' => \'default\',\n \'enable_rdns\' => \'0\',\n \'enable_rdns_on_ban\' => \'0\',\n \'failed_login_limit\' => \'10\',\n \'filter_script\' => \'1\',\n \'flood_hits\' => \'100\',\n \'flood_protect\' => \'1\',\n \'flood_time\' => \'30\',\n \'flood_timeout\' => \'5\',\n \'forumdate\' => \'%a %b %d %Y, %I:%M%p\',\n \'fpwcode\' => \'0\',\n \'frontpage\' => \n array (\n 0 => \'index.php\',\n ),\n \'frontpage_force\' => \n array (\n 0 => \'\',\n ),\n \'gdpr_privacypolicy\' => \'\',\n \'gdpr_termsandconditions\' => \'\',\n \'html_abuse\' => \'1\',\n \'im_height\' => \'80\',\n \'im_path\' => \'/usr/X11R6/bin/\',\n \'im_width\' => \'80\',\n \'image_post\' => \'1\',\n \'image_post_class\' => \'0\',\n \'image_preload\' => \'0\',\n \'img_import_resize\' => \'1200x800\',\n \'inline_editing\' => \'255\',\n \'inputdate\' => \'%A, %d %b, %Y\',\n \'inputtime\' => \'%I:%M %p\',\n \'install_date\' => \'1251664949\',\n \'link_replace\' => \'0\',\n \'link_text\' => \'\',\n \'linkpage_screentip\' => \'0\',\n \'links_new_window\' => \'1\',\n \'log_page_accesses\' => \'0\',\n \'log_refertype\' => \'1\',\n \'logcode\' => \'0\',\n \'loginname_maxlength\' => \'30\',\n \'longdate\' => \'%A %d %B %Y - %H:%M:%S\',\n \'mail_pause\' => \'3\',\n \'mail_bounce\' => \'none\',\n \'mail_pausetime\' => \'4\',\n \'mail_sendstyle\' => \'texthtml\',\n \'mail_workpertick\' => \'5\',\n \'mailer\' => \'php\',\n \'bulkmailer\' => \'smtp\',\n \'main_wordwrap\' => \'\',\n \'maintainance_flag\' => \'0\',\n \'make_clickable\' => \'0\',\n \'memberlist_access\' => \'253\',\n \'membersonly_enabled\' => \'0\',\n \'membersonly_exceptions\' => \n array (\n 0 => \'\',\n ),\n \'menu_wordwrap\' => \'0\',\n \'menuconfig_list\' => \n array (\n \'login_menu\' => \n array (\n \'name\' => \'Login\',\n \'link\' => \'login_menu/config.php\',\n ),\n \'news\' => \n array (\n \'name\' => \'Newsmonths\',\n \'link\' => \'blogcalendar_menu/config.php\',\n ),\n ),\n \'membersonly_redirect\' => \'login\',\n \'meta_tag\' => \'\',\n \'multilanguage\' => \'0\',\n \'nbr_cols\' => \'1\',\n \'nested_comments\' => \'1\',\n \'news_cats\' => \'\',\n \'news_default_template\' => \'default\',\n \'news_list_limit\' => \'10\',\n \'news_newdateheader\' => \'0\',\n \'newsposts\' => \'10\',\n \'newsposts_archive\' => \'0\',\n \'newsposts_archive_title\' => \'\',\n \'noLanguageSubs\' => \'0\',\n \'null\' => \'\',\n \'old_np\' => \'0\',\n \'pageCookieExpire\' => \'84600\',\n \'passwordEncoding\' => \'0\',\n \'password_CHAP\' => \'0\',\n \'plug_installed\' => \n array (\n \'news\' => \'1.0\',\n \'page\' => \'1.0\',\n \'siteinfo\' => \'1.0\',\n \'social\' => \'1.0\',\n \'tinymce4\' => \'1.0\',\n \'rss_menu\' => \'1.3\',\n \'contact\' => \'1.0\',\n \'user\' => \'1.0\',\n \'featurebox\' => \'1.1\',\n \'gallery\' => \'1.1\',\n ),\n \'post_html\' => \'254\',\n \'post_script\' => \'254\',\n \'predefinedLoginName\' => \'\',\n \'profanity_filter\' => \'0\',\n \'profanity_replace\' => \'[censored]\',\n \'profanity_words\' => \'\',\n \'redirectsiteurl\' => \'0\',\n \'replyto_email\' => \'registration@yoursite.com\',\n \'replyto_name\' => \'e107 Website System\',\n \'resize_method\' => \'gd2\',\n \'resize_dimensions\' => \n array (\n \'news-image\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'news-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n \'page-bbcode\' => \n array (\n \'w\' => \'300\',\n \'h\' => \'300\',\n ),\n ),\n \'search_highlight\' => \'1\',\n \'search_restrict\' => \'0\',\n \'session_lifetime\' => \'86400\',\n \'shortdate\' => \'%d %b %Y : %H:%M\',\n \'signcode\' => \'0\',\n \'signup_disallow_text\' => \'\',\n \'signup_maxip\' => \'3\',\n \'signup_option_class\' => \'0\',\n \'signup_option_customtitle\' => \'0\',\n \'signup_option_email_confirm\' => \'0\',\n \'signup_option_hideemail\' => \'0\',\n \'signup_option_image\' => \'0\',\n \'signup_option_password\' => \'2\',\n \'signup_option_realname\' => \'0\',\n \'signup_option_signature\' => \'0\',\n \'signup_pass_len\' => \'6\',\n \'signup_text\' => \'\',\n \'signup_text_after\' => \'\',\n \'siteadmin\' => \'admin\',\n \'siteadminemail\' => \'user@yoursite.com\',\n \'sitebutton\' => \'{e_IMAGE}button.png\',\n \'sitecontactinfo\' => \'[b]My Company[/b]\n13 My Address St.\nCity, State, Country\n[b]Phone:[/b] 555-555-5555\n[b]Email:[/b] sales@mydomain.com\',\n \'sitecontacts\' => \'255\',\n \'sitedescription\' => \'\',\n \'sitedisclaimer\' => \'Copyright Info. All Rights Reserved\',\n \'sitelang_init\' => \'English\',\n \'sitelanguage\' => \'English\',\n \'sitelogo\' => \'\',\n \'sitename\' => \'My Website\',\n \'sitetag\' => \'e107 Website System\',\n \'sitetheme\' => \'bootstrap3\',\n \'sitetheme_custompages\' => \n array (\n \'jumbotron_home\' => \n array (\n 0 => \'FRONTPAGE\',\n ),\n \'jumbotron_full\' => \n array (\n 0 => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n 0 => \'/news\',\n ),\n ),\n \'sitetheme_deflayout\' => \'jumbotron_sidebar_right\',\n \'sitetheme_layouts\' => \n array (\n \'jumbotron_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (home)\',\n \'default\' => \'false\',\n ),\n \'custompages\' => \'FRONTPAGE\',\n ),\n \'modern_business_home\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Modern Business: Home page carousel with fixed custom-menus\',\n ),\n \'@value\' => \'\',\n ),\n \'jumbotron_full\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (full-width)\',\n ),\n \'custompages\' => \'forum\',\n ),\n \'jumbotron_sidebar_right\' => \n array (\n \'@attributes\' => \n array (\n \'title\' => \'Jumbotron (sidebar-right)\',\n \'default\' => \'true\',\n ),\n \'custompages\' => \'/news\',\n \'menuPresets\' => \n array (\n \'area\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'id\' => \'1\',\n ),\n \'menu\' => \n array (\n 0 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'search\',\n ),\n \'@value\' => \'\',\n ),\n 1 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'news_categories\',\n ),\n \'@value\' => \'\',\n ),\n 2 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news\',\n ),\n \'@value\' => \'\',\n ),\n 3 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'other_news2\',\n ),\n \'@value\' => \'\',\n ),\n 4 => \n array (\n \'@attributes\' => \n array (\n \'name\' => \'blogcalendar\',\n ),\n \'@value\' => \'\',\n ),\n ),\n ),\n ),\n ),\n ),\n ),\n \'sitetheme_pref\' => \'\',\n \'siteurl\' => \'/\',\n \'smiley_activate\' => \'1\',\n \'smtp_server\' => \'\',\n \'smtp_username\' => \'\',\n \'smtp_password\' => \'\',\n \'smtp_options\' => \'\',\n \'smtp_port\' => \'25\',\n \'social_login_active\' => \'0\',\n \'social_login\' => \'array()\',\n \'ssl_enabled\' => \'0\',\n \'subnews_attach\' => \'253\',\n \'subnews_class\' => \'253\',\n \'subnews_htmlarea\' => \'0\',\n \'subnews_resize\' => \'\',\n \'themecss\' => \'style.css\',\n \'thumbnail_quality\' => \'75\',\n \'timezone\' => \'UTC\',\n \'track_online\' => \'1\',\n \'ue_upgrade\' => \'1\',\n \'upload_class\' => \'255\',\n \'upload_enabled\' => \'0\',\n \'upload_maxfilesize\' => \'2M\',\n \'url_aliases\' => \n array (\n ),\n \'url_config\' => \n array (\n \'index\' => \'core\',\n \'news\' => \'core\',\n \'page\' => \'core\',\n \'search\' => \'core\',\n \'system\' => \'core\',\n \'user\' => \'core\',\n ),\n \'url_profiles\' => \n array (\n ),\n \'url_disable_pathinfo\' => \'1\',\n \'url_error_redirect\' => \'0\',\n \'url_locations\' => \n array (\n \'index\' => \n array (\n 0 => \'core\',\n ),\n \'news\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_full\',\n 2 => \'core/sef_noid\',\n 3 => \'core/sef\',\n ),\n \'page\' => \n array (\n 0 => \'core\',\n 1 => \'core/sef_chapters\',\n 2 => \'core/sef_noid\',\n 3 => \'core/sef\',\n ),\n \'search\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'system\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n \'user\' => \n array (\n 0 => \'core\',\n 1 => \'core/rewrite\',\n ),\n ),\n \'url_main_module\' => \'\',\n \'url_modules\' => \n array (\n \'core\' => \n array (\n 0 => \'index\',\n 1 => \'news\',\n 2 => \'page\',\n 3 => \'search\',\n 4 => \'system\',\n 5 => \'user\',\n ),\n \'plugin\' => \n array (\n 0 => \'gallery\',\n ),\n \'override\' => \n array (\n ),\n ),\n \'url_sef_translate\' => \'dashl\',\n \'useGeshi\' => \'0\',\n \'use_coppa\' => \'1\',\n \'user_new_period\' => \'3\',\n \'user_reg\' => \'1\',\n \'user_reg_secureveri\' => \'1\',\n \'user_reg_veri\' => \'1\',\n \'session_handler\' => \'e107\\\\SessionHandlers\\\\DatabaseSessionHandler\',\n \'version\' => \'2.3.0\',\n \'wm_enclose\' => \'1\',\n \'wmessage_sc\' => \'0\',\n \'wysiwyg\' => \'1\',\n \'xup_enabled\' => \'1\',\n \'xurl\' => \n array (\n \'facebook\' => \'#\',\n \'twitter\' => \'#\',\n \'youtube\' => \'#\',\n \'google\' => \'#\',\n \'linkedin\' => \'\',\n \'github\' => \'\',\n \'flickr\' => \'\',\n \'instagram\' => \'\',\n \'pinterest\' => \'\',\n \'vimeo\' => \'\',\n ),\n \'xmlfeed_languagepacks\' => \'http://www.e107.org/themeupdate.php\',\n \'xmlfeed_security\' => \'http://www.e107.org/themeupdate.php\',\n \'avatar_upload\' => \'0\',\n \'photo_upload\' => \'0\',\n \'profile_rate\' => \'0\',\n \'profile_comments\' => \'0\',\n \'force_userupdate\' => \'0\',\n \'del_unv\' => \'0\',\n \'del_accu\' => \'1\',\n \'signature_access\' => \'253\',\n \'lan_global_list\' => \n array (\n \'rss_menu\' => \'rss_menu\',\n \'social\' => \'social\',\n \'featurebox\' => \'featurebox\',\n \'gallery\' => \'gallery\',\n ),\n \'bbcode_list\' => \n array (\n ),\n \'shortcode_legacy_list\' => \n array (\n \'newforumposts_main\' => \n array (\n \'newforumposts\' => 255,\n ),\n ),\n \'e_frontpage_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_menu_list\' => \n array (\n \'news\' => \'news\',\n \'page\' => \'page\',\n ),\n \'e_gsitemap_list\' => \n array (\n \'news\' => \'news\',\n ),\n \'e_dashboard_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'e_mailout_list\' => \n array (\n \'user\' => \'user\',\n ),\n \'fb_active\' => \'1\',\n \'sitetheme_version\' => \'1.0\',\n \'sitetheme_glyphicons\' => \n array (\n ),\n \'e_library_list\' => \n array (\n \'gallery\' => \'gallery\',\n ),\n)'),('plugin_featurebox','array (\n \'menu_category\' => \'bootstrap3_carousel\',\n)'),('plugin_gallery','array (\n \'popup_w\' => \'800\',\n \'popup_h\' => \'800\',\n \'slideshow_category\' => \'1\',\n \'slideshow_duration\' => \'1000\',\n \'slideshow_auto\' => \'1\',\n \'slideshow_freq\' => \'4000\',\n \'slideshow_effect\' => \'scrollHorz\',\n \'perpage\' => \'12\',\n \'orderby\' => \'media_id DESC\',\n \'pp_global\' => \'0\',\n \'pp_hook\' => \'data-gal\',\n \'pp_animation_speed\' => \'fast\',\n \'pp_slideshow\' => \'5000\',\n \'pp_autoplay_slideshow\' => \'0\',\n \'pp_opacity\' => \'0.80\',\n \'pp_show_title\' => \'1\',\n \'pp_allow_resize\' => \'1\',\n \'pp_default_width\' => \'500\',\n \'pp_default_height\' => \'344\',\n \'pp_counter_separator_label\' => \'/\',\n \'pp_theme\' => \'pp_default\',\n \'pp_horizontal_padding\' => \'20\',\n \'pp_hideflash\' => \'0\',\n \'pp_wmode\' => \'opaque\',\n \'pp_autoplay\' => \'1\',\n \'pp_modal\' => \'0\',\n \'pp_deeplinking\' => \'0\',\n \'pp_overlay_gallery\' => \'0\',\n \'pp_keyboard_shortcuts\' => \'1\',\n \'pp_ie6_fallback\' => \'1\',\n)'),('theme_bootstrap3','array (\n \'branding\' => \'sitename\',\n \'nav_alignment\' => \'right\',\n \'usernav_placement\' => \'top\',\n)'); /*!40000 ALTER TABLE `e107_core` ENABLE KEYS */; UNLOCK TABLES;