@@ 236-255 (lines=20) @@ | ||
233 | { |
|
234 | static $doctypes; |
|
235 | ||
236 | if ( ! is_array($doctypes)) |
|
237 | { |
|
238 | if (file_exists(APPPATH.'config/doctypes.php')) |
|
239 | { |
|
240 | include(APPPATH.'config/doctypes.php'); |
|
241 | } |
|
242 | ||
243 | if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/doctypes.php')) |
|
244 | { |
|
245 | include(APPPATH.'config/'.ENVIRONMENT.'/doctypes.php'); |
|
246 | } |
|
247 | ||
248 | if (empty($_doctypes) OR ! is_array($_doctypes)) |
|
249 | { |
|
250 | $doctypes = array(); |
|
251 | return FALSE; |
|
252 | } |
|
253 | ||
254 | $doctypes = $_doctypes; |
|
255 | } |
|
256 | ||
257 | return isset($doctypes[$type]) ? $doctypes[$type] : FALSE; |
|
258 | } |
@@ 232-251 (lines=20) @@ | ||
229 | { |
|
230 | static $_smileys; |
|
231 | ||
232 | if ( ! is_array($_smileys)) |
|
233 | { |
|
234 | if (file_exists(APPPATH.'config/smileys.php')) |
|
235 | { |
|
236 | include(APPPATH.'config/smileys.php'); |
|
237 | } |
|
238 | ||
239 | if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/smileys.php')) |
|
240 | { |
|
241 | include(APPPATH.'config/'.ENVIRONMENT.'/smileys.php'); |
|
242 | } |
|
243 | ||
244 | if (empty($smileys) OR ! is_array($smileys)) |
|
245 | { |
|
246 | $_smileys = array(); |
|
247 | return FALSE; |
|
248 | } |
|
249 | ||
250 | $_smileys = $smileys; |
|
251 | } |
|
252 | ||
253 | return $_smileys; |
|
254 | } |