1 <?php
 2 
 3  4  5  6  7  8  9 10 
11 
12 namespace Icybee\Installer;
13 
14 15 16 
17 function t($str, array $args=array(), array $options=array())
18 {
19     return \ICanBoogie\I18n\t($str, $args, $options);
20 }
21 
22 
23 
24 
25 
26 \Brickrouge\Helpers::patch('render_exception', 'ICanBoogie\Debug::format_alert');
27 \Brickrouge\Helpers::patch('t', __NAMESPACE__ . '\t');
28 
29 
30 
31 
32 
33 $core = new \Icybee\Core
34 (
35     array
36     (
37         'config paths' => array
38         (
39             __DIR__,
40             \Icybee\DIR
41         ),
42 
43         'locale paths' => array
44         (
45             __DIR__,
46             \Icybee\DIR
47         ),
48 
49         'modules paths' => array
50         (
51             \Icybee\DIR . 'modules' . DIRECTORY_SEPARATOR,
52             \ICanBoogie\Modules\DIR
53         )
54     )
55 );
56 
57 $_SERVER['ICANBOOGIE_READY_TIME_FLOAT'] = microtime(true);
58 
59 
60 
61 
62 
63 $core->session = \ICanBoogie\Session::get_session($core);
64 
65 
66 
67 
68 
69 if (isset($_GET['hl']))
70 {
71     $core->session->install['locale'] = $_GET['hl'];
72 }
73 
74 if (isset($core->session->install['locale']))
75 {
76     $core->locale = $core->session->install['locale'];
77 }
78 
79 
80 
81 
82 
83 $core->document = \Brickrouge\get_document();