1 | <?php /* Smarty version Smarty-3.1.7, created on 2014-10-30 11:39:11 |
---|
2 | compiled from "index.php" */ ?> |
---|
3 | <?php /*%%SmartyHeaderCode:716593695451c0ef901c10-29007368%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); |
---|
4 | $_valid = $_smarty_tpl->decodeProperties(array ( |
---|
5 | 'file_dependency' => |
---|
6 | array ( |
---|
7 | 'bb6499b8e938f92a3695fff1afe57edea4b9efb7' => |
---|
8 | array ( |
---|
9 | 0 => 'index.php', |
---|
10 | 1 => 1414636706, |
---|
11 | 2 => 'file', |
---|
12 | ), |
---|
13 | ), |
---|
14 | 'nocache_hash' => '716593695451c0ef901c10-29007368', |
---|
15 | 'function' => |
---|
16 | array ( |
---|
17 | ), |
---|
18 | 'has_nocache_code' => false, |
---|
19 | 'version' => 'Smarty-3.1.7', |
---|
20 | 'unifunc' => 'content_5451c0ef96af6', |
---|
21 | ),false); /*/%%SmartyHeaderCode%%*/?> |
---|
22 | <?php if ($_valid && !is_callable('content_5451c0ef96af6')) {function content_5451c0ef96af6($_smarty_tpl) {?><<?php ?>?php |
---|
23 | date_default_timezone_set("Asia/Ho_Chi_Minh"); |
---|
24 | /* |
---|
25 | *--------------------------------------------------------------- |
---|
26 | * APPLICATION ENVIRONMENT |
---|
27 | *--------------------------------------------------------------- |
---|
28 | * |
---|
29 | * You can load different configurations depending on your |
---|
30 | * current environment. Setting the environment also influences |
---|
31 | * things like logging and error reporting. |
---|
32 | * |
---|
33 | * This can be set to anything, but default usage is: |
---|
34 | * |
---|
35 | * development |
---|
36 | * testing |
---|
37 | * production |
---|
38 | * |
---|
39 | * NOTE: If you change these, also change the error_reporting() code below |
---|
40 | * |
---|
41 | */ |
---|
42 | define('ENVIRONMENT', 'development'); |
---|
43 | /* |
---|
44 | *--------------------------------------------------------------- |
---|
45 | * ERROR REPORTING |
---|
46 | *--------------------------------------------------------------- |
---|
47 | * |
---|
48 | * Different environments will require different levels of error reporting. |
---|
49 | * By default development will show errors but testing and live will hide them. |
---|
50 | */ |
---|
51 | |
---|
52 | if (defined('ENVIRONMENT')) |
---|
53 | { |
---|
54 | switch (ENVIRONMENT) |
---|
55 | { |
---|
56 | case 'development': |
---|
57 | error_reporting(E_ALL); |
---|
58 | break; |
---|
59 | |
---|
60 | case 'testing': |
---|
61 | case 'production': |
---|
62 | error_reporting(0); |
---|
63 | break; |
---|
64 | |
---|
65 | default: |
---|
66 | exit('The application environment is not set correctly.'); |
---|
67 | } |
---|
68 | } |
---|
69 | |
---|
70 | /* |
---|
71 | *--------------------------------------------------------------- |
---|
72 | * SYSTEM FOLDER NAME |
---|
73 | *--------------------------------------------------------------- |
---|
74 | * |
---|
75 | * This variable must contain the name of your "system" folder. |
---|
76 | * Include the path if the folder is not in the same directory |
---|
77 | * as this file. |
---|
78 | * |
---|
79 | */ |
---|
80 | $system_path = 'system'; |
---|
81 | |
---|
82 | /* |
---|
83 | *--------------------------------------------------------------- |
---|
84 | * APPLICATION FOLDER NAME |
---|
85 | *--------------------------------------------------------------- |
---|
86 | * |
---|
87 | * If you want this front controller to use a different "application" |
---|
88 | * folder then the default one you can set its name here. The folder |
---|
89 | * can also be renamed or relocated anywhere on your server. If |
---|
90 | * you do, use a full server path. For more info please see the user guide: |
---|
91 | * http://codeigniter.com/user_guide/general/managing_apps.html |
---|
92 | * |
---|
93 | * NO TRAILING SLASH! |
---|
94 | * |
---|
95 | */ |
---|
96 | $application_folder = 'application'; |
---|
97 | |
---|
98 | /* |
---|
99 | * -------------------------------------------------------------------- |
---|
100 | * DEFAULT CONTROLLER |
---|
101 | * -------------------------------------------------------------------- |
---|
102 | * |
---|
103 | * Normally you will set your default controller in the routes.php file. |
---|
104 | * You can, however, force a custom routing by hard-coding a |
---|
105 | * specific controller class/function here. For most applications, you |
---|
106 | * WILL NOT set your routing here, but it's an option for those |
---|
107 | * special instances where you might want to override the standard |
---|
108 | * routing in a specific front controller that shares a common CI installation. |
---|
109 | * |
---|
110 | * IMPORTANT: If you set the routing here, NO OTHER controller will be |
---|
111 | * callable. In essence, this preference limits your application to ONE |
---|
112 | * specific controller. Leave the function name blank if you need |
---|
113 | * to call functions dynamically via the URI. |
---|
114 | * |
---|
115 | * Un-comment the $routing array below to use this feature |
---|
116 | * |
---|
117 | */ |
---|
118 | // The directory name, relative to the "controllers" folder. Leave blank |
---|
119 | // if your controller is not in a sub-folder within the "controllers" folder |
---|
120 | // $routing['directory'] = ''; |
---|
121 | |
---|
122 | // The controller class file name. Example: Mycontroller |
---|
123 | // $routing['controller'] = ''; |
---|
124 | |
---|
125 | // The controller function you wish to be called. |
---|
126 | // $routing['function'] = ''; |
---|
127 | |
---|
128 | |
---|
129 | /* |
---|
130 | * ------------------------------------------------------------------- |
---|
131 | * CUSTOM CONFIG VALUES |
---|
132 | * ------------------------------------------------------------------- |
---|
133 | * |
---|
134 | * The $assign_to_config array below will be passed dynamically to the |
---|
135 | * config class when initialized. This allows you to set custom config |
---|
136 | * items or override any default config values found in the config.php file. |
---|
137 | * This can be handy as it permits you to share one application between |
---|
138 | * multiple front controller files, with each file containing different |
---|
139 | * config values. |
---|
140 | * |
---|
141 | * Un-comment the $assign_to_config array below to use this feature |
---|
142 | * |
---|
143 | */ |
---|
144 | // $assign_to_config['name_of_config_item'] = 'value of config item'; |
---|
145 | |
---|
146 | |
---|
147 | |
---|
148 | // -------------------------------------------------------------------- |
---|
149 | // END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE |
---|
150 | // -------------------------------------------------------------------- |
---|
151 | |
---|
152 | /* |
---|
153 | * --------------------------------------------------------------- |
---|
154 | * Resolve the system path for increased reliability |
---|
155 | * --------------------------------------------------------------- |
---|
156 | */ |
---|
157 | |
---|
158 | // Set the current directory correctly for CLI requests |
---|
159 | if (defined('STDIN')) |
---|
160 | { |
---|
161 | chdir(dirname(__FILE__)); |
---|
162 | } |
---|
163 | |
---|
164 | if (realpath($system_path) !== FALSE) |
---|
165 | { |
---|
166 | $system_path = realpath($system_path).'/'; |
---|
167 | } |
---|
168 | |
---|
169 | // ensure there's a trailing slash |
---|
170 | $system_path = rtrim($system_path, '/').'/'; |
---|
171 | |
---|
172 | // Is the system path correct? |
---|
173 | if ( ! is_dir($system_path)) |
---|
174 | { |
---|
175 | exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME)); |
---|
176 | } |
---|
177 | |
---|
178 | /* |
---|
179 | * ------------------------------------------------------------------- |
---|
180 | * Now that we know the path, set the main path constants |
---|
181 | * ------------------------------------------------------------------- |
---|
182 | */ |
---|
183 | // The name of THIS file |
---|
184 | define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); |
---|
185 | |
---|
186 | // The PHP file extension |
---|
187 | // this global constant is deprecated. |
---|
188 | define('EXT', '.php'); |
---|
189 | |
---|
190 | // Path to the system folder |
---|
191 | define('BASEPATH', str_replace("\\", "/", $system_path)); |
---|
192 | |
---|
193 | // Path to the front controller (this file) |
---|
194 | define('FCPATH', str_replace(SELF, '', __FILE__)); |
---|
195 | |
---|
196 | // Name of the "system folder" |
---|
197 | define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); |
---|
198 | |
---|
199 | |
---|
200 | // The path to the "application" folder |
---|
201 | if (is_dir($application_folder)) |
---|
202 | { |
---|
203 | define('APPPATH', $application_folder.'/'); |
---|
204 | } |
---|
205 | else |
---|
206 | { |
---|
207 | if ( ! is_dir(BASEPATH.$application_folder.'/')) |
---|
208 | { |
---|
209 | exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF); |
---|
210 | } |
---|
211 | |
---|
212 | define('APPPATH', BASEPATH.$application_folder.'/'); |
---|
213 | } |
---|
214 | |
---|
215 | /* |
---|
216 | * -------------------------------------------------------------------- |
---|
217 | * LOAD THE BOOTSTRAP FILE |
---|
218 | * -------------------------------------------------------------------- |
---|
219 | * |
---|
220 | * And away we go... |
---|
221 | * |
---|
222 | */ |
---|
223 | require_once BASEPATH.'core/CodeIgniter.php'; |
---|
224 | |
---|
225 | /* End of file index.php */ |
---|
226 | /* Location: ./index.php */<?php }} ?> |
---|