1: <?php
2:
3: 4: 5: 6: 7:
8:
9:
10: 11: 12:
13: error_reporting(E_ALL | E_STRICT);
14: @set_magic_quotes_runtime(FALSE);
15: @iconv_set_encoding('internal_encoding', 'UTF-8');
16: extension_loaded('mbstring') && mb_internal_encoding('UTF-8');
17: umask(0);
18: @header('X-Powered-By: Nette Framework');
19: @header('Content-Type: text/html; charset=utf-8');
20:
21:
22: 23: 24:
25: define('NETTE', TRUE);
26: define('NETTE_DIR', __DIR__);
27: define('NETTE_VERSION_ID', 20018);
28: define('NETTE_PACKAGE', '5.3');
29:
30:
31: require_once __DIR__ . '/common/exceptions.php';
32: require_once __DIR__ . '/common/Object.php';
33: require_once __DIR__ . '/Utils/LimitedScope.php';
34: require_once __DIR__ . '/Loaders/AutoLoader.php';
35: require_once __DIR__ . '/Loaders/NetteLoader.php';
36:
37:
38: Nette\Loaders\NetteLoader::getInstance()->register();
39:
40: require_once __DIR__ . '/Diagnostics/Helpers.php';
41: require_once __DIR__ . '/Diagnostics/shortcuts.php';
42: require_once __DIR__ . '/Utils/Html.php';
43: Nette\Diagnostics\Debugger::_init();
44:
45: Nette\Utils\SafeStream::register();
46:
47: class_alias('Nette\Config\Configurator', 'Nette\Configurator');
48:
49:
50: 51: 52: 53: 54: 55:
56: function callback($callback, $m = NULL)
57: {
58: return new Nette\Callback($callback, $m);
59: }
60: