mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
Mass changes (work in progress - related beta testing and feedback highly appreciated)
- New session handler - appropriate changes made at important core areas (language handler, chap login related) - Overall better COOKIE handling (on both server and client side) - cookies respect now installation path, domain (based on language settings) - Introduced Security Levels (see session handler constants/docs), security level option could be added to install routine now - Security level printed on Administration info panel, appropriate lans added (subject of discussion) - e_TOKEN security part of session handling now - logic depends depends on security level (TODO - POST_REFERER removal) - e_print, e_dump debug functions added (for quick and nice debug view via site output), native overall FirePhp support planned - a lot of minor bugfixes
This commit is contained in:
15
install_.php
15
install_.php
@@ -160,7 +160,13 @@ $e107_paths = array();
|
||||
$e107 = e107::getInstance();
|
||||
$e107->initInstall($e107_paths, realpath(dirname(__FILE__)));
|
||||
unset($e107_paths);
|
||||
session_start();
|
||||
|
||||
// NEW - session handler
|
||||
require_once(e_HANDLER.'session_handler.php');
|
||||
define('e_SECURITY_LEVEL', e_session::SECURITY_LEVEL_NONE);
|
||||
define('e_COOKIE', 'e107install');
|
||||
e107::getSession(); // starts session, creates default namespace
|
||||
// session_start();
|
||||
|
||||
function include_lan($path, $force = false)
|
||||
{
|
||||
@@ -199,7 +205,7 @@ class e_install
|
||||
var $required = ""; //TODO - use for highlighting required fields with css/js.
|
||||
var $logFile; // Name of log file, empty string if logging disabled
|
||||
var $dbLink = NULL; // DB link - needed for PHP5.3 bug
|
||||
|
||||
var $session = null;
|
||||
|
||||
// public function __construct()
|
||||
function e_install()
|
||||
@@ -208,6 +214,9 @@ class e_install
|
||||
define('USERID', 1);
|
||||
define('USER', true);
|
||||
define('ADMIN', true);
|
||||
|
||||
// session instance
|
||||
$this->session = e107::getSession();
|
||||
|
||||
$this->logFile = '';
|
||||
if (MAKE_INSTALL_LOG)
|
||||
@@ -1357,7 +1366,7 @@ class e_install
|
||||
return nl2br(LANINS_060)."<br /><br />";
|
||||
}
|
||||
|
||||
preg_match_all("/create(.*?)(?:myisam|innodb);/si", $sql_data, $result );
|
||||
preg_match_all("/create(.*?)(?:myisam|innodb);/si", $sql_data, $result );
|
||||
|
||||
// Force UTF-8 again
|
||||
$this->dbqry('SET NAMES `utf8`');
|
||||
|
Reference in New Issue
Block a user