コード例 #1
0
ファイル: arouter.php プロジェクト: SanneA/wodegongjubao
 /**
  * точка входа singleton
  */
 public static function start()
 {
     if (is_null(self::$instanse)) {
         self::$instanse = new arouter();
     }
 }
コード例 #2
0
ファイル: control.php プロジェクト: SanneA/wodegongjubao
<?php

session_start();
/**
 * MuWebCloneEngine
 * 1.6.2
 * coded by epmak
 * 24.08.2015
 * ->
 **/
header('Content-Type: text/html; charset=utf-8');
ob_start();
error_reporting(E_ALL);
function __autoload($name)
{
    if (file_exists("app" . DIRECTORY_SEPARATOR . "{$name}.php")) {
        require "app" . DIRECTORY_SEPARATOR . "{$name}.php";
        //родительские классы
    } else {
        if (file_exists("build" . DIRECTORY_SEPARATOR . tbuild . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "{$name}.php")) {
            require "build" . DIRECTORY_SEPARATOR . tbuild . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "{$name}.php";
            //классы-расширения билдов
        }
    }
}
arouter::start();