@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ) { |
78 | 78 | // Not allowed page |
79 | 79 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
80 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
80 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
81 | 81 | exit; |
82 | 82 | } |
83 | 83 | |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | ); |
463 | 463 | |
464 | 464 | // add new role to user |
465 | - $tmp = $data_tmp['fonction_id'] . (substr($data_tmp['fonction_id'], -1) == ';' ? $role_id : ';' . $role_id); |
|
465 | + $tmp = $data_tmp['fonction_id'].(substr($data_tmp['fonction_id'], -1) == ';' ? $role_id : ';'.$role_id); |
|
466 | 466 | $session->set('user-roles', str_replace(';;', ';', $tmp)); |
467 | 467 | |
468 | 468 | // store in DB |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | $groupsData = $openLdapExtra->getADGroups($ldapConnection, $SETTINGS); |
724 | 724 | break; |
725 | 725 | default: |
726 | - throw new Exception("Unsupported LDAP type: " . $SETTINGS['ldap_type']); |
|
726 | + throw new Exception("Unsupported LDAP type: ".$SETTINGS['ldap_type']); |
|
727 | 727 | } |
728 | 728 | } catch (Exception $e) { |
729 | 729 | if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) { |
@@ -743,7 +743,7 @@ discard block |
||
743 | 743 | } else { |
744 | 744 | // Handle successful retrieval of groups |
745 | 745 | // exists in Teampass |
746 | - foreach($groupsData['userGroups'] as $key => $group) { |
|
746 | + foreach ($groupsData['userGroups'] as $key => $group) { |
|
747 | 747 | $role_detail = DB::queryfirstrow( |
748 | 748 | 'SELECT a.increment_id as increment_id, a.role_id as role_id, r.title as title |
749 | 749 | FROM '.prefixTable('ldap_groups_roles').' AS a |
@@ -768,7 +768,7 @@ discard block |
||
768 | 768 | |
769 | 769 | // Get all groups in Teampass |
770 | 770 | $teampassRoles = array(); |
771 | - $rows = DB::query('SELECT id,title FROM ' . prefixTable('roles_title')); |
|
771 | + $rows = DB::query('SELECT id,title FROM '.prefixTable('roles_title')); |
|
772 | 772 | foreach ($rows as $record) { |
773 | 773 | array_push( |
774 | 774 | $teampassRoles, |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ) { |
81 | 81 | // Not allowed page |
82 | 82 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
83 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
83 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
84 | 84 | exit; |
85 | 85 | } |
86 | 86 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $openLdapExtra = new OpenLdapExtra(); |
155 | 155 | break; |
156 | 156 | default: |
157 | - throw new Exception("Unsupported LDAP type: " . $SETTINGS['ldap_type']); |
|
157 | + throw new Exception("Unsupported LDAP type: ".$SETTINGS['ldap_type']); |
|
158 | 158 | } |
159 | 159 | } catch (Exception $e) { |
160 | 160 | if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | // 2- Get user info from AD |
174 | 174 | // We want to isolate attribute ldap_user_attribute or mostly samAccountName |
175 | 175 | $userADInfos = $ldapConnection->query() |
176 | - ->where((isset($SETTINGS['ldap_user_attribute']) ===true && empty($SETTINGS['ldap_user_attribute']) === false) ? $SETTINGS['ldap_user_attribute'] : 'samaccountname', '=', $post_username) |
|
176 | + ->where((isset($SETTINGS['ldap_user_attribute']) === true && empty($SETTINGS['ldap_user_attribute']) === false) ? $SETTINGS['ldap_user_attribute'] : 'samaccountname', '=', $post_username) |
|
177 | 177 | ->firstOrFail(); |
178 | 178 | |
179 | 179 | // Is user enabled? Only ActiveDirectory |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } catch (\LdapRecord\Query\ObjectNotFoundException $e) { |
195 | 195 | $error = $e->getDetailedError(); |
196 | 196 | if ($error && defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) { |
197 | - error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage(). " - ".$error->getDiagnosticMessage()); |
|
197 | + error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage()." - ".$error->getDiagnosticMessage()); |
|
198 | 198 | } |
199 | 199 | // deepcode ignore ServerLeak: No important data is sent and is encrypted before being sent |
200 | 200 | echo prepareExchangedData( |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | // For OpenLDAP and others, we use attribute dn |
214 | 214 | $userAuthAttempt = $ldapConnection->auth()->attempt( |
215 | 215 | $SETTINGS['ldap_type'] === 'ActiveDirectory' ? |
216 | - $userADInfos['userprincipalname'][0] : // refering to https://ldaprecord.com/docs/core/v2/authentication#basic-authentication |
|
216 | + $userADInfos['userprincipalname'][0] : // refering to https://ldaprecord.com/docs/core/v2/authentication#basic-authentication |
|
217 | 217 | $userADInfos['dn'], |
218 | 218 | $post_password |
219 | 219 | ); |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | } catch (\LdapRecord\Query\ObjectNotFoundException $e) { |
233 | 233 | $error = $e->getDetailedError(); |
234 | 234 | if ($error && defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) { |
235 | - error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage(). " - ".$error->getDiagnosticMessage()); |
|
235 | + error_log('TEAMPASS Error - LDAP - '.$error->getErrorCode()." - ".$error->getErrorMessage()." - ".$error->getDiagnosticMessage()); |
|
236 | 236 | } |
237 | 237 | // deepcode ignore ServerLeak: No important data is sent and is encrypted before being sent |
238 | 238 | echo prepareExchangedData( |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | function provideLog(string $message, array $SETTINGS) |
103 | 103 | { |
104 | 104 | if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) { |
105 | - error_log((string) date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], time()) . ' - '.$message); |
|
105 | + error_log((string) date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], time()).' - '.$message); |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 | |
109 | -function performVisibleFoldersHtmlUpdate (int $user_id) |
|
109 | +function performVisibleFoldersHtmlUpdate(int $user_id) |
|
110 | 110 | { |
111 | 111 | $html = []; |
112 | 112 | |
@@ -116,10 +116,10 @@ discard block |
||
116 | 116 | |
117 | 117 | // get current folders visible for user |
118 | 118 | $cache_tree = DB::queryFirstRow( |
119 | - 'SELECT increment_id, data FROM ' . prefixTable('cache_tree') . ' WHERE user_id = %i', |
|
119 | + 'SELECT increment_id, data FROM '.prefixTable('cache_tree').' WHERE user_id = %i', |
|
120 | 120 | $user_id |
121 | 121 | ); |
122 | - $folders = json_decode($cache_tree['data'], true);//print_r($folders); |
|
122 | + $folders = json_decode($cache_tree['data'], true); //print_r($folders); |
|
123 | 123 | foreach ($folders as $folder) { |
124 | 124 | $idFolder = (int) explode("li_", $folder['id'])[1]; |
125 | 125 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | // get folder info |
134 | 134 | $folder = DB::queryFirstRow( |
135 | - 'SELECT title, parent_id, personal_folder FROM ' . prefixTable('nested_tree') . ' WHERE id = %i', |
|
135 | + 'SELECT title, parent_id, personal_folder FROM '.prefixTable('nested_tree').' WHERE id = %i', |
|
136 | 136 | $idFolder |
137 | 137 | ); |
138 | 138 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | function subTaskStatus($taskId) |
168 | 168 | { |
169 | 169 | $subTasks = DB::query( |
170 | - 'SELECT * FROM ' . prefixTable('background_subtasks') . ' WHERE task_id = %i', |
|
170 | + 'SELECT * FROM '.prefixTable('background_subtasks').' WHERE task_id = %i', |
|
171 | 171 | $taskId |
172 | 172 | ); |
173 | 173 |
@@ -149,8 +149,7 @@ |
||
149 | 149 | </div> |
150 | 150 | <?php |
151 | 151 | } |
152 | -} |
|
153 | -catch (Exception $e) { |
|
152 | +} catch (Exception $e) { |
|
154 | 153 | if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) { |
155 | 154 | error_log('TEAMPASS Error - tasks page - '.$e->getMessage()); |
156 | 155 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('tasks') === 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 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | // Get last cron execution timestamp |
127 | 127 | DB::query( |
128 | 128 | 'SELECT valeur |
129 | - FROM ' . prefixTable('misc') . ' |
|
129 | + FROM ' . prefixTable('misc').' |
|
130 | 130 | WHERE type = %s AND intitule = %s and valeur >= %d', |
131 | 131 | 'admin', |
132 | 132 | 'last_cron_exec', |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $task = isset($SETTINGS['users_personal_folder_task']) === true ? explode(";", $SETTINGS['users_personal_folder_task']) : []; |
235 | 235 | ?> |
236 | 236 | <input type='text' disabled class='form-control form-control-sm' id='users_personal_folder_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'> |
237 | - <input type='hidden' disabled class='form-control form-control-sm' id='users_personal_folder_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'> |
|
237 | + <input type='hidden' disabled class='form-control form-control-sm' id='users_personal_folder_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'> |
|
238 | 238 | </div> |
239 | 239 | <div class='col-2'> |
240 | 240 | <button class="btn btn-primary task-define" data-task="users_personal_folder_task"> |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | $task = isset($SETTINGS['clean_orphan_objects_task']) === true ? explode(";", $SETTINGS['clean_orphan_objects_task']) : []; |
257 | 257 | ?> |
258 | 258 | <input type='text' disabled class='form-control form-control-sm' id='clean_orphan_objects_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'> |
259 | - <input type='hidden' disabled class='form-control form-control-sm' id='clean_orphan_objects_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'> |
|
259 | + <input type='hidden' disabled class='form-control form-control-sm' id='clean_orphan_objects_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'> |
|
260 | 260 | </div> |
261 | 261 | <div class='col-2'> |
262 | 262 | <button class="btn btn-primary task-define" data-task="clean_orphan_objects_task"> |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $task = isset($SETTINGS['purge_temporary_files_task']) === true ? explode(";", $SETTINGS['purge_temporary_files_task']) : []; |
279 | 279 | ?> |
280 | 280 | <input type='text' disabled class='form-control form-control-sm' id='purge_temporary_files_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'> |
281 | - <input type='hidden' disabled class='form-control form-control-sm' id='purge_temporary_files_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'> |
|
281 | + <input type='hidden' disabled class='form-control form-control-sm' id='purge_temporary_files_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'> |
|
282 | 282 | </div> |
283 | 283 | <div class='col-2'> |
284 | 284 | <button class="btn btn-primary task-define" data-task="purge_temporary_files_task"> |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | $task = isset($SETTINGS['reload_cache_table_task']) === true ? explode(";", $SETTINGS['reload_cache_table_task']) : []; |
301 | 301 | ?> |
302 | 302 | <input type='text' disabled class='form-control form-control-sm' id='reload_cache_table_task_parameter' value='<?php echo isset($task[0]) === true && empty($task[0]) === false ? $lang->get($task[0])." ".(isset($task[2]) === true ? strtolower($lang->get('day')).' '.$task[2].' ' : '').$lang->get('at')." ".(isset($task[1]) === true ? $task[1] : '') : $lang->get('not_defined') ?>'> |
303 | - <input type='hidden' disabled class='form-control form-control-sm' id='reload_cache_table_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : '';?>'> |
|
303 | + <input type='hidden' disabled class='form-control form-control-sm' id='reload_cache_table_task_parameter_value' value='<?php echo isset($task[0]) === true ? $task[0].";".(isset($task[1]) === true ? $task[1] : '').(isset($task[2]) === true ? $task[2] : '') : ''; ?>'> |
|
304 | 304 | </div> |
305 | 305 | <div class='col-2'> |
306 | 306 | <button class="btn btn-primary task-define" data-task="reload_cache_table_task"> |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | <h5><?php echo $lang->get('day_of_month'); ?></h5> |
518 | 518 | <select class='form-control form-control-sm no-save' id='task-define-modal-parameter-monthly-value' style="width:100%;"> |
519 | 519 | <?php |
520 | - for ($i=1; $i<=31; $i++) { |
|
520 | + for ($i = 1; $i <= 31; $i++) { |
|
521 | 521 | echo '<option value="'.$i.'">'.$lang->get('day').' '.$i.'</option>'; |
522 | 522 | } |
523 | 523 | ?> |
@@ -222,8 +222,7 @@ |
||
222 | 222 | </div> |
223 | 223 | <?php |
224 | 224 | } |
225 | -} |
|
226 | -catch (Exception $e) { |
|
225 | +} catch (Exception $e) { |
|
227 | 226 | if (defined('LOG_TO_SERVER') && LOG_TO_SERVER === true) { |
228 | 227 | error_log('TEAMPASS Error - admin page - '.$e->getMessage()); |
229 | 228 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('admin') === 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 | |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | // Get last cron execution timestamp |
200 | 200 | DB::query( |
201 | 201 | 'SELECT valeur |
202 | - FROM ' . prefixTable('misc') . ' |
|
202 | + FROM ' . prefixTable('misc').' |
|
203 | 203 | WHERE type = %s AND intitule = %s and valeur >= %d', |
204 | 204 | 'admin', |
205 | 205 | 'last_cron_exec', |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | <div class="card-body"> |
271 | 271 | <?php |
272 | 272 | // Display information about server |
273 | - $dbSize = DB::queryFirstRow("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'size' FROM information_schema.TABLES WHERE table_schema = '" . DB_NAME . "'"); |
|
273 | + $dbSize = DB::queryFirstRow("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS 'size' FROM information_schema.TABLES WHERE table_schema = '".DB_NAME."'"); |
|
274 | 274 | |
275 | 275 | // Get OS |
276 | 276 | $uname = php_uname('s'); |
@@ -326,17 +326,17 @@ discard block |
||
326 | 326 | } |
327 | 327 | |
328 | 328 | echo |
329 | - '<p>' . $os. |
|
329 | + '<p>'.$os. |
|
330 | 330 | '<br><span class="ml-4"></span>'. |
331 | 331 | '</p>'. |
332 | 332 | $internetAccess. |
333 | - '<p><i class="fa-brands fa-php mr-2"></i>PHP version: ' . phpversion(). |
|
333 | + '<p><i class="fa-brands fa-php mr-2"></i>PHP version: '.phpversion(). |
|
334 | 334 | '<br><span class="ml-4">Memory limit: '.(ini_get('memory_limit')).'</span>'. |
335 | 335 | '<br><span class="ml-4">Memory usage: '.formatSizeUnits(memory_get_usage()).'</span>'. |
336 | 336 | '<br><span class="ml-4">Maximum time execution: '.ini_get('max_execution_time').'</span>'. |
337 | 337 | '<br><span class="ml-4">Maximum file size upload: '.ini_get('upload_max_filesize').'</span>'. |
338 | 338 | '</p>'. |
339 | - '<p><i class="fa-solid fa-server mr-2"></i>Server version: ' . DB::serverVersion(). |
|
339 | + '<p><i class="fa-solid fa-server mr-2"></i>Server version: '.DB::serverVersion(). |
|
340 | 340 | '<br><span class="ml-4">Database size: '.($dbSize['size']).'MB</span>'. |
341 | 341 | '</p>'; |
342 | 342 | |
@@ -344,11 +344,11 @@ discard block |
||
344 | 344 | $serverTime = localtime(time(), true); |
345 | 345 | echo '<div class="row">'. |
346 | 346 | '<div class="col-6"><i class="fa-solid fa-clock mr-2"></i>Server time:</div>'. |
347 | - '<div class="col-6"><span class="badge badge-info">' . |
|
348 | - str_pad(strval($serverTime['tm_hour']), 2, "0", STR_PAD_LEFT) . ':' . |
|
349 | - str_pad(strval($serverTime['tm_min']), 2, "0", STR_PAD_LEFT) . ':' . |
|
350 | - str_pad(strval($serverTime['tm_sec']), 2, "0", STR_PAD_LEFT) . |
|
351 | - '</span></div>' . |
|
347 | + '<div class="col-6"><span class="badge badge-info">'. |
|
348 | + str_pad(strval($serverTime['tm_hour']), 2, "0", STR_PAD_LEFT).':'. |
|
349 | + str_pad(strval($serverTime['tm_min']), 2, "0", STR_PAD_LEFT).':'. |
|
350 | + str_pad(strval($serverTime['tm_sec']), 2, "0", STR_PAD_LEFT). |
|
351 | + '</span></div>'. |
|
352 | 352 | '</div>'. |
353 | 353 | '<div class="row">'. |
354 | 354 | '<div class="col-6"><span class="ml-4">Timezone:</span></div>'. |
@@ -57,16 +57,16 @@ discard block |
||
57 | 57 | { |
58 | 58 | // Load AntiXSS |
59 | 59 | $antiXss = new AntiXSS(); |
60 | - if (! headers_sent()) { //If headers not sent yet... then do php redirect |
|
61 | - header('Location: ' . $antiXss->xss_clean($url)); |
|
60 | + if (!headers_sent()) { //If headers not sent yet... then do php redirect |
|
61 | + header('Location: '.$antiXss->xss_clean($url)); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | //If headers are sent... do java redirect... if java disabled, do html redirect. |
65 | 65 | echo '<script type="text/javascript">'; |
66 | - echo 'window.location.href="' . $antiXss->xss_clean($url) . '";'; |
|
66 | + echo 'window.location.href="'.$antiXss->xss_clean($url).'";'; |
|
67 | 67 | echo '</script>'; |
68 | 68 | echo '<noscript>'; |
69 | - echo '<meta http-equiv="refresh" content="0;url=' . $antiXss->xss_clean($url) . '" />'; |
|
69 | + echo '<meta http-equiv="refresh" content="0;url='.$antiXss->xss_clean($url).'" />'; |
|
70 | 70 | echo '</noscript>'; |
71 | 71 | } |
72 | 72 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | && isset($SETTINGS['enable_sts']) === true |
93 | 93 | && (int) $SETTINGS['enable_sts'] === 1 |
94 | 94 | ) { |
95 | - teampassRedirect('https://' . $server['http_host'] . $server['request_uri']); |
|
95 | + teampassRedirect('https://'.$server['http_host'].$server['request_uri']); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | // Load pwComplexity |
@@ -113,11 +113,11 @@ discard block |
||
113 | 113 | // LOAD CPASSMAN SETTINGS |
114 | 114 | if ( |
115 | 115 | isset($SETTINGS['cpassman_dir']) === true |
116 | - && is_dir($SETTINGS['cpassman_dir'] . '/install') === true |
|
116 | + && is_dir($SETTINGS['cpassman_dir'].'/install') === true |
|
117 | 117 | ) { |
118 | 118 | // Should we delete folder INSTALL? |
119 | 119 | $row = DB::queryFirstRow( |
120 | - 'SELECT valeur FROM ' . prefixTable('misc') . ' WHERE type=%s AND intitule=%s', |
|
120 | + 'SELECT valeur FROM '.prefixTable('misc').' WHERE type=%s AND intitule=%s', |
|
121 | 121 | 'install', |
122 | 122 | 'clear_install_folder' |
123 | 123 | ); |
@@ -135,11 +135,11 @@ discard block |
||
135 | 135 | if ($directories !== false) { |
136 | 136 | $files = array_diff($directories, ['.', '..']); |
137 | 137 | foreach ($files as $file) { |
138 | - if (is_dir($dir . '/' . $file)) { |
|
139 | - delTree($dir . '/' . $file); |
|
138 | + if (is_dir($dir.'/'.$file)) { |
|
139 | + delTree($dir.'/'.$file); |
|
140 | 140 | } else { |
141 | 141 | try { |
142 | - unlink($dir . '/' . $file); |
|
142 | + unlink($dir.'/'.$file); |
|
143 | 143 | } catch (Exception $e) { |
144 | 144 | // do nothing... php will ignore and continue |
145 | 145 | } |
@@ -153,13 +153,13 @@ discard block |
||
153 | 153 | return false; |
154 | 154 | } |
155 | 155 | |
156 | - if (is_dir($SETTINGS['cpassman_dir'] . '/install')) { |
|
156 | + if (is_dir($SETTINGS['cpassman_dir'].'/install')) { |
|
157 | 157 | // Set the permissions on the install directory and delete |
158 | 158 | // is server Windows or Linux? |
159 | 159 | if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { |
160 | - recursiveChmod($SETTINGS['cpassman_dir'] . '/install', 0755, 0440); |
|
160 | + recursiveChmod($SETTINGS['cpassman_dir'].'/install', 0755, 0440); |
|
161 | 161 | } |
162 | - delTree($SETTINGS['cpassman_dir'] . '/install'); |
|
162 | + delTree($SETTINGS['cpassman_dir'].'/install'); |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | // Delete temporary install table |
@@ -177,10 +177,10 @@ discard block |
||
177 | 177 | // Load Languages stuff |
178 | 178 | if (isset($languagesList) === false) { |
179 | 179 | $languagesList = []; |
180 | - $rows = DB::query('SELECT * FROM ' . prefixTable('languages') . ' GROUP BY name, label, code, flag, id ORDER BY name ASC'); |
|
180 | + $rows = DB::query('SELECT * FROM '.prefixTable('languages').' GROUP BY name, label, code, flag, id ORDER BY name ASC'); |
|
181 | 181 | foreach ($rows as $record) { |
182 | 182 | array_push($languagesList, $record['name']); |
183 | - if ($session->get('user-language') === $record['name'] ) { |
|
183 | + if ($session->get('user-language') === $record['name']) { |
|
184 | 184 | $session->set('user-language_flag', $record['flag']); |
185 | 185 | $session->set('user-language_code', $record['code']); |
186 | 186 | //$session->set('user-language_label', $record['label']); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | // CHECK IF SESSION EXISTS AND IF SESSION IS VALID |
238 | 238 | if (empty($session->get('user-session_duration')) === false) { |
239 | 239 | $dataSession = DB::queryFirstRow( |
240 | - 'SELECT key_tempo FROM ' . prefixTable('users') . ' WHERE id=%i', |
|
240 | + 'SELECT key_tempo FROM '.prefixTable('users').' WHERE id=%i', |
|
241 | 241 | $session->get('user-id') |
242 | 242 | ); |
243 | 243 | } else { |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | && ($session->has('user-admin') && $session->get('user-admin') && null !== $session->get('user-admin') && $session->get('user-admin') === 1) |
293 | 293 | ) { |
294 | 294 | $row = DB::queryFirstRow( |
295 | - 'SELECT valeur FROM ' . prefixTable('misc') . ' WHERE type=%s_type AND intitule=%s_intitule', |
|
295 | + 'SELECT valeur FROM '.prefixTable('misc').' WHERE type=%s_type AND intitule=%s_intitule', |
|
296 | 296 | [ |
297 | 297 | 'type' => 'admin', |
298 | 298 | 'intitule' => 'teampass_version', |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | |
334 | 334 | syslog( |
335 | 335 | LOG_WARNING, |
336 | - 'Unlog user: ' . date('Y/m/d H:i:s') . " {$server['remote_addr']} ({$server['http_user_agent']})" |
|
336 | + 'Unlog user: '.date('Y/m/d H:i:s')." {$server['remote_addr']} ({$server['http_user_agent']})" |
|
337 | 337 | ); |
338 | 338 | // erase session table |
339 | 339 | $session->invalidate(); |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | if ($session->has('user-timezone') && null !== $session->get('user-id') && empty($session->get('user-id')) === false) { |
390 | 390 | // query on user |
391 | 391 | $data = DB::queryfirstrow( |
392 | - 'SELECT login, admin, gestionnaire, can_manage_all_users, groupes_visibles, groupes_interdits, fonction_id, last_connexion, roles_from_ad_groups, auth_type, last_pw_change FROM ' . prefixTable('users') . ' WHERE id=%i', |
|
392 | + 'SELECT login, admin, gestionnaire, can_manage_all_users, groupes_visibles, groupes_interdits, fonction_id, last_connexion, roles_from_ad_groups, auth_type, last_pw_change FROM '.prefixTable('users').' WHERE id=%i', |
|
393 | 393 | $session->get('user-id') |
394 | 394 | ); |
395 | 395 | //Check if user has been deleted or unlogged |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | $data['groupes_visibles'], |
437 | 437 | $data['groupes_interdits'], |
438 | 438 | $data['admin'], |
439 | - is_null($data['roles_from_ad_groups']) === true ? $data['fonction_id'] : (empty($data['roles_from_ad_groups']) === true ? $data['fonction_id'] : $data['fonction_id'] . ';' . $data['roles_from_ad_groups']), |
|
439 | + is_null($data['roles_from_ad_groups']) === true ? $data['fonction_id'] : (empty($data['roles_from_ad_groups']) === true ? $data['fonction_id'] : $data['fonction_id'].';'.$data['roles_from_ad_groups']), |
|
440 | 440 | $SETTINGS |
441 | 441 | ); |
442 | 442 | if ($session->has('user-can_create_root_folder') && (int) $session->get('user-can_create_root_folder') && null !== $session->get('user-can_create_root_folder') && (int) $session->get('user-can_create_root_folder') === 1) { |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | $session->set('system-item_fields', []); |
472 | 472 | $rows = DB::query( |
473 | 473 | 'SELECT * |
474 | - FROM ' . prefixTable('categories') . ' |
|
474 | + FROM ' . prefixTable('categories').' |
|
475 | 475 | WHERE level=%i', |
476 | 476 | '0' |
477 | 477 | ); |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | // get each field |
481 | 481 | $rows2 = DB::query( |
482 | 482 | 'SELECT * |
483 | - FROM ' . prefixTable('categories') . ' |
|
483 | + FROM ' . prefixTable('categories').' |
|
484 | 484 | WHERE parent_id=%i |
485 | 485 | ORDER BY `order` ASC', |
486 | 486 | $record['id'] |
@@ -567,5 +567,5 @@ discard block |
||
567 | 567 | } |
568 | 568 | |
569 | 569 | /* CHECK NUMBER OF USER ONLINE */ |
570 | -DB::query('SELECT * FROM ' . prefixTable('users') . ' WHERE timestamp>=%i', time() - 600); |
|
570 | +DB::query('SELECT * FROM '.prefixTable('users').' WHERE timestamp>=%i', time() - 600); |
|
571 | 571 | $session->set('system-nb_users_online', DB::count()); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | // launched several times. |
70 | 70 | $record = DB::queryFirstRow( |
71 | 71 | 'SELECT * |
72 | - FROM ' . prefixTable('background_tasks') . ' |
|
72 | + FROM ' . prefixTable('background_tasks').' |
|
73 | 73 | WHERE is_in_progress = %i AND process_type = %s |
74 | 74 | ORDER BY increment_id ASC LIMIT 1', |
75 | 75 | 0, |
@@ -77,8 +77,9 @@ |
||
77 | 77 | ); |
78 | 78 | |
79 | 79 | // No more pending user_build_cache_tree tasks |
80 | - if (DB::count() === 0) |
|
81 | - exit; |
|
80 | + if (DB::count() === 0) { |
|
81 | + exit; |
|
82 | + } |
|
82 | 83 | |
83 | 84 | // get email properties |
84 | 85 | $arguments = json_decode($record['arguments'], true); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('oauth') === 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 | ?> |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | }).fail(function(error) { |
216 | 216 | toastr.remove(); |
217 | 217 | toastr.error( |
218 | - '<?php echo $lang->get('server_answer_error') . '<br />' . $lang->get('server_returned_data') . ':<br />'; ?>' + error, |
|
218 | + '<?php echo $lang->get('server_answer_error').'<br />'.$lang->get('server_returned_data').':<br />'; ?>' + error, |
|
219 | 219 | '', { |
220 | 220 | closeButton: true, |
221 | 221 | positionClass: 'toast-bottom-right' |
@@ -81,8 +81,9 @@ discard block |
||
81 | 81 | $session = SessionManager::getSession(); |
82 | 82 | |
83 | 83 | // Random encryption key |
84 | -if ($session->get('key') === null) |
|
84 | +if ($session->get('key') === null) { |
|
85 | 85 | $session->set('key', generateQuickPassword(30, false)); |
86 | +} |
|
86 | 87 | |
87 | 88 | $request = SymfonyRequest::createFromGlobals(); |
88 | 89 | $configManager = new ConfigManager(__DIR__, $request->getRequestUri()); |
@@ -943,7 +944,10 @@ discard block |
||
943 | 944 | <input type="password" class="form-control" id="dialog-ldap-user-build-keys-database-code"> |
944 | 945 | <br/> |
945 | 946 | </div> |
946 | - <div class="input-group mb-3<?php if ($session_auth_type === 'oauth2') echo ' hidden'; ?>"> |
|
947 | + <div class="input-group mb-3<?php if ($session_auth_type === 'oauth2') { |
|
948 | + echo ' hidden'; |
|
949 | +} |
|
950 | +?>"> |
|
947 | 951 | <div class="input-group-prepend"> |
948 | 952 | <span class="input-group-text"><?php echo $lang->get('provide_your_current_password'); ?></span> |
949 | 953 | </div> |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | csrfProtector::init(); |
74 | 74 | |
75 | 75 | // Load functions |
76 | -require_once __DIR__. '/includes/config/include.php'; |
|
76 | +require_once __DIR__.'/includes/config/include.php'; |
|
77 | 77 | require_once __DIR__.'/sources/main.functions.php'; |
78 | 78 | |
79 | 79 | // init |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $SETTINGS = $antiXss->xss_clean($SETTINGS); |
108 | 108 | |
109 | 109 | // Load Core library |
110 | -require_once $SETTINGS['cpassman_dir'] . '/sources/core.php'; |
|
110 | +require_once $SETTINGS['cpassman_dir'].'/sources/core.php'; |
|
111 | 111 | // Prepare POST variables |
112 | 112 | $post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_FULL_SPECIAL_CHARS); |
113 | 113 | $session_user_language = $session->get('user-language'); |
@@ -146,8 +146,8 @@ discard block |
||
146 | 146 | //get default language |
147 | 147 | $dataLanguage = DB::queryFirstRow( |
148 | 148 | 'SELECT m.valeur AS valeur, l.flag AS flag |
149 | - FROM ' . prefixTable('misc') . ' AS m |
|
150 | - INNER JOIN ' . prefixTable('languages') . ' AS l ON (m.valeur = l.name) |
|
149 | + FROM ' . prefixTable('misc').' AS m |
|
150 | + INNER JOIN ' . prefixTable('languages').' AS l ON (m.valeur = l.name) |
|
151 | 151 | WHERE m.type=%s_type AND m.intitule=%s_intitule', |
152 | 152 | [ |
153 | 153 | 'type' => 'admin', |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $session_user_language = $SETTINGS['default_language']; |
179 | 179 | } |
180 | 180 | } |
181 | -$lang = new Language($session_user_language, __DIR__. '/includes/language/'); |
|
181 | +$lang = new Language($session_user_language, __DIR__.'/includes/language/'); |
|
182 | 182 | |
183 | 183 | if (isset($SETTINGS['cpassman_dir']) === false || $SETTINGS['cpassman_dir'] === '') { |
184 | 184 | $SETTINGS['cpassman_dir'] = __DIR__; |
@@ -252,29 +252,29 @@ discard block |
||
252 | 252 | </script> |
253 | 253 | |
254 | 254 | <!-- IonIcons --> |
255 | - <link rel="stylesheet" href="includes/css/ionicons.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
255 | + <link rel="stylesheet" href="includes/css/ionicons.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
256 | 256 | <!-- Theme style --> |
257 | - <link rel="stylesheet" href="plugins/adminlte/css/adminlte.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
258 | - <link rel="stylesheet" href="plugins/pace-progress/themes/corner-indicator.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" /> |
|
259 | - <link rel="stylesheet" href="plugins/select2/css/select2.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" /> |
|
260 | - <link rel="stylesheet" href="plugins/select2/theme/select2-bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" /> |
|
257 | + <link rel="stylesheet" href="plugins/adminlte/css/adminlte.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
258 | + <link rel="stylesheet" href="plugins/pace-progress/themes/corner-indicator.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" /> |
|
259 | + <link rel="stylesheet" href="plugins/select2/css/select2.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" /> |
|
260 | + <link rel="stylesheet" href="plugins/select2/theme/select2-bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" /> |
|
261 | 261 | <!-- Theme style --> |
262 | - <link rel="stylesheet" href="includes/css/teampass.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
262 | + <link rel="stylesheet" href="includes/css/teampass.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
263 | 263 | <!-- Google Font: Source Sans Pro --> |
264 | - <link rel="stylesheet" type="text/css" href="includes/fonts/fonts.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
264 | + <link rel="stylesheet" type="text/css" href="includes/fonts/fonts.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
265 | 265 | <!-- Altertify --> |
266 | - <link rel="stylesheet" href="plugins/alertifyjs/css/alertify.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
267 | - <link rel="stylesheet" href="plugins/alertifyjs/css/themes/bootstrap.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
266 | + <link rel="stylesheet" href="plugins/alertifyjs/css/alertify.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
267 | + <link rel="stylesheet" href="plugins/alertifyjs/css/themes/bootstrap.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
268 | 268 | <!-- Toastr --> |
269 | - <link rel="stylesheet" href="plugins/toastr/toastr.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
269 | + <link rel="stylesheet" href="plugins/toastr/toastr.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
270 | 270 | <!-- favicon --> |
271 | - <link rel="shortcut icon" type="image/png" href="<?php echo $favicon;?>"/> |
|
271 | + <link rel="shortcut icon" type="image/png" href="<?php echo $favicon; ?>"/> |
|
272 | 272 | <!-- manifest (PWA) --> |
273 | - <link rel="manifest" href="manifest.json?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
273 | + <link rel="manifest" href="manifest.json?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
274 | 274 | <!-- Custom style --> |
275 | 275 | <?php |
276 | - if (file_exists(__DIR__ . '/includes/css/custom.css') === true) {?> |
|
277 | - <link rel="stylesheet" href="includes/css/custom.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
276 | + if (file_exists(__DIR__.'/includes/css/custom.css') === true) {?> |
|
277 | + <link rel="stylesheet" href="includes/css/custom.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
278 | 278 | <?php |
279 | 279 | } ?> |
280 | 280 | </head> |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | <div class="dropdown show"> |
322 | 322 | <a class="btn btn-primary dropdown-toggle" href="#" data-toggle="dropdown"> |
323 | 323 | <?php |
324 | - echo $session_name . ' ' . $session_lastname; ?> |
|
324 | + echo $session_name.' '.$session_lastname; ?> |
|
325 | 325 | </a> |
326 | 326 | |
327 | 327 | <div class="dropdown-menu dropdown-menu-right"> |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | </a> |
346 | 346 | <?php |
347 | 347 | } ?> |
348 | - <a class="dropdown-item user-menu<?php echo (int) $session_user_admin === 1 ? ' hidden' : '';?>" href="#" data-name="generate-new_keys"> |
|
348 | + <a class="dropdown-item user-menu<?php echo (int) $session_user_admin === 1 ? ' hidden' : ''; ?>" href="#" data-name="generate-new_keys"> |
|
349 | 349 | <i class="fa-solid fa-spray-can-sparkles fa-fw mr-2"></i><?php echo $lang->get('generate_new_keys'); ?> |
350 | 350 | </a> |
351 | 351 | |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | <!-- Main Sidebar Container --> |
380 | 380 | <aside class="main-sidebar sidebar-dark-primary elevation-4"> |
381 | 381 | <!-- Brand Logo --> |
382 | - <a href="<?php echo $cpassman_url . '/index.php?page=' . ((int) $session_user_admin === 1 ? 'admin' : 'items'); ?>" class="brand-link"> |
|
382 | + <a href="<?php echo $cpassman_url.'/index.php?page='.((int) $session_user_admin === 1 ? 'admin' : 'items'); ?>" class="brand-link"> |
|
383 | 383 | <img src="includes/images/teampass-logo2-home.png" alt="Teampass Logo" class="brand-image"> |
384 | 384 | <span class="brand-text font-weight-light"><?php echo TP_TOOL_NAME; ?></span> |
385 | 385 | </a> |
@@ -397,20 +397,20 @@ discard block |
||
397 | 397 | <a href="#" data-name="items" class="nav-link', $get['page'] === 'items' ? ' active' : '', '"> |
398 | 398 | <i class="nav-icon fa-solid fa-key"></i> |
399 | 399 | <p> |
400 | - ' . $lang->get('pw') . ' |
|
400 | + ' . $lang->get('pw').' |
|
401 | 401 | </p> |
402 | 402 | </a> |
403 | 403 | </li>'; |
404 | 404 | } |
405 | 405 | |
406 | 406 | // IMPORT menu |
407 | - if (isset($SETTINGS['allow_import']) === true && (int) $SETTINGS['allow_import'] === 1&& $session_user_admin === 0) { |
|
407 | + if (isset($SETTINGS['allow_import']) === true && (int) $SETTINGS['allow_import'] === 1 && $session_user_admin === 0) { |
|
408 | 408 | echo ' |
409 | 409 | <li class="nav-item"> |
410 | 410 | <a href="#" data-name="import" class="nav-link', $get['page'] === 'import' ? ' active' : '', '"> |
411 | 411 | <i class="nav-icon fa-solid fa-file-import"></i> |
412 | 412 | <p> |
413 | - ' . $lang->get('import') . ' |
|
413 | + ' . $lang->get('import').' |
|
414 | 414 | </p> |
415 | 415 | </a> |
416 | 416 | </li>'; |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | <a href="#" data-name="export" class="nav-link', $get['page'] === 'export' ? ' active' : '', '"> |
432 | 432 | <i class="nav-icon fa-solid fa-file-export"></i> |
433 | 433 | <p> |
434 | - ' . $lang->get('export') . ' |
|
434 | + ' . $lang->get('export').' |
|
435 | 435 | </p> |
436 | 436 | </a> |
437 | 437 | </li>'; |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | <a href="#" data-name="search" class="nav-link', $get['page'] === 'search' ? ' active' : '', '"> |
459 | 459 | <i class="nav-icon fa-solid fa-search"></i> |
460 | 460 | <p> |
461 | - ' . $lang->get('find') . ' |
|
461 | + ' . $lang->get('find').' |
|
462 | 462 | </p> |
463 | 463 | </a> |
464 | 464 | </li>'; |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | <a href="#" data-name="favourites" class="nav-link', $get['page'] === 'favourites' ? ' active' : '', '"> |
475 | 475 | <i class="nav-icon fa-solid fa-star"></i> |
476 | 476 | <p> |
477 | - ' . $lang->get('favorites') . ' |
|
477 | + ' . $lang->get('favorites').' |
|
478 | 478 | </p> |
479 | 479 | </a> |
480 | 480 | </li>'; |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | <a href="#" data-name="suggestion" class="nav-link', $get['page'] === 'suggestion' ? ' active' : '', '"> |
505 | 505 | <i class="nav-icon fa-solid fa-lightbulb"></i> |
506 | 506 | <p> |
507 | - ' . $lang->get('suggestion_menu') . ' |
|
507 | + ' . $lang->get('suggestion_menu').' |
|
508 | 508 | </p> |
509 | 509 | </a> |
510 | 510 | </li>'; |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | <a href="#" data-name="admin" class="nav-link', $get['page'] === 'admin' ? ' active' : '', '"> |
518 | 518 | <i class="nav-icon fa-solid fa-info"></i> |
519 | 519 | <p> |
520 | - ' . $lang->get('admin_main') . ' |
|
520 | + ' . $lang->get('admin_main').' |
|
521 | 521 | </p> |
522 | 522 | </a> |
523 | 523 | </li> |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | <a href="#" class="nav-link"> |
526 | 526 | <i class="nav-icon fa-solid fa-wrench"></i> |
527 | 527 | <p> |
528 | - ' . $lang->get('admin_settings') . ' |
|
528 | + ' . $lang->get('admin_settings').' |
|
529 | 529 | <i class="fa-solid fa-angle-left right"></i> |
530 | 530 | </p> |
531 | 531 | </a> |
@@ -533,63 +533,63 @@ discard block |
||
533 | 533 | <li class="nav-item"> |
534 | 534 | <a href="#" data-name="options" class="nav-link', $get['page'] === 'options' ? ' active' : '', '"> |
535 | 535 | <i class="fa-solid fa-check-double nav-icon"></i> |
536 | - <p>' . $lang->get('options') . '</p> |
|
536 | + <p>' . $lang->get('options').'</p> |
|
537 | 537 | </a> |
538 | 538 | </li> |
539 | 539 | <li class="nav-item"> |
540 | 540 | <a href="#" data-name="2fa" class="nav-link', $get['page'] === '2fa' ? ' active' : '', '"> |
541 | 541 | <i class="fa-solid fa-qrcode nav-icon"></i> |
542 | - <p>' . $lang->get('mfa_short') . '</p> |
|
542 | + <p>' . $lang->get('mfa_short').'</p> |
|
543 | 543 | </a> |
544 | 544 | </li> |
545 | 545 | <li class="nav-item"> |
546 | 546 | <a href="#" data-name="api" class="nav-link', $get['page'] === 'api' ? ' active' : '', '"> |
547 | 547 | <i class="fa-solid fa-cubes nav-icon"></i> |
548 | - <p>' . $lang->get('api') . '</p> |
|
548 | + <p>' . $lang->get('api').'</p> |
|
549 | 549 | </a> |
550 | 550 | </li> |
551 | 551 | <li class="nav-item"> |
552 | 552 | <a href="#" data-name="backups" class="nav-link', $get['page'] === 'backups' ? ' active' : '', '"> |
553 | 553 | <i class="fa-solid fa-database nav-icon"></i> |
554 | - <p>' . $lang->get('backups') . '</p> |
|
554 | + <p>' . $lang->get('backups').'</p> |
|
555 | 555 | </a> |
556 | 556 | </li> |
557 | 557 | <li class="nav-item"> |
558 | 558 | <a href="#" data-name="emails" class="nav-link', $get['page'] === 'emails' ? ' active' : '', '"> |
559 | 559 | <i class="fa-solid fa-envelope nav-icon"></i> |
560 | - <p>' . $lang->get('emails') . '</p> |
|
560 | + <p>' . $lang->get('emails').'</p> |
|
561 | 561 | </a> |
562 | 562 | </li> |
563 | 563 | <li class="nav-item"> |
564 | 564 | <a href="#" data-name="fields" class="nav-link', $get['page'] === 'fields' ? ' active' : '', '"> |
565 | 565 | <i class="fa-solid fa-keyboard nav-icon"></i> |
566 | - <p>' . $lang->get('fields') . '</p> |
|
566 | + <p>' . $lang->get('fields').'</p> |
|
567 | 567 | </a> |
568 | 568 | </li> |
569 | 569 | <li class="nav-item"> |
570 | 570 | <a href="#" data-name="ldap" class="nav-link', $get['page'] === 'ldap' ? ' active' : '', '"> |
571 | 571 | <i class="fa-solid fa-id-card nav-icon"></i> |
572 | - <p>' . $lang->get('ldap') . '</p> |
|
572 | + <p>' . $lang->get('ldap').'</p> |
|
573 | 573 | </a> |
574 | 574 | </li> |
575 | 575 | |
576 | 576 | <li class="nav-item"> |
577 | 577 | <a href="#" data-name="oauth" class="nav-link', $get['page'] === 'oauth' ? ' active' : '', '"> |
578 | 578 | <i class="fa-solid fa-plug nav-icon"></i> |
579 | - <p>' . $lang->get('oauth') . '</p> |
|
579 | + <p>' . $lang->get('oauth').'</p> |
|
580 | 580 | </a> |
581 | 581 | </li> |
582 | 582 | |
583 | 583 | <li class="nav-item"> |
584 | 584 | <a href="#" data-name="uploads" class="nav-link', $get['page'] === 'uploads' ? ' active' : '', '"> |
585 | 585 | <i class="fa-solid fa-file-upload nav-icon"></i> |
586 | - <p>' . $lang->get('uploads') . '</p> |
|
586 | + <p>' . $lang->get('uploads').'</p> |
|
587 | 587 | </a> |
588 | 588 | </li> |
589 | 589 | <li class="nav-item"> |
590 | 590 | <a href="#" data-name="statistics" class="nav-link', $get['page'] === 'statistics' ? ' active' : '', '"> |
591 | 591 | <i class="fa-solid fa-chart-bar nav-icon"></i> |
592 | - <p>' . $lang->get('statistics') . '</p> |
|
592 | + <p>' . $lang->get('statistics').'</p> |
|
593 | 593 | </a> |
594 | 594 | </li> |
595 | 595 | </ul> |
@@ -600,7 +600,7 @@ discard block |
||
600 | 600 | <li class="nav-item"> |
601 | 601 | <a href="#" data-name="tasks" class="nav-link', $get['page'] === 'tasks' ? ' active' : '', '"> |
602 | 602 | <i class="fa-solid fa-tasks nav-icon"></i> |
603 | - <p>' . $lang->get('tasks') . '</p> |
|
603 | + <p>' . $lang->get('tasks').'</p> |
|
604 | 604 | </a> |
605 | 605 | </li>'; |
606 | 606 | } |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | <a href="#" data-name="tools" class="nav-link', $get['page'] === 'tools' ? ' active' : '', '"> |
612 | 612 | <i class="nav-icon fa-solid fa-person-drowning"></i> |
613 | 613 | <p> |
614 | - ' . $lang->get('tools') . ' |
|
614 | + ' . $lang->get('tools').' |
|
615 | 615 | </p> |
616 | 616 | </a> |
617 | 617 | </li>'; |
@@ -628,7 +628,7 @@ discard block |
||
628 | 628 | <a href="#" data-name="folders" class="nav-link', $get['page'] === 'folders' ? ' active' : '', '"> |
629 | 629 | <i class="nav-icon fa-solid fa-folder-open"></i> |
630 | 630 | <p> |
631 | - ' . $lang->get('folders') . ' |
|
631 | + ' . $lang->get('folders').' |
|
632 | 632 | </p> |
633 | 633 | </a> |
634 | 634 | </li> |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | <a href="#" data-name="roles" class="nav-link', $get['page'] === 'roles' ? ' active' : '', '"> |
637 | 637 | <i class="nav-icon fa-solid fa-graduation-cap"></i> |
638 | 638 | <p> |
639 | - ' . $lang->get('roles') . ' |
|
639 | + ' . $lang->get('roles').' |
|
640 | 640 | </p> |
641 | 641 | </a> |
642 | 642 | </li> |
@@ -644,38 +644,38 @@ discard block |
||
644 | 644 | <a href="#" data-name="users" class="nav-link', $get['page'] === 'users' ? ' active' : '', '"> |
645 | 645 | <i class="nav-icon fa-solid fa-users"></i> |
646 | 646 | <p> |
647 | - ' . $lang->get('users') . ' |
|
647 | + ' . $lang->get('users').' |
|
648 | 648 | </p> |
649 | 649 | </a> |
650 | 650 | </li> |
651 | 651 | <li class="nav-item has-treeview', $menuUtilities === true ? ' menu-open' : '', '"> |
652 | 652 | <a href="#" class="nav-link"> |
653 | 653 | <i class="nav-icon fa-solid fa-cubes"></i> |
654 | - <p>' . $lang->get('admin_views') . '<i class="fa-solid fa-angle-left right"></i></p> |
|
654 | + <p>' . $lang->get('admin_views').'<i class="fa-solid fa-angle-left right"></i></p> |
|
655 | 655 | </a> |
656 | 656 | <ul class="nav nav-treeview"> |
657 | 657 | <li class="nav-item"> |
658 | 658 | <a href="#" data-name="utilities.renewal" class="nav-link', $get['page'] === 'utilities.renewal' ? ' active' : '', '"> |
659 | 659 | <i class="far fa-calendar-alt nav-icon"></i> |
660 | - <p>' . $lang->get('renewal') . '</p> |
|
660 | + <p>' . $lang->get('renewal').'</p> |
|
661 | 661 | </a> |
662 | 662 | </li> |
663 | 663 | <li class="nav-item"> |
664 | 664 | <a href="#" data-name="utilities.deletion" class="nav-link', $get['page'] === 'utilities.deletion' ? ' active' : '', '"> |
665 | 665 | <i class="fa-solid fa-trash-alt nav-icon"></i> |
666 | - <p>' . $lang->get('deletion') . '</p> |
|
666 | + <p>' . $lang->get('deletion').'</p> |
|
667 | 667 | </a> |
668 | 668 | </li> |
669 | 669 | <li class="nav-item"> |
670 | 670 | <a href="#" data-name="utilities.logs" class="nav-link', $get['page'] === 'utilities.logs' ? ' active' : '', '"> |
671 | 671 | <i class="fa-solid fa-history nav-icon"></i> |
672 | - <p>' . $lang->get('logs') . '</p> |
|
672 | + <p>' . $lang->get('logs').'</p> |
|
673 | 673 | </a> |
674 | 674 | </li> |
675 | 675 | <li class="nav-item"> |
676 | 676 | <a href="#" data-name="utilities.database" class="nav-link', $get['page'] === 'utilities.database' ? ' active' : '', '"> |
677 | 677 | <i class="fa-solid fa-database nav-icon"></i> |
678 | - <p>' . $lang->get('database') . '</p> |
|
678 | + <p>' . $lang->get('database').'</p> |
|
679 | 679 | </a> |
680 | 680 | </li> |
681 | 681 | </ul> |
@@ -686,10 +686,10 @@ discard block |
||
686 | 686 | <!-- /.sidebar-menu --> |
687 | 687 | <div class="menu-footer"> |
688 | 688 | <div class="" id="sidebar-footer"> |
689 | - <i class="fa-solid fa-clock-o mr-2 infotip text-info pointer" title="<?php echo htmlspecialchars($lang->get('server_time') . ' ' . |
|
690 | - date($date_format, (int) $server['request_time']) . ' - ' . |
|
689 | + <i class="fa-solid fa-clock-o mr-2 infotip text-info pointer" title="<?php echo htmlspecialchars($lang->get('server_time').' '. |
|
690 | + date($date_format, (int) $server['request_time']).' - '. |
|
691 | 691 | date($time_format, (int) $server['request_time']), ENT_QUOTES, 'UTF-8'); ?>"></i> |
692 | - <i class="fa-solid fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online . ' ' . $lang->get('users_online'); ?>"></i> |
|
692 | + <i class="fa-solid fa-users mr-2 infotip text-info pointer" title="<?php echo $session_nb_users_online.' '.$lang->get('users_online'); ?>"></i> |
|
693 | 693 | <a href="<?php echo DOCUMENTATION_URL; ?>" target="_blank" class="text-info"><i class="fa-solid fa-book mr-2 infotip" title="<?php echo $lang->get('documentation_canal'); ?>"></i></a> |
694 | 694 | <a href="<?php echo HELP_URL; ?>" target="_blank" class="text-info"><i class="fa-solid fa-life-ring mr-2 infotip" title="<?php echo $lang->get('admin_help'); ?>"></i></a> |
695 | 695 | <?php if ($session_user_admin === 1) : ?><i class="fa-solid fa-bug infotip pointer text-info" title="<?php echo $lang->get('bugs_page'); ?>" onclick="generateBugReport()"></i><?php endif; ?> |
@@ -840,7 +840,7 @@ discard block |
||
840 | 840 | </div> |
841 | 841 | <div class="mt-3"> |
842 | 842 | <label> |
843 | - <span class="mr-2 pointer fw-normal"><i class="fa-solid fa-eye mr-2 text-orange"></i><?php echo $lang->get('show_user_password');?></span> |
|
843 | + <span class="mr-2 pointer fw-normal"><i class="fa-solid fa-eye mr-2 text-orange"></i><?php echo $lang->get('show_user_password'); ?></span> |
|
844 | 844 | <input type="checkbox" id="dialog-admin-change-user-password-do-show-password" class="pointer"> |
845 | 845 | </label> |
846 | 846 | </div> |
@@ -1007,34 +1007,34 @@ discard block |
||
1007 | 1007 | if ($get['page'] === 'items') { |
1008 | 1008 | // SHow page with Items |
1009 | 1009 | if ((int) $session_user_admin !== 1) { |
1010 | - include $SETTINGS['cpassman_dir'] . '/pages/items.php'; |
|
1010 | + include $SETTINGS['cpassman_dir'].'/pages/items.php'; |
|
1011 | 1011 | } elseif ((int) $session_user_admin === 1) { |
1012 | - include $SETTINGS['cpassman_dir'] . '/pages/admin.php'; |
|
1012 | + include $SETTINGS['cpassman_dir'].'/pages/admin.php'; |
|
1013 | 1013 | } else { |
1014 | 1014 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
1015 | 1015 | //not allowed page |
1016 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
1016 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
1017 | 1017 | } |
1018 | 1018 | } elseif (in_array($get['page'], array_keys($mngPages)) === true) { |
1019 | 1019 | // Define if user is allowed to see management pages |
1020 | 1020 | if ($session_user_admin === 1) { |
1021 | 1021 | // deepcode ignore FileInclusion: $get['page'] is secured through usage of array_keys test bellow |
1022 | - include $SETTINGS['cpassman_dir'] . '/pages/' . basename($mngPages[$get['page']]); |
|
1022 | + include $SETTINGS['cpassman_dir'].'/pages/'.basename($mngPages[$get['page']]); |
|
1023 | 1023 | } elseif ($session_user_manager === 1 || $session_user_human_resources === 1) { |
1024 | 1024 | if ($get['page'] === 'manage_main' || $get['page'] === 'manage_settings' |
1025 | 1025 | ) { |
1026 | 1026 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
1027 | 1027 | //not allowed page |
1028 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
1028 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
1029 | 1029 | } |
1030 | 1030 | } else { |
1031 | 1031 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
1032 | 1032 | //not allowed page |
1033 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
1033 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
1034 | 1034 | } |
1035 | - } elseif (empty($get['page']) === false && file_exists($SETTINGS['cpassman_dir'] . '/pages/' . $get['page'] . '.php') === true) { |
|
1035 | + } elseif (empty($get['page']) === false && file_exists($SETTINGS['cpassman_dir'].'/pages/'.$get['page'].'.php') === true) { |
|
1036 | 1036 | // deepcode ignore FileInclusion: $get['page'] is tested against file_exists just below |
1037 | - include $SETTINGS['cpassman_dir'] . '/pages/' . basename($get['page'] . '.php'); |
|
1037 | + include $SETTINGS['cpassman_dir'].'/pages/'.basename($get['page'].'.php'); |
|
1038 | 1038 | } else { |
1039 | 1039 | $session->set('system-array_roles', ERR_NOT_EXIST); |
1040 | 1040 | //page doesn't exist |
@@ -1063,7 +1063,7 @@ discard block |
||
1063 | 1063 | <footer class="main-footer"> |
1064 | 1064 | <!-- To the right --> |
1065 | 1065 | <div class="float-right d-none d-sm-inline"> |
1066 | - <?php echo $lang->get('version_alone'); ?> <?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?> |
|
1066 | + <?php echo $lang->get('version_alone'); ?> <?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?> |
|
1067 | 1067 | </div> |
1068 | 1068 | <!-- Default to the left --> |
1069 | 1069 | <strong>Copyright © <?php echo TP_COPYRIGHT; ?> <a href="<?php echo TEAMPASS_URL; ?>"><?php echo TP_TOOL_NAME; ?></a>.</strong> All rights reserved. |
@@ -1077,7 +1077,7 @@ discard block |
||
1077 | 1077 | echo ' |
1078 | 1078 | <input type="hidden" id="temps_restant" value="', $session->get('user-session_duration') ?? '', '" />'; |
1079 | 1079 | // display an item in the context of OTV link |
1080 | -} elseif ((null === $session->get('user-validite_pw')|| empty($session->get('user-validite_pw')) === true || empty($session->get('user-id')) === true) |
|
1080 | +} elseif ((null === $session->get('user-validite_pw') || empty($session->get('user-validite_pw')) === true || empty($session->get('user-id')) === true) |
|
1081 | 1081 | && empty($get['otv']) === false |
1082 | 1082 | ) { |
1083 | 1083 | // case where one-shot viewer |
@@ -1096,7 +1096,7 @@ discard block |
||
1096 | 1096 | FILTER_SANITIZE_URL |
1097 | 1097 | ) |
1098 | 1098 | ); |
1099 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
1099 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
1100 | 1100 | } |
1101 | 1101 | } elseif (//(empty($session->get('user-id')) === false && $session->get('user-id') !== null) || |
1102 | 1102 | empty($session->get('user-id')) === true |
@@ -1121,7 +1121,7 @@ discard block |
||
1121 | 1121 | } |
1122 | 1122 | |
1123 | 1123 | // LOGIN form |
1124 | - include $SETTINGS['cpassman_dir'] . '/includes/core/login.php'; |
|
1124 | + include $SETTINGS['cpassman_dir'].'/includes/core/login.php'; |
|
1125 | 1125 | |
1126 | 1126 | } else { |
1127 | 1127 | // Clear session |
@@ -1154,153 +1154,153 @@ discard block |
||
1154 | 1154 | <!-- REQUIRED SCRIPTS --> |
1155 | 1155 | |
1156 | 1156 | <!-- Font Awesome Icons --> |
1157 | - <link href="plugins/fontawesome-free-6/css/fontawesome.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1158 | - <link href="plugins/fontawesome-free-6/css/solid.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1159 | - <link href="plugins/fontawesome-free-6/css/regular.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1160 | - <link href="plugins/fontawesome-free-6/css/brands.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1161 | - <link href="plugins/fontawesome-free-6/css/v5-font-face.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" rel="stylesheet" /> |
|
1157 | + <link href="plugins/fontawesome-free-6/css/fontawesome.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1158 | + <link href="plugins/fontawesome-free-6/css/solid.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1159 | + <link href="plugins/fontawesome-free-6/css/regular.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1160 | + <link href="plugins/fontawesome-free-6/css/brands.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet"> |
|
1161 | + <link href="plugins/fontawesome-free-6/css/v5-font-face.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" rel="stylesheet" /> |
|
1162 | 1162 | <!-- jQuery --> |
1163 | - <script src="plugins/jquery/jquery.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1164 | - <script src="plugins/jquery/jquery.cookie.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1163 | + <script src="plugins/jquery/jquery.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1164 | + <script src="plugins/jquery/jquery.cookie.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1165 | 1165 | <!-- jQuery UI --> |
1166 | - <script src="plugins/jqueryUI/jquery-ui.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1167 | - <link rel="stylesheet" href="plugins/jqueryUI/jquery-ui.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1166 | + <script src="plugins/jqueryUI/jquery-ui.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1167 | + <link rel="stylesheet" href="plugins/jqueryUI/jquery-ui.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1168 | 1168 | <!-- Popper --> |
1169 | - <script src="plugins/popper/umd/popper.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1169 | + <script src="plugins/popper/umd/popper.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1170 | 1170 | <!-- Bootstrap --> |
1171 | - <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1171 | + <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1172 | 1172 | <!-- AdminLTE --> |
1173 | - <script src="plugins/adminlte/js/adminlte.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1173 | + <script src="plugins/adminlte/js/adminlte.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1174 | 1174 | <!-- Altertify --> |
1175 | 1175 | <!--<script type="text/javascript" src="plugins/alertifyjs/alertify.min.js"></script>--> |
1176 | 1176 | <!-- Toastr --> |
1177 | - <script type="text/javascript" src="plugins/toastr/toastr.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1177 | + <script type="text/javascript" src="plugins/toastr/toastr.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1178 | 1178 | <!-- STORE.JS --> |
1179 | - <script type="text/javascript" src="plugins/store.js/dist/store.everything.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1179 | + <script type="text/javascript" src="plugins/store.js/dist/store.everything.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1180 | 1180 | <!-- cryptojs-aesphp --> |
1181 | - <script type="text/javascript" src="includes/libraries/cryptojs/crypto-js.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1182 | - <script type="text/javascript" src="includes/libraries/cryptojs/encryption.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1181 | + <script type="text/javascript" src="includes/libraries/cryptojs/crypto-js.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1182 | + <script type="text/javascript" src="includes/libraries/cryptojs/encryption.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1183 | 1183 | <!-- pace --> |
1184 | - <script type="text/javascript" data-pace-options='{ "ajax": true, "eventLag": false }' src="plugins/pace-progress/pace.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1184 | + <script type="text/javascript" data-pace-options='{ "ajax": true, "eventLag": false }' src="plugins/pace-progress/pace.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1185 | 1185 | <!-- select2 --> |
1186 | - <script type="text/javascript" src="plugins/select2/js/select2.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1186 | + <script type="text/javascript" src="plugins/select2/js/select2.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1187 | 1187 | <!-- simplePassMeter --> |
1188 | - <link rel="stylesheet" href="plugins/simplePassMeter/simplePassMeter.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" /> |
|
1189 | - <script type="text/javascript" src="plugins/simplePassMeter/simplePassMeter.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1188 | + <link rel="stylesheet" href="plugins/simplePassMeter/simplePassMeter.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" /> |
|
1189 | + <script type="text/javascript" src="plugins/simplePassMeter/simplePassMeter.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1190 | 1190 | <!-- platform --> |
1191 | - <script type="text/javascript" src="plugins/platform/platform.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1191 | + <script type="text/javascript" src="plugins/platform/platform.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1192 | 1192 | <!-- radiobuttons --> |
1193 | - <link rel="stylesheet" href="plugins/radioforbuttons/bootstrap-buttons.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/css" /> |
|
1194 | - <script type="text/javascript" src="plugins/radioforbuttons/jquery.radiosforbuttons.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1193 | + <link rel="stylesheet" href="plugins/radioforbuttons/bootstrap-buttons.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/css" /> |
|
1194 | + <script type="text/javascript" src="plugins/radioforbuttons/jquery.radiosforbuttons.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1195 | 1195 | <!-- ICHECK --> |
1196 | 1196 | <!--<link rel="stylesheet" href="./plugins/icheck-material/icheck-material.min.css">--> |
1197 | - <link rel="stylesheet" href="./plugins/icheck/skins/all.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1198 | - <script type="text/javascript" src="./plugins/icheck/icheck.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1197 | + <link rel="stylesheet" href="./plugins/icheck/skins/all.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1198 | + <script type="text/javascript" src="./plugins/icheck/icheck.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1199 | 1199 | <!-- bootstrap-add-clear --> |
1200 | - <script type="text/javascript" src="plugins/bootstrap-add-clear/bootstrap-add-clear.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1200 | + <script type="text/javascript" src="plugins/bootstrap-add-clear/bootstrap-add-clear.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1201 | 1201 | <!-- DOMPurify --> |
1202 | - <script type="text/javascript" src="plugins/DOMPurify/purify.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1202 | + <script type="text/javascript" src="plugins/DOMPurify/purify.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1203 | 1203 | |
1204 | 1204 | <?php |
1205 | 1205 | $get['page'] = $request->query->filter('page', null, FILTER_SANITIZE_SPECIAL_CHARS); |
1206 | 1206 | if ($menuAdmin === true) { |
1207 | 1207 | ?> |
1208 | - <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
1209 | - <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
1210 | - <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1208 | + <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
1209 | + <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
1210 | + <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1211 | 1211 | <!-- InputMask --> |
1212 | - <script src="./plugins/inputmask/jquery.inputmask.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1212 | + <script src="./plugins/inputmask/jquery.inputmask.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1213 | 1213 | <!-- Sortable --> |
1214 | 1214 | <!--<script src="./plugins/sortable/jquery.sortable.js"></script>--> |
1215 | 1215 | <!-- PLUPLOAD --> |
1216 | - <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1216 | + <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1217 | 1217 | <!-- DataTables --> |
1218 | - <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1219 | - <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1220 | - <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1221 | - <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1222 | - <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1223 | - <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1224 | - <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1225 | - <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1226 | - <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1227 | - <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1218 | + <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1219 | + <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1220 | + <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1221 | + <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1222 | + <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1223 | + <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1224 | + <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1225 | + <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1226 | + <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1227 | + <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1228 | 1228 | <?php |
1229 | 1229 | } elseif (isset($get['page']) === true) { |
1230 | 1230 | if (in_array($get['page'], ['items', 'import']) === true) { |
1231 | 1231 | ?> |
1232 | - <link rel="stylesheet" href="./plugins/jstree/themes/default/style.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
1233 | - <link rel="stylesheet" href="./plugins/jstree/themes/default-dark/style.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
1234 | - <script src="./plugins/jstree/jstree.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1232 | + <link rel="stylesheet" href="./plugins/jstree/themes/default/style.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
1233 | + <link rel="stylesheet" href="./plugins/jstree/themes/default-dark/style.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
1234 | + <script src="./plugins/jstree/jstree.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1235 | 1235 | <!-- countdownTimer --> |
1236 | - <script src="./plugins/jquery.countdown360/jquery.countdown360.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1236 | + <script src="./plugins/jquery.countdown360/jquery.countdown360.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1237 | 1237 | <!-- SUMMERNOTE --> |
1238 | - <link rel="stylesheet" href="./plugins/summernote/summernote-bs4.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1239 | - <script src="./plugins/summernote/summernote-bs4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1238 | + <link rel="stylesheet" href="./plugins/summernote/summernote-bs4.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1239 | + <script src="./plugins/summernote/summernote-bs4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1240 | 1240 | <!-- date-picker --> |
1241 | - <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1242 | - <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1241 | + <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1242 | + <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1243 | 1243 | <!-- time-picker --> |
1244 | - <link rel="stylesheet" href="./plugins/timepicker/bootstrap-timepicker.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1245 | - <script src="./plugins/timepicker/bootstrap-timepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1244 | + <link rel="stylesheet" href="./plugins/timepicker/bootstrap-timepicker.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1245 | + <script src="./plugins/timepicker/bootstrap-timepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1246 | 1246 | <!-- PLUPLOAD --> |
1247 | - <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1247 | + <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1248 | 1248 | <!-- VALIDATE --> |
1249 | - <script type="text/javascript" src="plugins/jquery-validation/jquery.validate.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1249 | + <script type="text/javascript" src="plugins/jquery-validation/jquery.validate.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1250 | 1250 | <!-- PWSTRENGHT --> |
1251 | - <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1252 | - <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1251 | + <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1252 | + <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1253 | 1253 | <!-- TOGGLE --> |
1254 | - <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
1255 | - <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" /> |
|
1256 | - <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1254 | + <link rel="stylesheet" href="./plugins/toggles/css/toggles.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
1255 | + <link rel="stylesheet" href="./plugins/toggles/css/toggles-modern.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" /> |
|
1256 | + <script src="./plugins/toggles/toggles.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>" type="text/javascript"></script> |
|
1257 | 1257 | <?php |
1258 | 1258 | } elseif (in_array($get['page'], ['search', 'folders', 'users', 'roles', 'utilities.deletion', 'utilities.logs', 'utilities.database', 'utilities.renewal', 'tasks']) === true) { |
1259 | 1259 | ?> |
1260 | 1260 | <!-- DataTables --> |
1261 | - <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1262 | - <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1263 | - <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1264 | - <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1265 | - <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1266 | - <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1267 | - <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1268 | - <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1269 | - <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1270 | - <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1261 | + <link rel="stylesheet" src="./plugins/datatables/css/jquery.dataTables.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1262 | + <link rel="stylesheet" src="./plugins/datatables/css/dataTables.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1263 | + <script type="text/javascript" src="./plugins/datatables/js/jquery.dataTables.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1264 | + <script type="text/javascript" src="./plugins/datatables/js/dataTables.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1265 | + <link rel="stylesheet" src="./plugins/datatables/extensions/Responsive-2.2.2/css/responsive.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1266 | + <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/dataTables.responsive.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1267 | + <script type="text/javascript" src="./plugins/datatables/extensions/Responsive-2.2.2/js/responsive.bootstrap4.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1268 | + <script type="text/javascript" src="./plugins/datatables/plugins/select.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1269 | + <link rel="stylesheet" src="./plugins/datatables/extensions/Scroller-1.5.0/css/scroller.bootstrap4.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1270 | + <script type="text/javascript" src="./plugins/datatables/extensions/Scroller-1.5.0/js/dataTables.scroller.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1271 | 1271 | <!-- dater picker --> |
1272 | - <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1273 | - <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1272 | + <link rel="stylesheet" href="./plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1273 | + <script src="./plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1274 | 1274 | <!-- daterange picker --> |
1275 | - <link rel="stylesheet" href="./plugins/daterangepicker/daterangepicker.css?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"> |
|
1276 | - <script src="./plugins/moment/moment.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1277 | - <script src="./plugins/daterangepicker/daterangepicker.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1275 | + <link rel="stylesheet" href="./plugins/daterangepicker/daterangepicker.css?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"> |
|
1276 | + <script src="./plugins/moment/moment.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1277 | + <script src="./plugins/daterangepicker/daterangepicker.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1278 | 1278 | <!-- SlimScroll --> |
1279 | - <script src="./plugins/slimScroll/jquery.slimscroll.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1279 | + <script src="./plugins/slimScroll/jquery.slimscroll.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1280 | 1280 | <!-- FastClick --> |
1281 | - <script src="./plugins/fastclick/fastclick.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1281 | + <script src="./plugins/fastclick/fastclick.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1282 | 1282 | <?php |
1283 | 1283 | } elseif ($get['page'] === 'profile') { |
1284 | 1284 | ?> |
1285 | 1285 | <!-- FILESAVER --> |
1286 | - <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1286 | + <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1287 | 1287 | <!-- PLUPLOAD --> |
1288 | - <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1288 | + <script type="text/javascript" src="plugins/plupload/js/plupload.full.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1289 | 1289 | <?php |
1290 | 1290 | } elseif ($get['page'] === 'export') { |
1291 | 1291 | ?> |
1292 | 1292 | <!-- FILESAVER --> |
1293 | - <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1293 | + <script type="text/javascript" src="plugins/downloadjs/download.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1294 | 1294 | <!-- PWSTRENGHT --> |
1295 | - <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1296 | - <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1295 | + <script type="text/javascript" src="plugins/zxcvbn/zxcvbn.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1296 | + <script type="text/javascript" src="plugins/jquery.pwstrength/pwstrength-bootstrap.min.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1297 | 1297 | <?php |
1298 | 1298 | } |
1299 | 1299 | } |
1300 | 1300 | ?> |
1301 | 1301 | <!-- functions --> |
1302 | - <script type="text/javascript" src="includes/js/functions.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1303 | - <script type="text/javascript" src="includes/js/CreateRandomString.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1302 | + <script type="text/javascript" src="includes/js/functions.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1303 | + <script type="text/javascript" src="includes/js/CreateRandomString.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1304 | 1304 | <input type="hidden" id="encryptClientServerStatus" value="<?php echo $SETTINGS['encryptClientServer'] ?? 1; ?>" /> |
1305 | 1305 | |
1306 | 1306 | </body> |
@@ -1342,7 +1342,7 @@ discard block |
||
1342 | 1342 | }; |
1343 | 1343 | </script> |
1344 | 1344 | |
1345 | -<script type="text/javascript" src="includes/js/secure-clipboard-cleaner.js?v=<?php echo TP_VERSION . '.' . TP_VERSION_MINOR; ?>"></script> |
|
1345 | +<script type="text/javascript" src="includes/js/secure-clipboard-cleaner.js?v=<?php echo TP_VERSION.'.'.TP_VERSION_MINOR; ?>"></script> |
|
1346 | 1346 | |
1347 | 1347 | <script> |
1348 | 1348 | $(document).ready(function() { |
@@ -1401,65 +1401,65 @@ discard block |
||
1401 | 1401 | |
1402 | 1402 | // Load links, css and javascripts |
1403 | 1403 | if (isset($SETTINGS['cpassman_dir']) === true) { |
1404 | - include_once $SETTINGS['cpassman_dir'] . '/includes/core/load.js.php'; |
|
1404 | + include_once $SETTINGS['cpassman_dir'].'/includes/core/load.js.php'; |
|
1405 | 1405 | if ($menuAdmin === true) { |
1406 | - include_once $SETTINGS['cpassman_dir'] . '/pages/admin.js.php'; |
|
1406 | + include_once $SETTINGS['cpassman_dir'].'/pages/admin.js.php'; |
|
1407 | 1407 | if ($get['page'] === '2fa') { |
1408 | - include_once $SETTINGS['cpassman_dir'] . '/pages/2fa.js.php'; |
|
1408 | + include_once $SETTINGS['cpassman_dir'].'/pages/2fa.js.php'; |
|
1409 | 1409 | } elseif ($get['page'] === 'api') { |
1410 | - include_once $SETTINGS['cpassman_dir'] . '/pages/api.js.php'; |
|
1410 | + include_once $SETTINGS['cpassman_dir'].'/pages/api.js.php'; |
|
1411 | 1411 | } elseif ($get['page'] === 'backups') { |
1412 | - include_once $SETTINGS['cpassman_dir'] . '/pages/backups.js.php'; |
|
1412 | + include_once $SETTINGS['cpassman_dir'].'/pages/backups.js.php'; |
|
1413 | 1413 | } elseif ($get['page'] === 'emails') { |
1414 | - include_once $SETTINGS['cpassman_dir'] . '/pages/emails.js.php'; |
|
1414 | + include_once $SETTINGS['cpassman_dir'].'/pages/emails.js.php'; |
|
1415 | 1415 | } elseif ($get['page'] === 'ldap') { |
1416 | - include_once $SETTINGS['cpassman_dir'] . '/pages/ldap.js.php'; |
|
1416 | + include_once $SETTINGS['cpassman_dir'].'/pages/ldap.js.php'; |
|
1417 | 1417 | } elseif ($get['page'] === 'uploads') { |
1418 | - include_once $SETTINGS['cpassman_dir'] . '/pages/uploads.js.php'; |
|
1418 | + include_once $SETTINGS['cpassman_dir'].'/pages/uploads.js.php'; |
|
1419 | 1419 | } elseif ($get['page'] === 'fields') { |
1420 | - include_once $SETTINGS['cpassman_dir'] . '/pages/fields.js.php'; |
|
1420 | + include_once $SETTINGS['cpassman_dir'].'/pages/fields.js.php'; |
|
1421 | 1421 | } elseif ($get['page'] === 'options') { |
1422 | - include_once $SETTINGS['cpassman_dir'] . '/pages/options.js.php'; |
|
1422 | + include_once $SETTINGS['cpassman_dir'].'/pages/options.js.php'; |
|
1423 | 1423 | } elseif ($get['page'] === 'statistics') { |
1424 | - include_once $SETTINGS['cpassman_dir'] . '/pages/statistics.js.php'; |
|
1424 | + include_once $SETTINGS['cpassman_dir'].'/pages/statistics.js.php'; |
|
1425 | 1425 | } elseif ($get['page'] === 'tasks') { |
1426 | - include_once $SETTINGS['cpassman_dir'] . '/pages/tasks.js.php'; |
|
1426 | + include_once $SETTINGS['cpassman_dir'].'/pages/tasks.js.php'; |
|
1427 | 1427 | } elseif ($get['page'] === 'oauth' && WIP === true) { |
1428 | - include_once $SETTINGS['cpassman_dir'] . '/pages/oauth.js.php'; |
|
1428 | + include_once $SETTINGS['cpassman_dir'].'/pages/oauth.js.php'; |
|
1429 | 1429 | } elseif ($get['page'] === 'tools') { |
1430 | - include_once $SETTINGS['cpassman_dir'] . '/pages/tools.js.php'; |
|
1430 | + include_once $SETTINGS['cpassman_dir'].'/pages/tools.js.php'; |
|
1431 | 1431 | } |
1432 | 1432 | } elseif (isset($get['page']) === true && $get['page'] !== '') { |
1433 | 1433 | if ($get['page'] === 'items') { |
1434 | - include_once $SETTINGS['cpassman_dir'] . '/pages/items.js.php'; |
|
1434 | + include_once $SETTINGS['cpassman_dir'].'/pages/items.js.php'; |
|
1435 | 1435 | } elseif ($get['page'] === 'import') { |
1436 | - include_once $SETTINGS['cpassman_dir'] . '/pages/import.js.php'; |
|
1436 | + include_once $SETTINGS['cpassman_dir'].'/pages/import.js.php'; |
|
1437 | 1437 | } elseif ($get['page'] === 'export') { |
1438 | - include_once $SETTINGS['cpassman_dir'] . '/pages/export.js.php'; |
|
1438 | + include_once $SETTINGS['cpassman_dir'].'/pages/export.js.php'; |
|
1439 | 1439 | } elseif ($get['page'] === 'offline') { |
1440 | - include_once $SETTINGS['cpassman_dir'] . '/pages/offline.js.php'; |
|
1440 | + include_once $SETTINGS['cpassman_dir'].'/pages/offline.js.php'; |
|
1441 | 1441 | } elseif ($get['page'] === 'search') { |
1442 | - include_once $SETTINGS['cpassman_dir'] . '/pages/search.js.php'; |
|
1442 | + include_once $SETTINGS['cpassman_dir'].'/pages/search.js.php'; |
|
1443 | 1443 | } elseif ($get['page'] === 'profile') { |
1444 | - include_once $SETTINGS['cpassman_dir'] . '/pages/profile.js.php'; |
|
1444 | + include_once $SETTINGS['cpassman_dir'].'/pages/profile.js.php'; |
|
1445 | 1445 | } elseif ($get['page'] === 'favourites') { |
1446 | - include_once $SETTINGS['cpassman_dir'] . '/pages/favorites.js.php'; |
|
1446 | + include_once $SETTINGS['cpassman_dir'].'/pages/favorites.js.php'; |
|
1447 | 1447 | } elseif ($get['page'] === 'folders') { |
1448 | - include_once $SETTINGS['cpassman_dir'] . '/pages/folders.js.php'; |
|
1448 | + include_once $SETTINGS['cpassman_dir'].'/pages/folders.js.php'; |
|
1449 | 1449 | } elseif ($get['page'] === 'users') { |
1450 | - include_once $SETTINGS['cpassman_dir'] . '/pages/users.js.php'; |
|
1450 | + include_once $SETTINGS['cpassman_dir'].'/pages/users.js.php'; |
|
1451 | 1451 | } elseif ($get['page'] === 'roles') { |
1452 | - include_once $SETTINGS['cpassman_dir'] . '/pages/roles.js.php'; |
|
1452 | + include_once $SETTINGS['cpassman_dir'].'/pages/roles.js.php'; |
|
1453 | 1453 | } elseif ($get['page'] === 'utilities.deletion') { |
1454 | - include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.deletion.js.php'; |
|
1454 | + include_once $SETTINGS['cpassman_dir'].'/pages/utilities.deletion.js.php'; |
|
1455 | 1455 | } elseif ($get['page'] === 'utilities.logs') { |
1456 | - include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.logs.js.php'; |
|
1456 | + include_once $SETTINGS['cpassman_dir'].'/pages/utilities.logs.js.php'; |
|
1457 | 1457 | } elseif ($get['page'] === 'utilities.database') { |
1458 | - include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.database.js.php'; |
|
1458 | + include_once $SETTINGS['cpassman_dir'].'/pages/utilities.database.js.php'; |
|
1459 | 1459 | } elseif ($get['page'] === 'utilities.renewal') { |
1460 | - include_once $SETTINGS['cpassman_dir'] . '/pages/utilities.renewal.js.php'; |
|
1460 | + include_once $SETTINGS['cpassman_dir'].'/pages/utilities.renewal.js.php'; |
|
1461 | 1461 | } |
1462 | 1462 | } else { |
1463 | - include_once $SETTINGS['cpassman_dir'] . '/includes/core/login.js.php'; |
|
1463 | + include_once $SETTINGS['cpassman_dir'].'/includes/core/login.js.php'; |
|
1464 | 1464 | } |
1465 | 1465 | } |