@@ -43,10 +43,10 @@ |
||
43 | 43 | var chk = document.install.rminstaller; |
44 | 44 | if(chk && chk.checked) { |
45 | 45 | // remove install folder and files |
46 | - window.location.href = "../<?php echo MGR_DIR;?>/processors/remove_installer.processor.php?rminstall=1"; |
|
46 | + window.location.href = "../<?php echo MGR_DIR; ?>/processors/remove_installer.processor.php?rminstall=1"; |
|
47 | 47 | } |
48 | 48 | else { |
49 | - window.location.href = "../<?php echo MGR_DIR;?>/"; |
|
49 | + window.location.href = "../<?php echo MGR_DIR; ?>/"; |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | /* ]]> */ |
@@ -6,12 +6,12 @@ discard block |
||
6 | 6 | $installMode = $_POST['installMode']; |
7 | 7 | |
8 | 8 | $self = 'install/connection.databasetest.php'; |
9 | -$base_path = str_replace($self,'',str_replace('\\','/', __FILE__)); |
|
9 | +$base_path = str_replace($self, '', str_replace('\\', '/', __FILE__)); |
|
10 | 10 | if (is_file("{$base_path}assets/cache/siteManager.php")) { |
11 | 11 | include_once("{$base_path}assets/cache/siteManager.php"); |
12 | 12 | } |
13 | -if(!defined('MGR_DIR') && is_dir("{$base_path}manager")) { |
|
14 | - define('MGR_DIR','manager'); |
|
13 | +if (!defined('MGR_DIR') && is_dir("{$base_path}manager")) { |
|
14 | + define('MGR_DIR', 'manager'); |
|
15 | 15 | } |
16 | 16 | require_once("lang.php"); |
17 | 17 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $database_charset = substr($database_collation, 0, strpos($database_collation, '_')); |
32 | 32 | $query = "CREATE DATABASE `".$database_name."` CHARACTER SET ".$database_charset." COLLATE ".$database_collation.";"; |
33 | 33 | |
34 | - if (! mysqli_query($conn, $query)){ |
|
34 | + if (!mysqli_query($conn, $query)) { |
|
35 | 35 | $output .= '<span id="database_fail" style="color:#FF0000;">'.$_lang['status_failed_could_not_create_database'].'</span>'; |
36 | 36 | } |
37 | 37 | else { |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | } |
10 | 10 | |
11 | 11 | $self = 'install/index.php'; |
12 | -$base_path = str_replace($self,'',str_replace('\\','/', __FILE__)); |
|
12 | +$base_path = str_replace($self, '', str_replace('\\', '/', __FILE__)); |
|
13 | 13 | require_once("{$base_path}install/functions.php"); |
14 | 14 | |
15 | 15 | // set error reporting |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | if (is_file("{$base_path}assets/cache/siteManager.php")) { |
19 | 19 | include_once("{$base_path}assets/cache/siteManager.php"); |
20 | 20 | } |
21 | -if(!defined('MGR_DIR') && is_dir("{$base_path}manager")) { |
|
21 | +if (!defined('MGR_DIR') && is_dir("{$base_path}manager")) { |
|
22 | 22 | define('MGR_DIR', 'manager'); |
23 | 23 | } |
24 | 24 | |
@@ -38,26 +38,26 @@ discard block |
||
38 | 38 | $moduleSQLDataFile = "setup.data.sql"; |
39 | 39 | $moduleSQLResetFile = "setup.data.reset.sql"; |
40 | 40 | |
41 | -$moduleChunks = array (); // chunks - array : name, description, type - 0:file or 1:content, file or content |
|
42 | -$moduleTemplates = array (); // templates - array : name, description, type - 0:file or 1:content, file or content |
|
43 | -$moduleSnippets = array (); // snippets - array : name, description, type - 0:file or 1:content, file or content,properties |
|
44 | -$modulePlugins = array (); // plugins - array : name, description, type - 0:file or 1:content, file or content,properties, events,guid |
|
45 | -$moduleModules = array (); // modules - array : name, description, type - 0:file or 1:content, file or content,properties, guid |
|
46 | -$moduleTemplates = array (); // templates - array : name, description, type - 0:file or 1:content, file or content,properties |
|
47 | -$moduleTVs = array (); // template variables - array : name, description, type - 0:file or 1:content, file or content,properties |
|
41 | +$moduleChunks = array(); // chunks - array : name, description, type - 0:file or 1:content, file or content |
|
42 | +$moduleTemplates = array(); // templates - array : name, description, type - 0:file or 1:content, file or content |
|
43 | +$moduleSnippets = array(); // snippets - array : name, description, type - 0:file or 1:content, file or content,properties |
|
44 | +$modulePlugins = array(); // plugins - array : name, description, type - 0:file or 1:content, file or content,properties, events,guid |
|
45 | +$moduleModules = array(); // modules - array : name, description, type - 0:file or 1:content, file or content,properties, guid |
|
46 | +$moduleTemplates = array(); // templates - array : name, description, type - 0:file or 1:content, file or content,properties |
|
47 | +$moduleTVs = array(); // template variables - array : name, description, type - 0:file or 1:content, file or content,properties |
|
48 | 48 | $moduleDependencies = array(); // module depedencies - array : module, table, column, type, name |
49 | 49 | |
50 | -$errors= 0; |
|
50 | +$errors = 0; |
|
51 | 51 | |
52 | 52 | // get post back status |
53 | 53 | $isPostBack = (count($_POST)); |
54 | 54 | |
55 | 55 | $ph = ph(); |
56 | -$ph = array_merge($ph,$_lang); |
|
56 | +$ph = array_merge($ph, $_lang); |
|
57 | 57 | $ph['install_language'] = $install_language; |
58 | 58 | |
59 | 59 | ob_start(); |
60 | -$action= isset ($_GET['action']) ? trim(strip_tags($_GET['action'])) : 'language'; |
|
60 | +$action = isset ($_GET['action']) ? trim(strip_tags($_GET['action'])) : 'language'; |
|
61 | 61 | if (!@include_once("actions/action_{$action}.php")) { |
62 | 62 | die ("Invalid install action attempted. [action={$action}]"); |
63 | 63 | } |
@@ -65,5 +65,5 @@ discard block |
||
65 | 65 | ob_end_clean(); |
66 | 66 | |
67 | 67 | $tpl = file_get_contents("{$base_path}install/template.tpl"); |
68 | -echo parse($tpl,$ph); |
|
68 | +echo parse($tpl, $ph); |
|
69 | 69 |
@@ -9,8 +9,8 @@ |
||
9 | 9 | |
10 | 10 | $lang = array( |
11 | 11 | |
12 | - '_locale' => "pt_BR.UTF-8", // UNIX localization code |
|
13 | - '_charset' => "utf-8", // Browser charset |
|
12 | + '_locale' => "pt_BR.UTF-8", // UNIX localization code |
|
13 | + '_charset' => "utf-8", // Browser charset |
|
14 | 14 | |
15 | 15 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
16 | 16 | '_dateTimeFull' => "%A, %e %B, %Y %H:%M", |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | $lang = array( |
8 | 8 | |
9 | - '_locale' => "de_DE.UTF-8", // UNIX localization code |
|
10 | - '_charset' => "utf-8", // Browser charset |
|
9 | + '_locale' => "de_DE.UTF-8", // UNIX localization code |
|
10 | + '_charset' => "utf-8", // Browser charset |
|
11 | 11 | |
12 | 12 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
13 | 13 | '_dateTimeFull' => "%A, %e.%B.%Y %I:%M %p", |
@@ -7,8 +7,8 @@ |
||
7 | 7 | |
8 | 8 | $lang = array( |
9 | 9 | |
10 | - '_locale' => "uk_UA.UTF-8", // UNIX localization code |
|
11 | - '_charset' => "utf-8", // Browser charset |
|
10 | + '_locale' => "uk_UA.UTF-8", // UNIX localization code |
|
11 | + '_charset' => "utf-8", // Browser charset |
|
12 | 12 | |
13 | 13 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
14 | 14 | '_dateTimeFull' => "%A, %e %B, %Y %H:%M", |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | $lang = array( |
13 | 13 | |
14 | - '_locale' => "ja_JP.UTF-8", // UNIX localization code |
|
15 | - '_charset' => "utf-8", // Browser charset |
|
14 | + '_locale' => "ja_JP.UTF-8", // UNIX localization code |
|
15 | + '_charset' => "utf-8", // Browser charset |
|
16 | 16 | |
17 | 17 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
18 | 18 | '_dateTimeFull' => "%Y/%m/%d %H:%M", |
@@ -7,8 +7,8 @@ |
||
7 | 7 | |
8 | 8 | $lang = array( |
9 | 9 | |
10 | - '_locale' => "fr_FR.UTF-8", // UNIX localization code |
|
11 | - '_charset' => "utf-8", // Browser charset |
|
10 | + '_locale' => "fr_FR.UTF-8", // UNIX localization code |
|
11 | + '_charset' => "utf-8", // Browser charset |
|
12 | 12 | |
13 | 13 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
14 | 14 | '_dateTimeFull' => "%A %e %B %Y %H:%M", |
@@ -6,8 +6,8 @@ |
||
6 | 6 | |
7 | 7 | $lang = array( |
8 | 8 | |
9 | - '_locale' => "he_IL.UTF-8", // UNIX localization code |
|
10 | - '_charset' => "utf-8", // Browser charset |
|
9 | + '_locale' => "he_IL.UTF-8", // UNIX localization code |
|
10 | + '_charset' => "utf-8", // Browser charset |
|
11 | 11 | |
12 | 12 | // Date time formats. See http://www.php.net/manual/en/function.strftime.php |
13 | 13 | '_dateTimeFull' => "%H:%M %Y %B %e %A", |