public function initiateXfrontPlugins() { if ($mPlugins = xCore::getModulePluginsListeners($this->_moduleName)) { foreach ($mPlugins as $mPlugName => $mPlug) { if ($mPlug->useModuleXfrontNS) { $pluginXfront = xCore::pluginFactory($this->_moduleName . '.' . $mPlugName . '.xfront'); xNameSpaceHolder::addObjectToNS('module.' . $this->_moduleName . '.xfront', $pluginXfront); } } } }
if (!isset($_SESSION['user'])) { if (!$_REQUEST['xoadCall']) { header('location: login.php'); } else { echo 'SESSION_TIME_EXPIRED'; die; } } require_once 'inc/core/helpers.php'; require_once 'conf/init.php'; require_once xConfig::get('PATH', 'CORE') . 'core.php'; require_once xConfig::get('PATH', 'CORE') . 'helpers.tpl.php'; xRegistry::set('TMS', $TMS = new tMultiSection()); xPDO::setSource(DB_HOST, DB_NAME, DB_USER, DB_PASS); xRegistry::set('xPDO', xPDO::getInstance()); xNameSpaceHolder::addObjectToNS('E', new ENHANCE()); require_once xConfig::get('PATH', 'XOAD') . 'xoad.php'; require_once xConfig::get('PATH', 'ADM') . 'logger.class.php'; require_once xConfig::get('PATH', 'ADM') . 'adm.class.php'; if ($_REQUEST['xoadCall']) { ob_start(); $adm = new adminPanel(); $adm->startMapping(); if (XOAD_Server::runServer()) { $all = ob_get_contents(); ob_end_clean(); if ($_COMMON_SITE_CONF['output_html_compress']) { Common::compress_output($all); } echo $all; exit;
function __construct() { $this->_TMS = xRegistry::get('TMS'); xNameSpaceHolder::addObjectToNS('module.adminPanel.back', $this); }
xConfig::set('PATH', 'baseUrl', substr(xConfig::get('PATH', 'baseUrl'), 0, $position, '?')); } require_once xConfig::get('PATH', 'XOAD') . 'xoad.php'; xCache::initialize('MemCache'); xRegistry::set('TMS', $TMS = new tMultiSection()); /* $TMS->AddFileSection(PATH_.'templates/robots.htm'); $TMS->AddReplace('robots','paramse','hello'); $TMS->AddReplace('robots','arr',array('hell'=>'d')); echo $TMS->ParseSection('robots');*/ //xPDO xPDO::setSource(DB_HOST, DB_NAME, DB_USER, DB_PASS); xRegistry::set('xPDO', xPDO::getInstance()); //Enhance xNameSpaceHolder::addObjectToNS('E', new ENHANCE()); xNameSpaceHolder::addObjectToNS('D', new DEBUG()); global $time; $y = Common::getmicrotime(); echo $y - $time . ' instansces ready '; if (isset($_REQUEST['xoadCall'])) { $connector = new connector(); @ob_end_clean(); ob_start(); if (XOAD_Server::runServer()) { if ($all = ob_get_contents()) { @ob_end_clean(); if (xConfig::get('GLOBAL', 'output_html_compress')) { echo Common::compress_output($all); } else { echo $all; }