| 62 |
var $subdirectory; |
var $subdirectory; |
| 63 |
var $current_user = null; |
var $current_user = null; |
| 64 |
var $do_gzip_compress = false; |
var $do_gzip_compress = false; |
| 65 |
|
var $init_errorlevel = 0; |
| 66 |
|
|
| 67 |
function mamboCore () { |
function mamboCore () { |
| 68 |
global $adminside; |
global $adminside; |
| 69 |
error_reporting(0); |
$this->init_errorlevel = error_reporting(0); |
| 70 |
$this->rootPath = str_replace('\\', '/', dirname(__FILE__)); |
$this->rootPath = str_replace('\\', '/', dirname(__FILE__)); |
| 71 |
$this->checkConfig(); |
$this->checkConfig(); |
| 72 |
$this->Itemid = mosGetParam($_REQUEST, 'Itemid', 0); |
$this->Itemid = mosGetParam($_REQUEST, 'Itemid', 0); |
| 73 |
$this->getConfig(); |
$this->getConfig(); |
| 74 |
$this->fixLanguage(); |
$this->fixLanguage(); |
| 75 |
@set_magic_quotes_runtime( 0 ); |
@set_magic_quotes_runtime( 0 ); |
| 76 |
if (@$this->mosConfig_error_reporting === 0) error_reporting(0); |
if (@$this->mosConfig_error_reporting > 0 OR @$this->mosConfig_error_reporting ===0) error_reporting($this->mosConfig_error_reporting); |
| 77 |
elseif (@$this->mosConfig_error_reporting > 0) error_reporting($this->mosConfig_error_reporting); |
else error_reporting($this->init_errorlevel); |
|
|
|
| 78 |
} |
} |
| 79 |
|
|
| 80 |
function &getMamboCore () { |
function &getMamboCore () { |
| 614 |
else $img = '>'; |
else $img = '>'; |
| 615 |
} |
} |
| 616 |
foreach ($this->_names as $i=>$name) { |
foreach ($this->_names as $i=>$name) { |
|
/* |
|
| 617 |
if ($i === $last) $result .= "$name</span>"; |
if ($i === $last) $result .= "$name</span>"; |
| 618 |
else { |
else { |
| 619 |
$sefurl = sefRelToAbs($this->_urls[$i]); |
$sefurl = sefRelToAbs($this->_urls[$i]); |
| 620 |
$result .= "<a href='$sefurl' class='pathway'>$name</a>"; |
$result .= "<a href='$sefurl' class='pathway'>$name</a>"; |
| 621 |
$result .= " $img "; |
$result .= " $img "; |
| 622 |
} |
} |
|
*/ |
|
|
if ($config->mosConfig_sef == '1') { |
|
|
$sefurl = sefRelToAbs($this->_urls[$i]); |
|
|
} else { |
|
|
$sefurl = str_replace('&', '&', $this->_urls[$i]); |
|
|
} |
|
|
$result .= "<a href='$sefurl' class='pathway'>$name</a>"; |
|
|
$result .= " $img "; |
|
| 623 |
} |
} |
| 624 |
$customs = $mainframe->getCustomPathWay(); |
$customs = $mainframe->getCustomPathWay(); |
| 625 |
foreach ($customs as $custom) $result .= $custom; |
foreach ($customs as $custom) $result .= $custom; |
| 2587 |
require_once( $configuration->rootPath() . '/components/com_content/content.class.php' ); |
require_once( $configuration->rootPath() . '/components/com_content/content.class.php' ); |
| 2588 |
$acl = new gacl_api(); |
$acl = new gacl_api(); |
| 2589 |
|
|
|
|
|
| 2590 |
/** Get the component handler */ |
/** Get the component handler */ |
| 2591 |
require_once( $configuration->rootPath() . '/includes/cmtclasses.php' ); |
require_once( $configuration->rootPath() . '/includes/cmtclasses.php' ); |
| 2592 |
$c_handler =& mosComponentHandler::getInstance(); |
$c_handler =& mosComponentHandler::getInstance(); |
| 2598 |
$menuhandler->setPathway($Itemid); |
$menuhandler->setPathway($Itemid); |
| 2599 |
if ($ret) { |
if ($ret) { |
| 2600 |
$gettext->textdomain(substr($option, 4)); // get the component lang file |
$gettext->textdomain(substr($option, 4)); // get the component lang file |
| 2601 |
require_once( $path ); |
require ($path); |
| 2602 |
$gettext->textdomain($frontdomain); |
$gettext->textdomain($frontdomain); |
| 2603 |
} |
} |
| 2604 |
else mosNotAuth(); |
else mosNotAuth(); |