@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('options') === 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 | |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | // get list of all timezones |
| 298 | 298 | foreach ($zones as $key => $zone) { |
| 299 | 299 | echo ' |
| 300 | - <option value="' . $key . '"', isset($SETTINGS['timezone']) === true && $SETTINGS['timezone'] === $key ? ' selected' : '', '>' . $zone . '</option>'; |
|
| 300 | + <option value="' . $key.'"', isset($SETTINGS['timezone']) === true && $SETTINGS['timezone'] === $key ? ' selected' : '', '>'.$zone.'</option>'; |
|
| 301 | 301 | } |
| 302 | 302 | ?> |
| 303 | 303 | </select> |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | <?php |
| 349 | 349 | foreach ($languagesList as $teampassLang) { |
| 350 | 350 | echo ' |
| 351 | - <option value="' . $teampassLang . '"', isset($SETTINGS['default_language']) === true && $SETTINGS['default_language'] === $teampassLang ? ' selected' : '', '>' . $teampassLang . '</option>'; |
|
| 351 | + <option value="' . $teampassLang.'"', isset($SETTINGS['default_language']) === true && $SETTINGS['default_language'] === $teampassLang ? ' selected' : '', '>'.$teampassLang.'</option>'; |
|
| 352 | 352 | } |
| 353 | 353 | ?> |
| 354 | 354 | </select> |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | <?php |
| 446 | 446 | foreach (TP_PW_COMPLEXITY as $complex) { |
| 447 | 447 | echo ' |
| 448 | - <option value="' . $complex[0] . '"', isset($SETTINGS['personal_saltkey_security_level']) === true && $SETTINGS['personal_saltkey_security_level'] === $complex[0] ? ' selected' : '', '>' . $complex[1] . '</option>'; |
|
| 448 | + <option value="' . $complex[0].'"', isset($SETTINGS['personal_saltkey_security_level']) === true && $SETTINGS['personal_saltkey_security_level'] === $complex[0] ? ' selected' : '', '>'.$complex[1].'</option>'; |
|
| 449 | 449 | } |
| 450 | 450 | ?> |
| 451 | 451 | </select> |
@@ -781,7 +781,7 @@ discard block |
||
| 781 | 781 | ); |
| 782 | 782 | foreach ($roles as $role) { |
| 783 | 783 | echo ' |
| 784 | - <option value="' . $role['id'] . '"', in_array($role['id'], $arrRolesToPrint) === true ? ' selected' : '', '>' . addslashes($role['title']) . '</option>'; |
|
| 784 | + <option value="' . $role['id'].'"', in_array($role['id'], $arrRolesToPrint) === true ? ' selected' : '', '>'.addslashes($role['title']).'</option>'; |
|
| 785 | 785 | } |
| 786 | 786 | } |
| 787 | 787 | ?> |
@@ -958,7 +958,7 @@ discard block |
||
| 958 | 958 | <?php |
| 959 | 959 | foreach (TP_PW_COMPLEXITY as $complex) { |
| 960 | 960 | echo ' |
| 961 | - <option value="' . $complex[0] . '"', isset($SETTINGS['offline_key_level']) === true && $SETTINGS['offline_key_level'] === $complex[0] ? ' selected' : '', '>' . $complex[1] . '</option>'; |
|
| 961 | + <option value="' . $complex[0].'"', isset($SETTINGS['offline_key_level']) === true && $SETTINGS['offline_key_level'] === $complex[0] ? ' selected' : '', '>'.$complex[1].'</option>'; |
|
| 962 | 962 | } |
| 963 | 963 | ?> |
| 964 | 964 | </select> |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('folders') === 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 | ?> |
@@ -697,14 +697,14 @@ discard block |
||
| 697 | 697 | '<label><?php echo $lang->get('icon'); ?></label>' + |
| 698 | 698 | '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon" data-field="icon" value="'+folderIcon+'">' + |
| 699 | 699 | '<small class="form-text text-muted">' + |
| 700 | - '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + |
|
| 700 | + '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + |
|
| 701 | 701 | '</small>' + |
| 702 | 702 | '</div>' + |
| 703 | 703 | '<div class="form-group ml-2">' + |
| 704 | 704 | '<label><?php echo $lang->get('icon_on_selection'); ?></label>' + |
| 705 | 705 | '<input type="text" class="form-control form-folder-control purify" id="folder-edit-icon-selected" data-field="iconSelected" value="'+folderIconSelection+'">' + |
| 706 | 706 | '<small class="form-text text-muted">' + |
| 707 | - '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + |
|
| 707 | + '<?php echo $lang->get('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fas fa-external-link-alt ml-1"></i></a>' + |
|
| 708 | 708 | '</small>' + |
| 709 | 709 | '</div>' + |
| 710 | 710 | '<div class="form-group ml-2" id="folder-rights-tuned">' + |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('emails') === 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 | ?> |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.deletion') === 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 | ?> |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('items') === 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 | |
@@ -2553,7 +2553,7 @@ discard block |
||
| 2553 | 2553 | progress: "#form-item-password-strength", |
| 2554 | 2554 | score: "#form-item-password-strength" |
| 2555 | 2555 | }, |
| 2556 | - 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;?>], |
|
| 2556 | + 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; ?>], |
|
| 2557 | 2557 | }, |
| 2558 | 2558 | i18n : { |
| 2559 | 2559 | t: function (key) { |
@@ -2580,7 +2580,7 @@ discard block |
||
| 2580 | 2580 | <?php |
| 2581 | 2581 | $max_file_size = ''; |
| 2582 | 2582 | if (strrpos($SETTINGS['upload_maxfilesize'], 'mb') === false) { |
| 2583 | - $max_file_size = $SETTINGS['upload_maxfilesize'] . 'mb'; |
|
| 2583 | + $max_file_size = $SETTINGS['upload_maxfilesize'].'mb'; |
|
| 2584 | 2584 | } else { |
| 2585 | 2585 | $max_file_size = $SETTINGS['upload_maxfilesize']; |
| 2586 | 2586 | } |
@@ -4593,7 +4593,7 @@ discard block |
||
| 4593 | 4593 | |
| 4594 | 4594 | // Show passwords inputs and form |
| 4595 | 4595 | $('#dialog-ldap-user-change-password-info') |
| 4596 | - .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo $lang->get('ldap_user_has_changed_his_password');?>') |
|
| 4596 | + .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo $lang->get('ldap_user_has_changed_his_password'); ?>') |
|
| 4597 | 4597 | .removeClass('hidden'); |
| 4598 | 4598 | $('#dialog-ldap-user-change-password').removeClass('hidden'); |
| 4599 | 4599 | } else if (data.error_type !== 'undefined') { |
@@ -4612,7 +4612,7 @@ discard block |
||
| 4612 | 4612 | |
| 4613 | 4613 | // Show passwords inputs and form |
| 4614 | 4614 | $('#dialog-ldap-user-change-password-info') |
| 4615 | - .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo $lang->get('ldap_user_has_changed_his_password');?>') |
|
| 4615 | + .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo $lang->get('ldap_user_has_changed_his_password'); ?>') |
|
| 4616 | 4616 | .removeClass('hidden'); |
| 4617 | 4617 | $('#dialog-ldap-user-change-password').removeClass('hidden'); |
| 4618 | 4618 | }); |
@@ -4973,7 +4973,7 @@ discard block |
||
| 4973 | 4973 | '#get_item_link', |
| 4974 | 4974 | { |
| 4975 | 4975 | text: function(e) { |
| 4976 | - return ("<?php echo $SETTINGS['cpassman_url'];?>/index.php?page=items&group="+store.get('teampassItem').folderId+"&id="+store.get('teampassItem').id); |
|
| 4976 | + return ("<?php echo $SETTINGS['cpassman_url']; ?>/index.php?page=items&group="+store.get('teampassItem').folderId+"&id="+store.get('teampassItem').id); |
|
| 4977 | 4977 | } |
| 4978 | 4978 | }) |
| 4979 | 4979 | .on('success', function(e) { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.logs') === false) { |
| 73 | 73 | // Not allowed page |
| 74 | 74 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
| 75 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 75 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 76 | 76 | exit; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('fields') === false) { |
| 66 | 66 | // Not allowed page |
| 67 | 67 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
| 68 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 68 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 69 | 69 | exit; |
| 70 | 70 | } |
| 71 | 71 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $folders = $tree->getDescendants(); |
| 178 | 178 | foreach ($folders as $folder) { |
| 179 | 179 | DB::query( |
| 180 | - 'SELECT * FROM ' . prefixTable('nested_tree') . ' |
|
| 180 | + 'SELECT * FROM '.prefixTable('nested_tree').' |
|
| 181 | 181 | WHERE personal_folder = %i AND id = %i', |
| 182 | 182 | '0', |
| 183 | 183 | $folder->id |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | $ident .= '-'; |
| 190 | 190 | } |
| 191 | 191 | echo ' |
| 192 | - <option value="' . $folder->id . '">' . $ident . ' ' . str_replace('&', '&', $folder->title) . '</option>'; |
|
| 192 | + <option value="' . $folder->id.'">'.$ident.' '.str_replace('&', '&', $folder->title).'</option>'; |
|
| 193 | 193 | } |
| 194 | 194 | } |
| 195 | 195 | ?> |
@@ -220,9 +220,9 @@ discard block |
||
| 220 | 220 | <select class="form-control form-item-control select2" style="width:100%;" id="form-field-type"> |
| 221 | 221 | <?php |
| 222 | 222 | // Build list of Types |
| 223 | - echo '<option value="">-- ' . $lang->get('select') . ' --</option> |
|
| 224 | - <option value="text">' . $lang->get('text') . '</option> |
|
| 225 | - <option value="textarea">' . $lang->get('textarea') . '</option>'; |
|
| 223 | + echo '<option value="">-- '.$lang->get('select').' --</option> |
|
| 224 | + <option value="text">' . $lang->get('text').'</option> |
|
| 225 | + <option value="textarea">' . $lang->get('textarea').'</option>'; |
|
| 226 | 226 | ?> |
| 227 | 227 | </select> |
| 228 | 228 | </div> |
@@ -255,14 +255,14 @@ discard block |
||
| 255 | 255 | <select class="form-control form-item-control select2" multiple="multiple" style="width:100%;" id="form-field-roles"> |
| 256 | 256 | <?php |
| 257 | 257 | // Build list of Roles |
| 258 | - echo '<option value="all">' . $lang->get('every_roles') . '</option>'; |
|
| 258 | + echo '<option value="all">'.$lang->get('every_roles').'</option>'; |
|
| 259 | 259 | $rows = DB::query( |
| 260 | 260 | 'SELECT id, title |
| 261 | - FROM ' . prefixTable('roles_title') . ' |
|
| 261 | + FROM ' . prefixTable('roles_title').' |
|
| 262 | 262 | ORDER BY title ASC' |
| 263 | 263 | ); |
| 264 | 264 | foreach ($rows as $record) { |
| 265 | - echo '<option value="' . $record['id'] . '">' . addslashes($record['title']) . '</option>'; |
|
| 265 | + echo '<option value="'.$record['id'].'">'.addslashes($record['title']).'</option>'; |
|
| 266 | 266 | } |
| 267 | 267 | ?> |
| 268 | 268 | </select> |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.logs') === false) { |
| 72 | 72 | // Not allowed page |
| 73 | 73 | $session->set('system-error_code', ERR_NOT_ALLOWED); |
| 74 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 74 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 75 | 75 | exit; |
| 76 | 76 | } |
| 77 | 77 | ?> |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $lang = new Language(); |
| 42 | 42 | $get = []; |
| 43 | 43 | $get['post_type'] = $superGlobal->get('post_type', 'GET'); |
| 44 | -if (isset($SETTINGS['duo']) === true && (int) $SETTINGS['duo'] === 1 && $get['post_type'] === 'duo' ) { |
|
| 44 | +if (isset($SETTINGS['duo']) === true && (int) $SETTINGS['duo'] === 1 && $get['post_type'] === 'duo') { |
|
| 45 | 45 | $get['duo_state'] = $superGlobal->get('state', 'GET'); |
| 46 | 46 | $get['duo_code'] = $superGlobal->get('duo_code', 'GET'); |
| 47 | 47 | } |
@@ -51,8 +51,7 @@ discard block |
||
| 51 | 51 | <div class="login-box"> |
| 52 | 52 | <div class="login-logo"><div style="margin:30px;">', |
| 53 | 53 | isset($SETTINGS['custom_logo']) === true && empty($SETTINGS['custom_logo']) === false ? |
| 54 | - '<img src="' . (string) $SETTINGS['custom_logo'] . '" alt="" style="text-align:center; max-width:100px;" />' : |
|
| 55 | - '<img src="includes/images/teampass-logo2-login.png" alt="Teampass Logo">', |
|
| 54 | + '<img src="'.(string) $SETTINGS['custom_logo'].'" alt="" style="text-align:center; max-width:100px;" />' : '<img src="includes/images/teampass-logo2-login.png" alt="Teampass Logo">', |
|
| 56 | 55 | ' |
| 57 | 56 | </div> |
| 58 | 57 | <div style="font-weight:bold;"> |
@@ -72,14 +71,14 @@ discard block |
||
| 72 | 71 | |
| 73 | 72 | <div class="card-body login-card-body1"> |
| 74 | 73 | <div class="input-group has-feedback mb-2"> |
| 75 | - <div class="input-group-prepend infotip" title="' . $lang->get('login') . '"> |
|
| 74 | + <div class="input-group-prepend infotip" title="' . $lang->get('login').'"> |
|
| 76 | 75 | <span class="input-group-text"><i class="fa-solid fa-user fa-fw"></i></span> |
| 77 | 76 | </div>'; |
| 78 | 77 | if ( |
| 79 | 78 | isset($SETTINGS['enable_http_request_login']) === true |
| 80 | 79 | && (int) $SETTINGS['enable_http_request_login'] === 1 |
| 81 | 80 | && $superGlobal->get('PHP_AUTH_USER', 'SERVER') !== null |
| 82 | - && ! (isset($SETTINGS['maintenance_mode']) === true |
|
| 81 | + && !(isset($SETTINGS['maintenance_mode']) === true |
|
| 83 | 82 | && (int) $SETTINGS['maintenance_mode'] === 1) |
| 84 | 83 | ) { |
| 85 | 84 | if (strpos($superGlobal->get('PHP_AUTH_USER', 'SERVER'), '@') !== false) { |
@@ -93,32 +92,32 @@ discard block |
||
| 93 | 92 | <input type="text" id="login" class="form-control" placeholder="', filter_var($username, FILTER_SANITIZE_FULL_SPECIAL_CHARS), '" readonly>'; |
| 94 | 93 | } else { |
| 95 | 94 | echo ' |
| 96 | - <input type="text" id="login" class="form-control" placeholder="' . $lang->get('index_login') . '" value="'.(null !== $session->get('user-login') && empty($session->get('user-login')) === false ? filter_var($session->get('user-login'), FILTER_SANITIZE_FULL_SPECIAL_CHARS) : '').'">'; |
|
| 95 | + <input type="text" id="login" class="form-control" placeholder="' . $lang->get('index_login').'" value="'.(null !== $session->get('user-login') && empty($session->get('user-login')) === false ? filter_var($session->get('user-login'), FILTER_SANITIZE_FULL_SPECIAL_CHARS) : '').'">'; |
|
| 97 | 96 | } |
| 98 | 97 | |
| 99 | 98 | echo ' |
| 100 | 99 | </div>'; |
| 101 | -if (! (isset($SETTINGS['enable_http_request_login']) === true |
|
| 100 | +if (!(isset($SETTINGS['enable_http_request_login']) === true |
|
| 102 | 101 | && (int) $SETTINGS['enable_http_request_login'] === 1 |
| 103 | 102 | && $superGlobal->get('PHP_AUTH_USER', 'SERVER') !== null |
| 104 | - && ! (isset($SETTINGS['maintenance_mode']) === true |
|
| 103 | + && !(isset($SETTINGS['maintenance_mode']) === true |
|
| 105 | 104 | && (int) $SETTINGS['maintenance_mode'] === 1))) { |
| 106 | 105 | echo ' |
| 107 | 106 | <div class="input-group has-feedback mb-2"> |
| 108 | - <div class="input-group-prepend infotip" title="' . $lang->get('password') . '"> |
|
| 107 | + <div class="input-group-prepend infotip" title="' . $lang->get('password').'"> |
|
| 109 | 108 | <span class="input-group-text"><i class="fa-solid fa-lock fa-fw"></i></span> |
| 110 | 109 | </div> |
| 111 | - <input type="password" id="pw" class="form-control submit-button" placeholder="' . $lang->get('index_password') . '"> |
|
| 110 | + <input type="password" id="pw" class="form-control submit-button" placeholder="' . $lang->get('index_password').'"> |
|
| 112 | 111 | </div>'; |
| 113 | 112 | } |
| 114 | 113 | |
| 115 | 114 | echo ' |
| 116 | 115 | <div class="input-group has-feedback mb-2"> |
| 117 | - <div class="input-group-prepend infotip" title="' . $lang->get('session_expiration_in_minutes') . '"> |
|
| 116 | + <div class="input-group-prepend infotip" title="' . $lang->get('session_expiration_in_minutes').'"> |
|
| 118 | 117 | <span class="input-group-text"><i class="fa-solid fa-clock fa-fw"></i></span> |
| 119 | 118 | </div> |
| 120 | 119 | <input type="text" id="session_duration" class="form-control submit-button" |
| 121 | - placeholder="' . $lang->get('index_session_duration') .' (' . $lang->get('minutes') . ')" |
|
| 120 | + placeholder="' . $lang->get('index_session_duration').' ('.$lang->get('minutes').')" |
|
| 122 | 121 | value="', isset($SETTINGS['default_session_expiration_time']) === true ? $SETTINGS['default_session_expiration_time'] : '', '"> |
| 123 | 122 | </div>'; |
| 124 | 123 | // 2FA auth selector |
@@ -128,7 +127,7 @@ discard block |
||
| 128 | 127 | <input type="hidden" id="duo_state" value="', isset($get['duo_state']) === true && is_null($get['duo_state']) === false ? $get['duo_state'] : '', '"> |
| 129 | 128 | <div class="row mb-3 hidden" id="2fa_methods_selector"> |
| 130 | 129 | <div class="col-12"> |
| 131 | - <h8 class="login-box-msg">' . $lang->get('2fa_authentication_selector') . '</h8> |
|
| 130 | + <h8 class="login-box-msg">' . $lang->get('2fa_authentication_selector').'</h8> |
|
| 132 | 131 | <div class="2fa-methods text-center mt-2">', |
| 133 | 132 | isset($SETTINGS['google_authentication']) === true && (int) $SETTINGS['google_authentication'] === 1 ? |
| 134 | 133 | ' |
@@ -162,14 +161,14 @@ discard block |
||
| 162 | 161 | echo ' |
| 163 | 162 | <div id="div-2fa-google" class="mb-3 div-2fa-method hidden"> |
| 164 | 163 | <div class="input-group has-feedback mb-2"> |
| 165 | - <div class="input-group-prepend infotip" title="' . $lang->get('mfa_unique_code') . '"> |
|
| 164 | + <div class="input-group-prepend infotip" title="' . $lang->get('mfa_unique_code').'"> |
|
| 166 | 165 | <span class="input-group-text"><i class="fa-solid fa-key fa-fw"></i></span> |
| 167 | 166 | </div> |
| 168 | - <input type="text" id="ga_code" class="form-control submit-button" placeholder="' . $lang->get('ga_identification_code') . '" /> |
|
| 167 | + <input type="text" id="ga_code" class="form-control submit-button" placeholder="' . $lang->get('ga_identification_code').'" /> |
|
| 169 | 168 | <span class="input-group-append"> |
| 170 | 169 | <button type="button" class="btn btn-info btn-flat" onclick="send_user_new_temporary_ga_code()"> |
| 171 | 170 | <i class="fa-solid fa-envelope form-control-feedback pointer infotip" |
| 172 | - title="' . $lang->get('i_need_to_generate_new_ga_code') . '"></i> |
|
| 171 | + title="' . $lang->get('i_need_to_generate_new_ga_code').'"></i> |
|
| 173 | 172 | </button> |
| 174 | 173 | </span> |
| 175 | 174 | </div> |
@@ -187,7 +186,7 @@ discard block |
||
| 187 | 186 | <script> |
| 188 | 187 | var seconds = 1; |
| 189 | 188 | function updateLogonButton(timeToGo){ |
| 190 | - document.getElementById("but_identify_user").value = "' . $lang->get('duration_login_attempt') . ' " + timeToGo; |
|
| 189 | + document.getElementById("but_identify_user").value = "' . $lang->get('duration_login_attempt').' " + timeToGo; |
|
| 191 | 190 | } |
| 192 | 191 | $( window ).on( "load", function() { |
| 193 | 192 | updateLogonButton(seconds); |
@@ -196,7 +195,7 @@ discard block |
||
| 196 | 195 | if (seconds >= 0) { |
| 197 | 196 | updateLogonButton(seconds); |
| 198 | 197 | } else if(seconds === 0) { |
| 199 | - launchIdentify("", "' . $nextUrl . '"); |
|
| 198 | + launchIdentify("", "' . $nextUrl.'"); |
|
| 200 | 199 | } |
| 201 | 200 | updateLogonButton(seconds); |
| 202 | 201 | }, |
@@ -217,15 +216,15 @@ discard block |
||
| 217 | 216 | <div class="col-8"> |
| 218 | 217 | <div id="yubiko-new-key" class="alert alert-info hidden"> |
| 219 | 218 | <p> |
| 220 | - <input type="text" size="10" id="yubico_user_id" class="form-control" placeholder="' . $lang->get('yubico_user_id') . '"> |
|
| 219 | + <input type="text" size="10" id="yubico_user_id" class="form-control" placeholder="' . $lang->get('yubico_user_id').'"> |
|
| 221 | 220 | </p> |
| 222 | 221 | <p> |
| 223 | - <input type="text" size="10" id="yubico_user_key" class="form-control" placeholder="' . $lang->get('yubico_user_key') . '"> |
|
| 222 | + <input type="text" size="10" id="yubico_user_key" class="form-control" placeholder="' . $lang->get('yubico_user_key').'"> |
|
| 224 | 223 | </p> |
| 225 | 224 | </div> |
| 226 | - <input autocomplete="off" type="text" id="yubico_key" class="form-control submit-button" placeholder="' . $lang->get('press_your_yubico_key') . '"> |
|
| 225 | + <input autocomplete="off" type="text" id="yubico_key" class="form-control submit-button" placeholder="' . $lang->get('press_your_yubico_key').'"> |
|
| 227 | 226 | <div class="row"> |
| 228 | - <span class="ml-2 mt-1 font-weight-light small pointer" id="register-yubiko-key">' . $lang->get('register_new_yubiko_key') . '</span> |
|
| 227 | + <span class="ml-2 mt-1 font-weight-light small pointer" id="register-yubiko-key">' . $lang->get('register_new_yubiko_key').'</span> |
|
| 229 | 228 | </div> |
| 230 | 229 | </div> |
| 231 | 230 | </div>'; |
@@ -234,22 +233,22 @@ discard block |
||
| 234 | 233 | echo ' |
| 235 | 234 | <div class="row mb-3 mt-5"> |
| 236 | 235 | <div class="col-12"> |
| 237 | - <button id="but_identify_user" class="btn btn-primary btn-block">' . $lang->get('log_in') . '</button> |
|
| 236 | + <button id="but_identify_user" class="btn btn-primary btn-block">' . $lang->get('log_in').'</button> |
|
| 238 | 237 | |
| 239 | 238 | <!-- In case of upgrade, the user has to provide his One Time Code --> |
| 240 | 239 | <div class="card-body user-one-time-code-card-body hidden"> |
| 241 | - <h5 class="login-box-msg">' . $lang->get('provide_personal_one_time_code') . '</h5> |
|
| 240 | + <h5 class="login-box-msg">' . $lang->get('provide_personal_one_time_code').'</h5> |
|
| 242 | 241 | |
| 243 | 242 | <div class="input-group has-feedback mb-2 mt-4"> |
| 244 | 243 | <div class="input-group-prepend"> |
| 245 | 244 | <span class="input-group-text"><i class="fa-solid fa-unlock-alt"></i></span> |
| 246 | 245 | </div> |
| 247 | - <input type="password" id="user-one-time-code" class="form-control" placeholder="' . $lang->get('one_time_code') . '"> |
|
| 246 | + <input type="password" id="user-one-time-code" class="form-control" placeholder="' . $lang->get('one_time_code').'"> |
|
| 248 | 247 | </div> |
| 249 | 248 | |
| 250 | 249 | <div class="row mb-3"> |
| 251 | 250 | <div class="col-12"> |
| 252 | - <button id="but_confirm_otc" class="btn btn-primary btn-block">' . $lang->get('confirm') . '</button> |
|
| 251 | + <button id="but_confirm_otc" class="btn btn-primary btn-block">' . $lang->get('confirm').'</button> |
|
| 253 | 252 | </div> |
| 254 | 253 | </div> |
| 255 | 254 | </div> |
@@ -264,10 +263,10 @@ discard block |
||
| 264 | 263 | // In case of password change |
| 265 | 264 | echo ' |
| 266 | 265 | <div class="card-body confirm-password-card-body hidden"> |
| 267 | - <h5 class="login-box-msg">' . $lang->get('new_password_required') . '</h5> |
|
| 266 | + <h5 class="login-box-msg">' . $lang->get('new_password_required').'</h5> |
|
| 268 | 267 | |
| 269 | 268 | <div class="alert alert-info"> |
| 270 | - <div class="text-center"><i class="icon fa fa-info"></i>' . $lang->get('password_strength') . ' |
|
| 269 | + <div class="text-center"><i class="icon fa fa-info"></i>' . $lang->get('password_strength').' |
|
| 271 | 270 | <span id="confirm-password-level" class="ml-2 font-weight-bold"></span></div> |
| 272 | 271 | </div> |
| 273 | 272 | |
@@ -277,20 +276,20 @@ discard block |
||
| 277 | 276 | <div class="input-group-prepend"> |
| 278 | 277 | <span class="input-group-text"><i class="fas fa-key"></i></span> |
| 279 | 278 | </div> |
| 280 | - <input type="password" id="current-user-password" class="form-control" placeholder="' . $lang->get('current_password') . '"> |
|
| 279 | + <input type="password" id="current-user-password" class="form-control" placeholder="' . $lang->get('current_password').'"> |
|
| 281 | 280 | </div> |
| 282 | 281 | </div> |
| 283 | 282 | <div class="input-group has-feedback mb-2 mt-4"> |
| 284 | 283 | <div class="input-group-prepend"> |
| 285 | 284 | <span class="input-group-text"><i class="fas fa-key"></i></span> |
| 286 | 285 | </div> |
| 287 | - <input type="password" id="new-user-password" class="form-control" placeholder="' . $lang->get('index_new_pw') . '"> |
|
| 286 | + <input type="password" id="new-user-password" class="form-control" placeholder="' . $lang->get('index_new_pw').'"> |
|
| 288 | 287 | </div> |
| 289 | 288 | <div class="input-group has-feedback mb-2"> |
| 290 | 289 | <div class="input-group-prepend"> |
| 291 | 290 | <span class="input-group-text"><i class="fas fa-key"></i></span> |
| 292 | 291 | </div> |
| 293 | - <input type="password" id="new-user-password-confirm" class="form-control" placeholder="' . $lang->get('index_change_pw_confirmation') . '"> |
|
| 292 | + <input type="password" id="new-user-password-confirm" class="form-control" placeholder="' . $lang->get('index_change_pw_confirmation').'"> |
|
| 294 | 293 | </div> |
| 295 | 294 | <div class="row mb-3"> |
| 296 | 295 | <div class="col-md-12 offset-sm-4 text-center"> |
@@ -301,7 +300,7 @@ discard block |
||
| 301 | 300 | </div> |
| 302 | 301 | <div class="row mb-3"> |
| 303 | 302 | <div class="col-12"> |
| 304 | - <button id="but_confirm_new_password" class="btn btn-primary btn-block">' . $lang->get('confirm') . '</button> |
|
| 303 | + <button id="but_confirm_new_password" class="btn btn-primary btn-block">' . $lang->get('confirm').'</button> |
|
| 305 | 304 | </div> |
| 306 | 305 | </div> |
| 307 | 306 | </div> |
@@ -309,20 +308,20 @@ discard block |
||
| 309 | 308 | |
| 310 | 309 | <div class="card-body hidden" id="card-user-treat-psk"> |
| 311 | 310 | <div class="alert alert-info"> |
| 312 | - <div class="text-center"><i class="icon fa fa-info"></i>' . $lang->get('user_has_psk_info') . '</div> |
|
| 311 | + <div class="text-center"><i class="icon fa fa-info"></i>' . $lang->get('user_has_psk_info').'</div> |
|
| 313 | 312 | </div> |
| 314 | 313 | <div class="input-group has-feedback mb-2"> |
| 315 | 314 | <div class="input-group-prepend"> |
| 316 | 315 | <span class="input-group-text"><i class="fas fa-key"></i></span> |
| 317 | 316 | </div> |
| 318 | - <input type="password" id="user-old-defuse-psk" class="form-control" placeholder="' . $lang->get('home_personal_saltkey') . '"> |
|
| 317 | + <input type="password" id="user-old-defuse-psk" class="form-control" placeholder="' . $lang->get('home_personal_saltkey').'"> |
|
| 319 | 318 | </div> |
| 320 | 319 | <div class="row mb-3 mt-4"> |
| 321 | 320 | <div class="col-12"> |
| 322 | - <button id="but_confirm_defuse_psk" class="btn btn-primary btn-block">' . $lang->get('launch') . '</button> |
|
| 321 | + <button id="but_confirm_defuse_psk" class="btn btn-primary btn-block">' . $lang->get('launch').'</button> |
|
| 323 | 322 | </div> |
| 324 | 323 | <div class="col-12 mt-3"> |
| 325 | - <button id="but_confirm_forgot_defuse_psk" class="btn btn-danger btn-block text-bold">' . $lang->get('i_cannot_remember') . '</button> |
|
| 324 | + <button id="but_confirm_forgot_defuse_psk" class="btn btn-danger btn-block text-bold">' . $lang->get('i_cannot_remember').'</button> |
|
| 326 | 325 | </div> |
| 327 | 326 | </div> |
| 328 | 327 | </div> |