From 3cdb9a8fdc13ceb9de7a32b6fd989b76bafb45af Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Wed, 08 Jun 2011 04:58:27 -0400 Subject: [PATCH] Fixed: FS#1642 - Adding new content filters breaks header_checks, body_checks etc. --- interface/lib/app.inc.php | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php index 76a3cd2..4de9904 100644 --- a/interface/lib/app.inc.php +++ b/interface/lib/app.inc.php @@ -56,6 +56,15 @@ //* Start the session if($this->_conf['start_session'] == true) { + + $this->uses('session'); + session_set_save_handler( array($this->session, 'open'), + array($this->session, 'close'), + array($this->session, 'read'), + array($this->session, 'write'), + array($this->session, 'destroy'), + array($this->session, 'gc')); + session_start(); //* Initialize session variables @@ -64,7 +73,7 @@ if(empty($_SESSION['s']['language'])) $_SESSION['s']['language'] = $conf['language']; } - $this->uses('auth,plugin'); + $this->uses('auth,plugin,functions'); } public function uses($classes) { @@ -154,7 +163,7 @@ //* Load module wordbook, if it exists if(isset($_SESSION['s']['module']['name']) && isset($_SESSION['s']['language'])) { $lng_file = '/web/'.$_SESSION['s']['module']['name'].'/lib/lang/'.$_SESSION['s']['language'].'.lng'; - if(!file_exists(ISPC_ROOT_PATH.$lng_file)) $lng_file = '/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng'; + if(!file_exists(ISPC_ROOT_PATH.'/'.$lng_file)) $lng_file = '/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng'; $this->load_language_file($lng_file); } $this->_language_inc = 1; @@ -174,7 +183,7 @@ $filename = ISPC_ROOT_PATH.'/'.$filename; if(substr($filename,-4) != '.lng') $this->error('Language file has wrong extension.'); if(file_exists($filename)) { - @include_once($filename); + @include($filename); if(is_array($wb)) { if(is_array($this->_wb)) { $this->_wb = array_merge($this->_wb,$wb); -- Gitblit v1.9.1