include './Public/Function/Function.php';
if (defined('MEMCACHE') && MEMCACHE) {
    if (extension_loaded('memcache')) {
        if (!MyMemcache::ConnectError()) {
            Debug::addmsg('<font color="red">连接memcache服务器失败,请确认IP或端口正确!</font>');
        } else {
            Debug::addmsg('开启Memcache');
        }
    } else {
        Debug::addmsg('<font color="red">PHP没有安装memcache扩展模块,请先安装!</font>');
    }
} else {
    Debug::addmsg('<span style="color:red;">[未使用Memcache]</span>');
}
if (IS_SESSION_TO_MEMCACHE && MEMCACHE) {
    SessionToMem::start(MyMemcache::getMemcache());
    Debug::addmsg('开启Session==>Memcache');
} else {
    session_start();
}
Debug::addmsg('SessionID: ' . session_id());
if (empty($_SESSION['configMtime'])) {
    $_SESSION['configMtime'] = filemtime('./Public/Config.inc.php');
}
if (filemtime('./Public/Config.inc.php') > $_SESSION['configMtime']) {
    Struct::init();
    //当修改配置文件,同样执行一次框架结构类
    //自动根据数据库驱动切换继承关系
    $_SESSION['configMtime'] = filemtime('./Public/Config.inc.php');
    $String = file_get_contents(RELUC_DIR . 'Kernel/Model.class.php');
    $replaceMent = 'extends Base' . ucfirst(strtolower(DB_DRIVER)) . "\n";