예제 #1
1
function UtilsConfig()
{
    define('REQUEST_TIME', time());
    define('EOL', chr(10));
    App::config('config');
    $dev = App::env('developer') === true;
    error_reporting($dev ? E_ALL | E_STRICT : E_ALL & ~E_STRICT & ~E_DEPRECATED);
    ini_set('display_errors', $dev ? 1 : 0);
    register_shutdown_function('UtilsShutDown');
    set_error_handler('UtilsError', E_ALL | E_STRICT);
}
예제 #2
1
<?php

/*
 * Inphinit
 *
 * Copyright (c) 2016 Guilherme Nascimento (brcontainer@yahoo.com.br)
 *
 * Released under the MIT license
 */
use Inphinit\App;
define('INPHINIT_START', microtime(true));
define('INPHINIT_ROOT', rtrim(strtr(dirname(__FILE__), '\\', '/'), '/') . '/');
define('INPHINIT_PATH', INPHINIT_ROOT . 'system/');
define('INPHINIT_COMPOSER', false);
require_once INPHINIT_PATH . 'boot/start.php';
if (App::env('developer') === true) {
    require_once INPHINIT_PATH . 'dev.php';
}
require_once INPHINIT_PATH . 'main.php';
App::exec();