Exemple #1
0
<?php

/**
 * @Auth: wonli <*****@*****.**>
 * skeleton
 */
require __DIR__ . '/../../crossboot.php';
Cross\Core\Delegate::loadApp('cli')->cliRun();
Exemple #2
0
<?php

/**
 * @Author: wonli <*****@*****.**>
 */
require __DIR__ . '/../../crossboot.php';
Cross\Core\Delegate::loadApp('web')->run();
Exemple #3
0
<?php

/**
 * @Author: wonli <*****@*****.**>
 */
session_start();
require __DIR__ . '/../../crossboot.php';
//登录成功后$_SESSION['u']会被赋值
//如果$_SESSION['u']为空,访问任何页面都只会输出登录界面
if (empty($_SESSION['u'])) {
    Cross\Core\Delegate::loadApp('admin')->get('Main:login');
} else {
    Cross\Core\Delegate::loadApp('admin')->run();
}
Exemple #4
0
<?php

/**
 * @Author: wonli <*****@*****.**>
 */
require __DIR__ . '/../../crossboot.php';
Cross\Core\Delegate::loadApp('api')->run();