@@ -65,7 +65,7 @@ |
||
65 | 65 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('search') === 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 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('import') === 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 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('fields') === false) { |
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 | ?> |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | if (parseInt($(this).data('category')) === parseInt(selectedCategory)) { |
164 | 164 | fields.push({ |
165 | 165 | id: $(this).data('order'), |
166 | - text: '<?php echo $lang->get('before') . ' '; ?>' + $(this).find('td:eq(1)').text() |
|
166 | + text: '<?php echo $lang->get('before').' '; ?>' + $(this).find('td:eq(1)').text() |
|
167 | 167 | }); |
168 | 168 | } |
169 | 169 | }); |
@@ -569,7 +569,7 @@ discard block |
||
569 | 569 | if ($(this).data('category') === categoryId) { |
570 | 570 | fields.push({ |
571 | 571 | id: $(this).data('order'), |
572 | - text: '<?php echo $lang->get('before') . ' '; ?>' + $(this).find('td:eq(1)').text() |
|
572 | + text: '<?php echo $lang->get('before').' '; ?>' + $(this).find('td:eq(1)').text() |
|
573 | 573 | }); |
574 | 574 | } |
575 | 575 | }); |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | '</tr>'; |
737 | 737 | |
738 | 738 | // Prepare list of categories for Form |
739 | - categoriesList += '<option value="' + categoryId + '"><?php echo $lang->get('before') . ' '; ?>' + val.title + '</option>'; |
|
739 | + categoriesList += '<option value="' + categoryId + '"><?php echo $lang->get('before').' '; ?>' + val.title + '</option>'; |
|
740 | 740 | |
741 | 741 | positionCategory += 1; |
742 | 742 | } else { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('export') === 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 | ?> |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | progress: "#export-password-strength", |
192 | 192 | score: "#export-password-strength" |
193 | 193 | }, |
194 | - scores: [<?php echo TP_PW_STRENGTH_1;?>, <?php echo TP_PW_STRENGTH_2;?>, <?php echo TP_PW_STRENGTH_3;?>, <?php echo TP_PW_STRENGTH_4;?>, <?php echo TP_PW_STRENGTH_5;?>], |
|
194 | + scores: [<?php echo TP_PW_STRENGTH_1; ?>, <?php echo TP_PW_STRENGTH_2; ?>, <?php echo TP_PW_STRENGTH_3; ?>, <?php echo TP_PW_STRENGTH_4; ?>, <?php echo TP_PW_STRENGTH_5; ?>], |
|
195 | 195 | }, |
196 | 196 | i18n : { |
197 | 197 | t: function (key) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('roles') === 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 | |
@@ -127,17 +127,17 @@ discard block |
||
127 | 127 | $arrUserRoles = array_filter($session->get('user-roles_array')); |
128 | 128 | $where = ''; |
129 | 129 | if (count($arrUserRoles) > 0 && (int) $session->get('user-admin') !== 1) { |
130 | - $where = ' WHERE id IN (' . implode(',', $arrUserRoles) . ')'; |
|
130 | + $where = ' WHERE id IN ('.implode(',', $arrUserRoles).')'; |
|
131 | 131 | } |
132 | - $rows = DB::query('SELECT * FROM ' . prefixTable('roles_title') . $where); |
|
132 | + $rows = DB::query('SELECT * FROM '.prefixTable('roles_title').$where); |
|
133 | 133 | foreach ($rows as $reccord) { |
134 | 134 | echo ' |
135 | - <option value="' . $reccord['id'] . '" |
|
136 | - data-complexity-text="' . addslashes(TP_PW_COMPLEXITY[$reccord['complexity']][1]) . '" |
|
137 | - data-complexity-icon="' . TP_PW_COMPLEXITY[$reccord['complexity']][2] . '" |
|
138 | - data-complexity="' . TP_PW_COMPLEXITY[$reccord['complexity']][0] . '" |
|
139 | - data-allow-edit-all="' . $reccord['allow_pw_change'] . '">'. |
|
140 | - $reccord['title'] . '</option>'; |
|
135 | + <option value="' . $reccord['id'].'" |
|
136 | + data-complexity-text="' . addslashes(TP_PW_COMPLEXITY[$reccord['complexity']][1]).'" |
|
137 | + data-complexity-icon="' . TP_PW_COMPLEXITY[$reccord['complexity']][2].'" |
|
138 | + data-complexity="' . TP_PW_COMPLEXITY[$reccord['complexity']][0].'" |
|
139 | + data-allow-edit-all="' . $reccord['allow_pw_change'].'">'. |
|
140 | + $reccord['title'].'</option>'; |
|
141 | 141 | } |
142 | 142 | ?> |
143 | 143 | </select> |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | <?php |
159 | 159 | foreach (TP_PW_COMPLEXITY as $entry) { |
160 | 160 | echo ' |
161 | - <option value="' . $entry[0] . '">' . addslashes($entry[1]) . '</option>'; |
|
161 | + <option value="' . $entry[0].'">'.addslashes($entry[1]).'</option>'; |
|
162 | 162 | } |
163 | 163 | ?> |
164 | 164 | </select> |
@@ -68,7 +68,7 @@ |
||
68 | 68 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('options') === 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 | ?> |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('admin') === 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 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | </div> |
213 | 213 | <?php |
214 | 214 | } else { |
215 | - $job = (array) $results[0];//print_r($job); |
|
215 | + $job = (array) $results[0]; //print_r($job); |
|
216 | 216 | ?> |
217 | 217 | <div> |
218 | 218 | <i class="fa-solid fa-circle-check text-success mr-2"></i><?php echo $lang->get('tasks_cron_running'); ?> |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | <div class="card-body"> |
248 | 248 | <?php |
249 | 249 | // Display information about server |
250 | - $dbSize = DB::queryFirstRow("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'size' FROM information_schema.TABLES WHERE table_schema = '" . DB_NAME . "'"); |
|
250 | + $dbSize = DB::queryFirstRow("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'size' FROM information_schema.TABLES WHERE table_schema = '".DB_NAME."'"); |
|
251 | 251 | |
252 | 252 | // Get OS |
253 | 253 | $uname = php_uname('s'); |
@@ -285,16 +285,16 @@ discard block |
||
285 | 285 | } |
286 | 286 | |
287 | 287 | echo |
288 | - '<p>' . $os. |
|
288 | + '<p>'.$os. |
|
289 | 289 | '<br><span class="ml-4"></span>'. |
290 | 290 | '</p>'. |
291 | - '<p><i class="fa-brands fa-php mr-2"></i>PHP version: ' . phpversion(). |
|
291 | + '<p><i class="fa-brands fa-php mr-2"></i>PHP version: '.phpversion(). |
|
292 | 292 | '<br><span class="ml-4">Memory limit: '.(ini_get('memory_limit')).'</span>'. |
293 | 293 | '<br><span class="ml-4">Memory usage: '.formatSizeUnits(memory_get_usage()).'</span>'. |
294 | 294 | '<br><span class="ml-4">Maximum time execution: '.ini_get('max_execution_time').'</span>'. |
295 | 295 | '<br><span class="ml-4">Maximum file size upload: '.ini_get('upload_max_filesize').'</span>'. |
296 | 296 | '</p>'. |
297 | - '<p><i class="fa-solid fa-server mr-2"></i>Server version: ' . DB::serverVersion(). |
|
297 | + '<p><i class="fa-solid fa-server mr-2"></i>Server version: '.DB::serverVersion(). |
|
298 | 298 | '<br><span class="ml-4">Database size: '.($dbSize['size']).'MB</span>'. |
299 | 299 | '</p>'; |
300 | 300 | |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $serverTime = localtime(time(), true); |
303 | 303 | echo '<div class="row">'. |
304 | 304 | '<div class="col-6"><i class="fa-solid fa-clock mr-2"></i>Server time:</div>'. |
305 | - '<div class="col-6"><span class="badge badge-info">' . $serverTime['tm_hour'].':'.$serverTime['tm_min'].':'.$serverTime['tm_sec'].'</span></div>'. |
|
305 | + '<div class="col-6"><span class="badge badge-info">'.$serverTime['tm_hour'].':'.$serverTime['tm_min'].':'.$serverTime['tm_sec'].'</span></div>'. |
|
306 | 306 | '</div>'. |
307 | 307 | '<div class="row">'. |
308 | 308 | '<div class="col-6"><span class="ml-4">Timezone:</span></div>'. |
@@ -64,7 +64,7 @@ |
||
64 | 64 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.renewal') === false) { |
65 | 65 | // Not allowed page |
66 | 66 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
67 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
67 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
68 | 68 | exit; |
69 | 69 | } |
70 | 70 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('search') === 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 | $var = []; |