示例#1
0
 function init()
 {
     $this->dirname = dirname(__FILE__) . '/data';
     $this->FW = XSystem::factory(XUtil::makePath($this->dirname, "site.ini"), array('root' => $this->dirname));
 }
示例#2
0
文件: index.php 项目: kurari/XSystem
<?php

require_once '../../lib/base/util.class.php';
XUtil::addIncludePath(XUtil::makePath("../..", 'class'), XUtil::makePath("../..", 'lib'));
require_once 'XSystem.class.php';
$file = "../etc/site.ini";
define("SITE_ROOT", realpath("../"));
$Mes = new XMessage();
$Mes->set('type', 'display');
$Mes->set('app', 'bbs');
$Mes->set('function', 'run');
$Mes->set('data', array());
$FW = XSystem::factory($file, array('site.root' => SITE_ROOT));
$FW->accept($Mes);