-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.php
More file actions
39 lines (32 loc) · 1.01 KB
/
system.php
File metadata and controls
39 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
include('define_functions.php');
include('orm.php');
if( is_array( $modules ) ){
foreach( $modules as $module){
include($system_root_path.'system/modules/'.$module.'/'.$module.'.php');
}
}
$files = array();
if( is_dir( $document_root_path.'include/models' ) ){
$files = scandir( $document_root_path.'include/models' );
}
foreach( $files as $file ){
if( $file != '.' AND $file != '..' AND strstr( $file, '.php' ) ){
include($document_root_path.'include/models/'.$file);
}
}
if( !isset( $language_code ) ){
$language_code = 'en_GB';
}
$files = array();
if( is_dir( $document_root_path.'i18n/'.$language_code ) ){
$files = scandir( $document_root_path.'i18n/'.$language_code );
}
foreach( $files as $file ){
if( $file != '.' AND $file != '..' ){
include($document_root_path.'i18n/'.$language_code.'/'.$file);
}
}
$jquery_version = 'jquery-1.6.3.min';
$jquery_mobile_version = 'jquery.mobile-1.0.1.min';
?>