|
@@ -34,8 +34,8 @@ discard block |
|
|
block discarded – undo |
|
34
|
34
|
throw new Exception('Error file "/includes/config/tp.config.php" not exists', 1); |
|
35
|
35
|
} |
|
36
|
36
|
|
|
37
|
|
-require_once $SETTINGS['cpassman_dir'] . '/includes/config/include.php'; |
|
38
|
|
-require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php'; |
|
|
37
|
+require_once $SETTINGS['cpassman_dir'].'/includes/config/include.php'; |
|
|
38
|
+require_once $SETTINGS['cpassman_dir'].'/sources/main.functions.php'; |
|
39
|
39
|
|
|
40
|
40
|
// Prepare sanitization |
|
41
|
41
|
$data = [ |
|
@@ -71,7 +71,7 @@ discard block |
|
|
block discarded – undo |
|
71
|
71
|
$csrfp_array = include '../includes/libraries/csrfp/libs/csrfp.config.php'; |
|
72
|
72
|
|
|
73
|
73
|
// Send back CSRFP info |
|
74
|
|
- echo $csrfp_array['CSRFP_TOKEN'] . ';' . filter_input(INPUT_POST, $csrfp_array['CSRFP_TOKEN'], FILTER_SANITIZE_STRING); |
|
|
74
|
+ echo $csrfp_array['CSRFP_TOKEN'].';'.filter_input(INPUT_POST, $csrfp_array['CSRFP_TOKEN'], FILTER_SANITIZE_STRING); |
|
75
|
75
|
} |
|
76
|
76
|
|
|
77
|
77
|
break; |
|
@@ -85,7 +85,7 @@ discard block |
|
|
block discarded – undo |
|
85
|
85
|
function curPage($SETTINGS) |
|
86
|
86
|
{ |
|
87
|
87
|
// Load libraries |
|
88
|
|
- include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/protect/SuperGlobal/SuperGlobal.php'; |
|
|
88
|
+ include_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/SuperGlobal/SuperGlobal.php'; |
|
89
|
89
|
$superGlobal = new protect\SuperGlobal\SuperGlobal(); |
|
90
|
90
|
|
|
91
|
91
|
// Parse the url |
|
@@ -149,11 +149,11 @@ discard block |
|
|
block discarded – undo |
|
149
|
149
|
} |
|
150
|
150
|
|
|
151
|
151
|
// Load |
|
152
|
|
- include_once $SETTINGS['cpassman_dir'] . '/includes/config/include.php'; |
|
153
|
|
- include_once $SETTINGS['cpassman_dir'] . '/includes/config/settings.php'; |
|
|
152
|
+ include_once $SETTINGS['cpassman_dir'].'/includes/config/include.php'; |
|
|
153
|
+ include_once $SETTINGS['cpassman_dir'].'/includes/config/settings.php'; |
|
154
|
154
|
|
|
155
|
155
|
// Load libraries |
|
156
|
|
- include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/protect/SuperGlobal/SuperGlobal.php'; |
|
|
156
|
+ include_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/SuperGlobal/SuperGlobal.php'; |
|
157
|
157
|
$superGlobal = new protect\SuperGlobal\SuperGlobal(); |
|
158
|
158
|
|
|
159
|
159
|
// Securize language |
|
@@ -164,12 +164,12 @@ discard block |
|
|
block discarded – undo |
|
164
|
164
|
$superGlobal->put('user_language', 'english', 'SESSION', 'user'); |
|
165
|
165
|
} |
|
166
|
166
|
|
|
167
|
|
- include_once $SETTINGS['cpassman_dir'] . '/includes/language/' . $superGlobal->get('user_language', 'SESSION', 'user') . '.php'; |
|
|
167
|
+ include_once $SETTINGS['cpassman_dir'].'/includes/language/'.$superGlobal->get('user_language', 'SESSION', 'user').'.php'; |
|
168
|
168
|
include_once 'SplClassLoader.php'; |
|
169
|
169
|
include_once 'main.functions.php'; |
|
170
|
170
|
|
|
171
|
171
|
// Connect to mysql server |
|
172
|
|
- include_once $SETTINGS['cpassman_dir'] . '/includes/libraries/Database/Meekrodb/db.class.php'; |
|
|
172
|
+ include_once $SETTINGS['cpassman_dir'].'/includes/libraries/Database/Meekrodb/db.class.php'; |
|
173
|
173
|
if (defined('DB_PASSWD_CLEAR') === false) { |
|
174
|
174
|
define('DB_PASSWD_CLEAR', defuseReturnDecrypted(DB_PASSWD, $SETTINGS)); |
|
175
|
175
|
} |
|
@@ -184,7 +184,7 @@ discard block |
|
|
block discarded – undo |
|
184
|
184
|
|
|
185
|
185
|
// load user's data |
|
186
|
186
|
$data = DB::queryfirstrow( |
|
187
|
|
- 'SELECT login, key_tempo, admin, gestionnaire, can_manage_all_users FROM ' . prefixTable('users') . ' WHERE id = %i', |
|
|
187
|
+ 'SELECT login, key_tempo, admin, gestionnaire, can_manage_all_users FROM '.prefixTable('users').' WHERE id = %i', |
|
188
|
188
|
$userId |
|
189
|
189
|
); |
|
190
|
190
|
|