1: <?php
2:
3: 4: 5: 6: 7: 8: 9: 10:
11:
12:
13:
14: 15: 16:
17: error_reporting(E_ALL | E_STRICT);
18: @set_magic_quotes_runtime(FALSE);
19: iconv_set_encoding('internal_encoding', 'UTF-8');
20: extension_loaded('mbstring') && mb_internal_encoding('UTF-8');
21: @header('X-Powered-By: Nette Framework');
22:
23:
24:
25: 26: 27:
28: define('NETTE', TRUE);
29: define('NETTE_DIR', __DIR__);
30: define('NETTE_VERSION_ID', 907);
31: define('NETTE_PACKAGE', '5.3');
32:
33:
34:
35: require_once __DIR__ . '/Utils/exceptions.php';
36: require_once __DIR__ . '/Utils/Framework.php';
37: require_once __DIR__ . '/Utils/Object.php';
38: require_once __DIR__ . '/Utils/ObjectMixin.php';
39: require_once __DIR__ . '/Utils/Callback.php';
40: require_once __DIR__ . '/Loaders/LimitedScope.php';
41: require_once __DIR__ . '/Loaders/AutoLoader.php';
42: require_once __DIR__ . '/Loaders/NetteLoader.php';
43:
44:
45: Nette\Loaders\NetteLoader::getInstance()->register();
46:
47:
48:
49: 50: 51: 52: 53: 54:
55: function callback($callback, $m = NULL)
56: {
57: return ($m === NULL && $callback instanceof Nette\Callback) ? $callback : new Nette\Callback($callback, $m);
58: }
59:
60:
61:
62: 63: 64:
65: function dump($var)
66: {
67: foreach (func_get_args() as $arg) Nette\Debug::dump($arg);
68: return $var;
69: }
70: