| | |
| | | public function __construct() |
| | | { |
| | | global $conf; |
| | | |
| | | if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_REQUEST['s']) || isset($_REQUEST['s_old']) || isset($_REQUEST['conf'])) { |
| | | die('Internal Error: var override attempt detected'); |
| | | } |
| | | |
| | | $this->_conf = $conf; |
| | | if($this->_conf['start_db'] == true) { |
| | | $this->load('db_'.$this->_conf['db_type']); |
| | |
| | | if(!file_exists($lng_file)) $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng'; |
| | | @include_once($lng_file); |
| | | } |
| | | $this->_wb = $wb; |
| | | if(isset($wb)) $this->_wb = $wb; |
| | | $this->_language_inc = 1; |
| | | } |
| | | if(!empty($this->_wb[$text])) { |