Ejemplo n.º 1
0
@ini_set('display_errors', 1);
@ini_set('html_errors', 0);
@ini_set('magic_quotes_runtime', 0);
@ini_set('magic_quotes_sybase', 0);
set_time_limit(30);
mb_internal_encoding('UTF-8');
header('Content-Type: text/html; charset=utf-8');
session_start();
$start_time = microtime(true);
$start_memory = memory_get_usage();
if (defined('ENTRY_POINT')) {
    define('GLISS_DIR', get_include_path());
} else {
    define('GLISS_DIR', dirname(__FILE__) . '/');
}
@define('ENTRY_POINT', true);
include_once GLISS_DIR . 'kernel/Mr.class.php';
include_once GLISS_DIR . 'kernel/std.func.php';
if (get_magic_quotes_gpc()) {
    $_POST = array_map('stripslashes_deep', (array) $_POST);
    $_GET = array_map('stripslashes_deep', (array) $_GET);
    $_COOKIE = array_map('stripslashes_deep', (array) $_COOKIE);
}
Mr::start();
Mr::gt('App')->start();
$exec_time = microtime(true) - $start_time;
$exec_memory = memory_get_usage() - $start_memory;
printf("\n<!-- Time: %f сек.-->", $exec_time);
printf("\n<!-- Memory: %f mb.-->", round($exec_memory / 1048576, 2));
printf("\n<!-- Gliss Framework 2010 - 2011. Kazin Fedor. -->");
Ejemplo n.º 2
0
<?php

@ini_set('display_errors', 1);
@ini_set('html_errors', 0);
@ini_set('magic_quotes_runtime', 0);
@ini_set('magic_quotes_sybase', 0);
error_reporting(E_ALL);
set_time_limit(30);
mb_internal_encoding('UTF-8');
header('Content-Type: text/html; charset=utf-8');
session_start();
define('GLISS_DIR', defined('ENTRY_POINT') ? get_include_path() : dirname(__FILE__) . '/');
define('GLISS_KERNEL_DIR', GLISS_DIR . 'kernel/');
@define('ENTRY_POINT', true);
include_once GLISS_KERNEL_DIR . 'Mr.class.php';
Mr::start(GLISS_KERNEL_DIR);
Mr::gt('Env')->start();