示例#1
0
文件: core.php 项目: umaxfun/x4m
 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);
             }
         }
     }
 }
示例#2
0
文件: admin.php 项目: umaxfun/x4m
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;
示例#3
0
文件: adm.class.php 项目: umaxfun/x4m
 function __construct()
 {
     $this->_TMS = xRegistry::get('TMS');
     xNameSpaceHolder::addObjectToNS('module.adminPanel.back', $this);
 }
示例#4
0
文件: _run.php 项目: umaxfun/x4m
    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;
            }