} /** detect first visit */ $mainframe->detect(); /** @global mosPlugin $_MAMBOTS */ $_MAMBOTS =& mosMambotHandler::getInstance(); require_once $configuration->rootPath() . '/editor/editor.php'; require_once $configuration->rootPath() . '/includes/gacl.class.php'; require_once $configuration->rootPath() . '/includes/gacl_api.class.php'; require_once $configuration->rootPath() . '/components/com_content/content.class.php'; require_once $configuration->rootPath() . '/includes/cmtclasses.php'; $acl = new gacl_api(); /** Load system start mambot for 3pd **/ $_MAMBOTS->loadBotGroup('system'); $_MAMBOTS->trigger('onAfterStart'); /** Get the component handler */ $c_handler =& mosComponentHandler::getInstance(); $c_handler->startBuffer(); if (!$urlerror and $path = $mainframe->getPath('front')) { $menuhandler =& mosMenuHandler::getInstance(); $ret = $menuhandler->menuCheck($Itemid, $option, $task, $my->getAccessGid()); $menuhandler->setPathway($Itemid); if ($ret) { require $path; } else { mosNotAuth(); } } else { header('HTTP/1.1 404 Not Found'); $mainframe->setPageTitle(T_('404 Error - page not found')); include $configuration->rootPath() . '/page404.php'; }
/** * Displays the capture output of the main element */ function mosMainBody() { $handler =& mosComponentHandler::getInstance(); $handler->mosMainBody(); }
function liveBookMark() { // support for Firefox Live Bookmarks ability for site syndication $live_bookmark = 0; $c_handler =& mosComponentHandler::getInstance(); $params =& $c_handler->getParamsByName('Syndicate'); if (!is_null($params)) { $live_bookmark = $params->get('live_bookmark', 0); } if ($live_bookmark) { // custom bookmark file name $bookmark_file = $params->get('bookmark_file', $live_bookmark); $link_file = mamboCore::get('mosConfig_live_site') . '/cache/' . $bookmark_file; $filename = mamboCore::get('mosConfig_absolute_path') . '/cache/' . $bookmark_file; $cache = $params->get('cache', 1); $cache_time = $params->get('cache_time', 3600); $title = $params->def('title', mamboCore::get('mosConfig_sitename')); // checks to see if cache file exists, to determine whether to create a new one if (!file_exists($filename) || time() - filemtime($filename) > $cache_time) { $task = 'live_bookmark'; // sets bookmark feed type $_GET['feed'] = str_replace('.xml', '', $live_bookmark); // loads rss component to create bookmark file require_once mamboCore::get('mosConfig_absolute_path') . '/components/com_rss/rss.php'; } // outputs link tag for page ?> <link rel="alternate" type="application/rss+xml" title="<?php echo $title; ?> " href="<?php echo $link_file; ?> " /> <?php } }