| 218 |
function mamboCore () { |
function mamboCore () { |
| 219 |
global $adminside; |
global $adminside; |
| 220 |
$this->init_errorlevel = error_reporting(0); |
$this->init_errorlevel = error_reporting(0); |
| 221 |
$this->rootPath = str_replace('\\', '/', str_replace('includes', '', realpath(dirname(__FILE__)))); |
$this->rootPath = str_replace('\\', '/', realpath(str_replace('includes', '', dirname(__FILE__)))); |
| 222 |
$this->checkConfig(); |
$this->checkConfig(); |
| 223 |
$this->Itemid = mosGetParam($_REQUEST, 'Itemid', 0); |
$this->Itemid = mosGetParam($_REQUEST, 'Itemid', 0); |
| 224 |
$this->getConfig(); |
$this->getConfig(); |
| 420 |
$this->mosConfig_lang = mosGetParam($_POST, 'setLanguage', $this->mosConfig_lang); |
$this->mosConfig_lang = mosGetParam($_POST, 'setLanguage', $this->mosConfig_lang); |
| 421 |
|
|
| 422 |
|
|
| 423 |
$language =& mamboLanguage::getInstance($this->mosConfig_lang, $this->rootPath.'/language/'); |
$language =& new mamboLanguage($this->mosConfig_lang, $this->rootPath.'/language/'); |
| 424 |
$languages = $language->getLanguages(); |
$languages = $language->getLanguages(); |
| 425 |
$charset = $language->get('charset'); |
$charset = $language->get('charset'); |
| 426 |
$dateformat = $language->get('dateformat'); |
$dateformat = $language->get('dateformat'); |
| 429 |
if (!defined('_DATE_FORMAT_LC')) DEFINE('_DATE_FORMAT_LC', $dateformat); //Uses PHP's strftime Command Format |
if (!defined('_DATE_FORMAT_LC')) DEFINE('_DATE_FORMAT_LC', $dateformat); //Uses PHP's strftime Command Format |
| 430 |
if (!defined('_DATE_FORMAT_LC2')) DEFINE('_DATE_FORMAT_LC2', $dateformat); |
if (!defined('_DATE_FORMAT_LC2')) DEFINE('_DATE_FORMAT_LC2', $dateformat); |
| 431 |
|
|
| 432 |
$gettext =& phpgettext(); |
|
|
$gettext->debug = $this->mosConfig_locale_debug; |
|
|
$gettext->has_gettext = $this->mosConfig_locale_use_gettext; |
|
|
$gettext->setlocale($this->mosConfig_lang); |
|
| 433 |
} |
} |
| 434 |
|
|
| 435 |
/** |
/** |