| 134 |
$subdir = dirname($_SERVER['PHP_SELF']); |
$subdir = dirname($_SERVER['PHP_SELF']); |
| 135 |
if ($subdir == '/' OR $subdir == '\\') $subdir = ''; |
if ($subdir == '/' OR $subdir == '\\') $subdir = ''; |
| 136 |
$this->mosConfig_live_site = 'http://'.$_SERVER['SERVER_NAME'].$subdir; |
$this->mosConfig_live_site = 'http://'.$_SERVER['SERVER_NAME'].$subdir; |
| 137 |
|
//$this->mosConfig_live_site = str_replace('/administrator', '', 'http://'.$_SERVER['HTTP_HOST'].'/'.$subdir); |
| 138 |
|
|
| 139 |
preg_match_all('/\$this\-\>([A-Za-z_][A-Za-z0-9_]*)/', $code, $matches); |
preg_match_all('/\$this\-\>([A-Za-z_][A-Za-z0-9_]*)/', $code, $matches); |
| 140 |
foreach ($matches[1] as $match) $GLOBALS[$match] = $this->$match; |
foreach ($matches[1] as $match) $GLOBALS[$match] = $this->$match; |
| 141 |
if (!isset($this->mosConfig_register_globals)) { |
if (!isset($this->mosConfig_register_globals)) { |
| 164 |
|
|
| 165 |
function fixLanguage () { |
function fixLanguage () { |
| 166 |
|
|
| 167 |
//require_once($this->mosConfig_absolute_path.'/includes/phpgettext/error.php'); |
require_once($this->mosConfig_absolute_path.'/includes/phpgettext/error.php'); |
| 168 |
require_once($this->mosConfig_absolute_path.'/includes/phpgettext/phpgettext.class.php'); |
require_once($this->mosConfig_absolute_path.'/includes/phpgettext/phpgettext.class.php'); |
| 169 |
|
|
| 170 |
DEFINE('_ISO','charset=utf-8'); |
DEFINE('_ISO','charset=utf-8'); |
| 195 |
$domain = 'administrator'; |
$domain = 'administrator'; |
| 196 |
$textdomain = $this->mosConfig_absolute_path.'/languages'; |
$textdomain = $this->mosConfig_absolute_path.'/languages'; |
| 197 |
$gettext =& phpgettext(); |
$gettext =& phpgettext(); |
| 198 |
$gettext->debug = 0; |
$gettext->debug = 1; |
| 199 |
$gettext->has_gettext = false; |
$gettext->has_gettext = false; |
| 200 |
$gettext->setlocale($this->mosConfig_locale);; |
$gettext->setlocale($this->mosConfig_locale);; |
| 201 |
$gettext->bindtextdomain($domain, $textdomain); |
$gettext->bindtextdomain($domain, $textdomain); |
| 2163 |
$image_path = $configuration->rootPath().'/images/stories'; |
$image_path = $configuration->rootPath().'/images/stories'; |
| 2164 |
$image_size = 100; |
$image_size = 100; |
| 2165 |
|
|
| 2166 |
//$database = mamboDatabase::getInstance(); |
$database = mamboDatabase::getInstance(); |
| 2167 |
$database->debug(mamboCore::get('mosConfig_debug')); |
$database->debug(mamboCore::get('mosConfig_debug')); |
| 2168 |
|
|
| 2169 |
if (!$adminside) { |
if (!$adminside) { |