@@ -72,7 +72,7 @@ |
||
72 | 72 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.logs') === false) { |
73 | 73 | // Not allowed page |
74 | 74 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
75 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
75 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
76 | 76 | exit; |
77 | 77 | } |
78 | 78 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('fields') === false) { |
66 | 66 | // Not allowed page |
67 | 67 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
68 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
68 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
69 | 69 | exit; |
70 | 70 | } |
71 | 71 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $folders = $tree->getDescendants(); |
178 | 178 | foreach ($folders as $folder) { |
179 | 179 | DB::query( |
180 | - 'SELECT * FROM ' . prefixTable('nested_tree') . ' |
|
180 | + 'SELECT * FROM '.prefixTable('nested_tree').' |
|
181 | 181 | WHERE personal_folder = %i AND id = %i', |
182 | 182 | '0', |
183 | 183 | $folder->id |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $ident .= '-'; |
190 | 190 | } |
191 | 191 | echo ' |
192 | - <option value="' . $folder->id . '">' . $ident . ' ' . str_replace('&', '&', $folder->title) . '</option>'; |
|
192 | + <option value="' . $folder->id.'">'.$ident.' '.str_replace('&', '&', $folder->title).'</option>'; |
|
193 | 193 | } |
194 | 194 | } |
195 | 195 | ?> |
@@ -220,9 +220,9 @@ discard block |
||
220 | 220 | <select class="form-control form-item-control select2" style="width:100%;" id="form-field-type"> |
221 | 221 | <?php |
222 | 222 | // Build list of Types |
223 | - echo '<option value="">-- ' . $lang->get('select') . ' --</option> |
|
224 | - <option value="text">' . $lang->get('text') . '</option> |
|
225 | - <option value="textarea">' . $lang->get('textarea') . '</option>'; |
|
223 | + echo '<option value="">-- '.$lang->get('select').' --</option> |
|
224 | + <option value="text">' . $lang->get('text').'</option> |
|
225 | + <option value="textarea">' . $lang->get('textarea').'</option>'; |
|
226 | 226 | ?> |
227 | 227 | </select> |
228 | 228 | </div> |
@@ -255,14 +255,14 @@ discard block |
||
255 | 255 | <select class="form-control form-item-control select2" multiple="multiple" style="width:100%;" id="form-field-roles"> |
256 | 256 | <?php |
257 | 257 | // Build list of Roles |
258 | - echo '<option value="all">' . $lang->get('every_roles') . '</option>'; |
|
258 | + echo '<option value="all">'.$lang->get('every_roles').'</option>'; |
|
259 | 259 | $rows = DB::query( |
260 | 260 | 'SELECT id, title |
261 | - FROM ' . prefixTable('roles_title') . ' |
|
261 | + FROM ' . prefixTable('roles_title').' |
|
262 | 262 | ORDER BY title ASC' |
263 | 263 | ); |
264 | 264 | foreach ($rows as $record) { |
265 | - echo '<option value="' . $record['id'] . '">' . addslashes($record['title']) . '</option>'; |
|
265 | + echo '<option value="'.$record['id'].'">'.addslashes($record['title']).'</option>'; |
|
266 | 266 | } |
267 | 267 | ?> |
268 | 268 | </select> |
@@ -71,7 +71,7 @@ |
||
71 | 71 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.logs') === false) { |
72 | 72 | // Not allowed page |
73 | 73 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
74 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
74 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
75 | 75 | exit; |
76 | 76 | } |
77 | 77 | ?> |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | ) { |
68 | 68 | // Not allowed page |
69 | 69 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
70 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
70 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
71 | 71 | exit; |
72 | 72 | } |
73 | 73 | |
@@ -538,8 +538,7 @@ discard block |
||
538 | 538 | $post_masked = filter_var($dataReceived['masked'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); |
539 | 539 | $post_encrypted = filter_var($dataReceived['encrypted'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); |
540 | 540 | $post_roles = filter_var_array($dataReceived['roles'], FILTER_SANITIZE_FULL_SPECIAL_CHARS); |
541 | - $post_fieldId = isset($dataReceived['fieldId']) === false ? '' : |
|
542 | - filter_var($dataReceived['fieldId'], FILTER_SANITIZE_NUMBER_INT); |
|
541 | + $post_fieldId = isset($dataReceived['fieldId']) === false ? '' : filter_var($dataReceived['fieldId'], FILTER_SANITIZE_NUMBER_INT); |
|
543 | 542 | |
544 | 543 | if (empty($post_fieldId) === false) { |
545 | 544 | // UPDATE FIELD |
@@ -555,7 +554,7 @@ discard block |
||
555 | 554 | 'encrypted_data' => $post_encrypted, |
556 | 555 | 'is_mandatory' => $post_mandatory, |
557 | 556 | 'masked' => $post_masked, |
558 | - 'role_visibility' => is_null($post_roles) === true || count($post_roles) ===0 ? '' : implode(',', $post_roles), |
|
557 | + 'role_visibility' => is_null($post_roles) === true || count($post_roles) === 0 ? '' : implode(',', $post_roles), |
|
559 | 558 | 'order' => calculateOrder($post_fieldId, $post_order), |
560 | 559 | ), |
561 | 560 | 'id = %i', |
@@ -69,7 +69,7 @@ |
||
69 | 69 | ) { |
70 | 70 | // Not allowed page |
71 | 71 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
72 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
72 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
73 | 73 | exit; |
74 | 74 | } |
75 | 75 |
@@ -69,7 +69,7 @@ |
||
69 | 69 | ) { |
70 | 70 | // Not allowed page |
71 | 71 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
72 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
72 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
73 | 73 | exit; |
74 | 74 | } |
75 | 75 |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('backups') === false) { |
69 | 69 | // Not allowed page |
70 | 70 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
71 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
71 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
72 | 72 | exit; |
73 | 73 | } |
74 | 74 | ?> |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | // ERROR |
138 | 138 | toastr.remove(); |
139 | 139 | toastr.error( |
140 | - '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error, |
|
140 | + '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error, |
|
141 | 141 | '<?php echo $lang->get('error'); ?>', { |
142 | 142 | timeOut: 5000, |
143 | 143 | progressBar: true |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | // error |
165 | 165 | toastr.remove(); |
166 | 166 | toastr.error( |
167 | - '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error, |
|
167 | + '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error, |
|
168 | 168 | '<?php echo $lang->get('error'); ?>', { |
169 | 169 | timeOut: 5000, |
170 | 170 | progressBar: true |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | // ERROR |
236 | 236 | toastr.remove(); |
237 | 237 | toastr.error( |
238 | - '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + data.error, |
|
238 | + '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + data.error, |
|
239 | 239 | '<?php echo $lang->get('error'); ?>', { |
240 | 240 | timeOut: 5000, |
241 | 241 | progressBar: true |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | // PREPARE UPLOADER with plupload |
272 | 272 | <?php |
273 | 273 | $maxFileSize = (strrpos($SETTINGS['upload_maxfilesize'], 'mb') === false) |
274 | - ? $SETTINGS['upload_maxfilesize'] . 'mb' |
|
274 | + ? $SETTINGS['upload_maxfilesize'].'mb' |
|
275 | 275 | : $SETTINGS['upload_maxfilesize']; |
276 | 276 | ?> |
277 | 277 |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.logs') === false) { |
67 | 67 | // Not allowed page |
68 | 68 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
69 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
69 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
70 | 70 | exit; |
71 | 71 | } |
72 | 72 | |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | echo $session->has('user-admin') && (int) $session->get('user-admin') && null !== $session->get('user-admin') && (int) $session->get('user-admin') === 1 ? '' : ' hidden'; |
204 | 204 | ?>"> |
205 | 205 | <div class="form-group"> |
206 | - <h5><i class="fas fa-broom mr-2"></i><?php echo $lang->get('purge') . ' ' . $lang->get('date_range'); ?></h5> |
|
206 | + <h5><i class="fas fa-broom mr-2"></i><?php echo $lang->get('purge').' '.$lang->get('date_range'); ?></h5> |
|
207 | 207 | <div class="input-group"> |
208 | 208 | <div class="input-group-prepend"> |
209 | 209 | <span class="input-group-text"> |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | <select class="form-control" id="purge-filter-user"> |
227 | 227 | <option value="-1"><?php echo $lang->get('all'); ?></option> |
228 | 228 | <?php |
229 | - $rows = DB::query('SELECT id, name, lastname FROM ' . prefixTable('users') . ' WHERE admin = 0'); |
|
229 | + $rows = DB::query('SELECT id, name, lastname FROM '.prefixTable('users').' WHERE admin = 0'); |
|
230 | 230 | foreach ($rows as $record) { |
231 | 231 | echo ' |
232 | 232 | <option value="'.$record['id'].'">'.$record['name'].' '.$record['lastname'].'</option>'; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | // Update table by deleting ID |
61 | 61 | if ($session->has('user-id') && null !== $session->get('user-id')) { |
62 | 62 | DB::update( |
63 | - DB_PREFIX . 'users', |
|
63 | + DB_PREFIX.'users', |
|
64 | 64 | [ |
65 | 65 | 'key_tempo' => '', |
66 | 66 | ], |