@@ -69,7 +69,7 @@ |
||
| 69 | 69 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.database') === false) { |
| 70 | 70 | // Not allowed page |
| 71 | 71 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 72 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 72 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 73 | 73 | exit; |
| 74 | 74 | } |
| 75 | 75 | ?> |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('profile') === false) { |
| 71 | 71 | // Not allowed page |
| 72 | 72 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 73 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 73 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 74 | 74 | exit; |
| 75 | 75 | } |
| 76 | 76 | ?> |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | }) |
| 95 | 95 | |
| 96 | 96 | // Select user properties |
| 97 | - $('#profile-user-language option[value=<?php echo $_SESSION['user']['user_language'];?>').attr('selected','selected'); |
|
| 97 | + $('#profile-user-language option[value=<?php echo $_SESSION['user']['user_language']; ?>').attr('selected','selected'); |
|
| 98 | 98 | |
| 99 | 99 | |
| 100 | 100 | // AVATAR IMPORT |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $('#profile-user-email').val(data.email) |
| 262 | 262 | |
| 263 | 263 | // reload page in case of language change |
| 264 | - if ($('#profile-user-language').val().toLowerCase() !== '<?php echo $_SESSION['user']['user_language'];?>') { |
|
| 264 | + if ($('#profile-user-language').val().toLowerCase() !== '<?php echo $_SESSION['user']['user_language']; ?>') { |
|
| 265 | 265 | // prepare reload |
| 266 | 266 | $(this).delay(3000).queue(function() { |
| 267 | 267 | document.location.href = "index.php?page=profile"; |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | // Inform user |
| 273 | 273 | toastr.remove(); |
| 274 | 274 | toastr.info( |
| 275 | - '<?php echo langHdl('alert_page_will_reload') . ' ... ' . langHdl('please_wait'); ?>', |
|
| 275 | + '<?php echo langHdl('alert_page_will_reload').' ... '.langHdl('please_wait'); ?>', |
|
| 276 | 276 | '', { |
| 277 | 277 | timeOut: 3000, |
| 278 | 278 | progressBar: true |
@@ -376,27 +376,27 @@ discard block |
||
| 376 | 376 | "defaultText": "<?php echo langHdl('index_pw_level_txt'); ?>", |
| 377 | 377 | "ratings": [ |
| 378 | 378 | { |
| 379 | - "minScore": <?php echo TP_PW_STRENGTH_1;?>, |
|
| 379 | + "minScore": <?php echo TP_PW_STRENGTH_1; ?>, |
|
| 380 | 380 | "className": "meterWarn", |
| 381 | 381 | "text": "<?php echo langHdl('complex_level1'); ?>" |
| 382 | 382 | }, |
| 383 | 383 | { |
| 384 | - "minScore": <?php echo TP_PW_STRENGTH_2;?>, |
|
| 384 | + "minScore": <?php echo TP_PW_STRENGTH_2; ?>, |
|
| 385 | 385 | "className": "meterWarn", |
| 386 | 386 | "text": "<?php echo langHdl('complex_level2'); ?>" |
| 387 | 387 | }, |
| 388 | 388 | { |
| 389 | - "minScore": <?php echo TP_PW_STRENGTH_3;?>, |
|
| 389 | + "minScore": <?php echo TP_PW_STRENGTH_3; ?>, |
|
| 390 | 390 | "className": "meterGood", |
| 391 | 391 | "text": "<?php echo langHdl('complex_level3'); ?>" |
| 392 | 392 | }, |
| 393 | 393 | { |
| 394 | - "minScore": <?php echo TP_PW_STRENGTH_4;?>, |
|
| 394 | + "minScore": <?php echo TP_PW_STRENGTH_4; ?>, |
|
| 395 | 395 | "className": "meterGood", |
| 396 | 396 | "text": "<?php echo langHdl('complex_level4'); ?>" |
| 397 | 397 | }, |
| 398 | 398 | { |
| 399 | - "minScore": <?php echo TP_PW_STRENGTH_5;?>, |
|
| 399 | + "minScore": <?php echo TP_PW_STRENGTH_5; ?>, |
|
| 400 | 400 | "className": "meterExcel", |
| 401 | 401 | "text": "<?php echo langHdl('complex_level5'); ?>" |
| 402 | 402 | } |
@@ -489,27 +489,27 @@ discard block |
||
| 489 | 489 | "defaultText": "<?php echo langHdl('index_pw_level_txt'); ?>", |
| 490 | 490 | "ratings": [ |
| 491 | 491 | { |
| 492 | - "minScore": <?php echo TP_PW_STRENGTH_1;?>, |
|
| 492 | + "minScore": <?php echo TP_PW_STRENGTH_1; ?>, |
|
| 493 | 493 | "className": "meterWarn", |
| 494 | 494 | "text": "<?php echo langHdl('complex_level1'); ?>" |
| 495 | 495 | }, |
| 496 | 496 | { |
| 497 | - "minScore": <?php echo TP_PW_STRENGTH_2;?>, |
|
| 497 | + "minScore": <?php echo TP_PW_STRENGTH_2; ?>, |
|
| 498 | 498 | "className": "meterWarn", |
| 499 | 499 | "text": "<?php echo langHdl('complex_level2'); ?>" |
| 500 | 500 | }, |
| 501 | 501 | { |
| 502 | - "minScore": <?php echo TP_PW_STRENGTH_3;?>, |
|
| 502 | + "minScore": <?php echo TP_PW_STRENGTH_3; ?>, |
|
| 503 | 503 | "className": "meterGood", |
| 504 | 504 | "text": "<?php echo langHdl('complex_level3'); ?>" |
| 505 | 505 | }, |
| 506 | 506 | { |
| 507 | - "minScore": <?php echo TP_PW_STRENGTH_4;?>, |
|
| 507 | + "minScore": <?php echo TP_PW_STRENGTH_4; ?>, |
|
| 508 | 508 | "className": "meterGood", |
| 509 | 509 | "text": "<?php echo langHdl('complex_level4'); ?>" |
| 510 | 510 | }, |
| 511 | 511 | { |
| 512 | - "minScore": <?php echo TP_PW_STRENGTH_5;?>, |
|
| 512 | + "minScore": <?php echo TP_PW_STRENGTH_5; ?>, |
|
| 513 | 513 | "className": "meterExcel", |
| 514 | 514 | "text": "<?php echo langHdl('complex_level5'); ?>" |
| 515 | 515 | } |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | } |
| 526 | 526 | }); |
| 527 | 527 | |
| 528 | - $('#profile-keys_download-date').text('<?php echo $_SESSION['user']['keys_recovery_time'] === NULL ? langHdl('none') : date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $_SESSION['user']['keys_recovery_time']); ?>'); |
|
| 528 | + $('#profile-keys_download-date').text('<?php echo $_SESSION['user']['keys_recovery_time'] === NULL ? langHdl('none') : date($SETTINGS['date_format'].' '.$SETTINGS['time_format'], (int) $_SESSION['user']['keys_recovery_time']); ?>'); |
|
| 529 | 529 | |
| 530 | 530 | $("#open-dialog-keys-download").on('click', function(event) { |
| 531 | 531 | event.preventDefault(); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('fields') === false) { |
| 70 | 70 | // Not allowed page |
| 71 | 71 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 72 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 72 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 73 | 73 | exit; |
| 74 | 74 | } |
| 75 | 75 | ?> |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | if (parseInt($(this).data('category')) === parseInt(selectedCategory)) { |
| 166 | 166 | fields.push({ |
| 167 | 167 | id: $(this).data('order'), |
| 168 | - text: '<?php echo langHdl('before') . ' '; ?>' + $(this).find('td:eq(1)').text() |
|
| 168 | + text: '<?php echo langHdl('before').' '; ?>' + $(this).find('td:eq(1)').text() |
|
| 169 | 169 | }); |
| 170 | 170 | } |
| 171 | 171 | }); |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | if ($(this).data('category') === categoryId) { |
| 572 | 572 | fields.push({ |
| 573 | 573 | id: $(this).data('order'), |
| 574 | - text: '<?php echo langHdl('before') . ' '; ?>' + $(this).find('td:eq(1)').text() |
|
| 574 | + text: '<?php echo langHdl('before').' '; ?>' + $(this).find('td:eq(1)').text() |
|
| 575 | 575 | }); |
| 576 | 576 | } |
| 577 | 577 | }); |
@@ -738,7 +738,7 @@ discard block |
||
| 738 | 738 | '</tr>'; |
| 739 | 739 | |
| 740 | 740 | // Prepare list of categories for Form |
| 741 | - categoriesList += '<option value="' + categoryId + '"><?php echo langHdl('before') . ' '; ?>' + val.title + '</option>'; |
|
| 741 | + categoriesList += '<option value="' + categoryId + '"><?php echo langHdl('before').' '; ?>' + val.title + '</option>'; |
|
| 742 | 742 | |
| 743 | 743 | positionCategory += 1; |
| 744 | 744 | } else { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('items') === false) { |
| 64 | 64 | // Not allowed page |
| 65 | 65 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 66 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 66 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 67 | 67 | exit; |
| 68 | 68 | } |
| 69 | 69 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | // Get list of users |
| 92 | 92 | $usersList = []; |
| 93 | -$rows = DB::query('SELECT id,login,email FROM ' . prefixTable('users') . ' ORDER BY login ASC'); |
|
| 93 | +$rows = DB::query('SELECT id,login,email FROM '.prefixTable('users').' ORDER BY login ASC'); |
|
| 94 | 94 | foreach ($rows as $record) { |
| 95 | 95 | $usersList[$record['login']] = [ |
| 96 | 96 | 'id' => $record['id'], |
@@ -101,16 +101,16 @@ discard block |
||
| 101 | 101 | // Get list of roles |
| 102 | 102 | $arrRoles = []; |
| 103 | 103 | $listRoles = ''; |
| 104 | -$rows = DB::query('SELECT id,title FROM ' . prefixTable('roles_title') . ' ORDER BY title ASC'); |
|
| 104 | +$rows = DB::query('SELECT id,title FROM '.prefixTable('roles_title').' ORDER BY title ASC'); |
|
| 105 | 105 | foreach ($rows as $reccord) { |
| 106 | 106 | $arrRoles[$reccord['title']] = [ |
| 107 | 107 | 'id' => $reccord['id'], |
| 108 | 108 | 'title' => $reccord['title'], |
| 109 | 109 | ]; |
| 110 | 110 | if (empty($listRoles)) { |
| 111 | - $listRoles = $reccord['id'] . '#' . $reccord['title']; |
|
| 111 | + $listRoles = $reccord['id'].'#'.$reccord['title']; |
|
| 112 | 112 | } else { |
| 113 | - $listRoles .= ';' . $reccord['id'] . '#' . $reccord['title']; |
|
| 113 | + $listRoles .= ';'.$reccord['id'].'#'.$reccord['title']; |
|
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | <li class="nav-item"><a class="nav-link" href="#tab_3" data-toggle="tab"><i class="fa-solid fa-archive mr-2"></i><?php echo langHdl('attachments'); ?></a></li> |
| 186 | 186 | <?php |
| 187 | 187 | echo isset($SETTINGS['item_extra_fields']) === true && (int) $SETTINGS['item_extra_fields'] === 1 ? ' |
| 188 | - <li class="nav-item"><a class="nav-link" href="#tab_4" data-toggle="tab"><i class="fa-solid fa-cubes mr-2"></i>' . langHdl('fields') . '</a></li>' : ''; |
|
| 188 | + <li class="nav-item"><a class="nav-link" href="#tab_4" data-toggle="tab"><i class="fa-solid fa-cubes mr-2"></i>' . langHdl('fields').'</a></li>' : ''; |
|
| 189 | 189 | ?> |
| 190 | 190 | </ul> |
| 191 | 191 | </div><!-- /.card-header --> |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | <?php |
| 255 | 255 | for ($i = 4; $i <= $SETTINGS['pwd_maximum_length']; ++$i) { |
| 256 | 256 | echo ' |
| 257 | - <option>' . $i . '</option>'; |
|
| 257 | + <option>' . $i.'</option>'; |
|
| 258 | 258 | } |
| 259 | 259 | ?> |
| 260 | 260 | </select> |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | <span class="ml-2 col-md-1 clear-me-html" id="form-item-icon-show"></span> |
| 285 | 285 | </div> |
| 286 | 286 | <small class='form-text text-muted'> |
| 287 | - <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a> |
|
| 287 | + <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a> |
|
| 288 | 288 | </small> |
| 289 | 289 | </div> |
| 290 | 290 | |
@@ -440,34 +440,34 @@ discard block |
||
| 440 | 440 | if (isset($_SESSION['item_fields']) === true) { |
| 441 | 441 | foreach ($_SESSION['item_fields'] as $category) { |
| 442 | 442 | echo ' |
| 443 | - <div class="callout callout-info form-item-category hidden" id="form-item-category-' . $category['id'] . '"> |
|
| 444 | - <h5>' . $category['title'] . '</h5> |
|
| 443 | + <div class="callout callout-info form-item-category hidden" id="form-item-category-' . $category['id'].'"> |
|
| 444 | + <h5>' . $category['title'].'</h5> |
|
| 445 | 445 | <p>'; |
| 446 | 446 | foreach ($category['fields'] as $field) { |
| 447 | 447 | if ($field['type'] === 'textarea') { |
| 448 | 448 | echo ' |
| 449 | - <div class="form-group mb-3 form-item-field" id="form-item-field-' . $field['id'] . '" data-field-id="' . $field['id'] . '"> |
|
| 449 | + <div class="form-group mb-3 form-item-field" id="form-item-field-' . $field['id'].'" data-field-id="'.$field['id'].'"> |
|
| 450 | 450 | <label>' . $field['title'], |
| 451 | 451 | $field['is_mandatory'] === '1' ? |
| 452 | - '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="' . langHdl('is_mandatory') . '"></span>' : '', |
|
| 452 | + '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="'.langHdl('is_mandatory').'"></span>' : '', |
|
| 453 | 453 | '</label> |
| 454 | - <textarea class="form-control form-item-control form-item-field-custom" rows="2" data-field-name="' . $field['id'] . '" data-field-mandatory="' . $field['is_mandatory'] . '" data-field-regex="' . $field['regex'] . '" data-change-ongoing="0"></textarea> |
|
| 454 | + <textarea class="form-control form-item-control form-item-field-custom" rows="2" data-field-name="' . $field['id'].'" data-field-mandatory="'.$field['is_mandatory'].'" data-field-regex="'.$field['regex'].'" data-change-ongoing="0"></textarea> |
|
| 455 | 455 | </div>'; |
| 456 | 456 | } else { |
| 457 | 457 | echo ' |
| 458 | - <div class="input-group mb-3 form-item-field" id="form-item-field-' . $field['id'] . '" data-field-id="' . $field['id'] . '"> |
|
| 458 | + <div class="input-group mb-3 form-item-field" id="form-item-field-' . $field['id'].'" data-field-id="'.$field['id'].'"> |
|
| 459 | 459 | <div class="input-group-prepend"> |
| 460 | 460 | <span class="input-group-text">' . $field['title'], |
| 461 | 461 | $field['is_mandatory'] === '1' ? |
| 462 | - '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="' . langHdl('is_mandatory') . '"></span>' : '', |
|
| 462 | + '<span class="fa-solid fa-fire text-danger ml-1 infotip" title="'.langHdl('is_mandatory').'"></span>' : '', |
|
| 463 | 463 | '</span> |
| 464 | 464 | </div> |
| 465 | - <input type="' . $field['type'] . '" class="form-control form-item-control form-item-field-custom" data-field-name="' . $field['id'] . '" data-field-mandatory="' . $field['is_mandatory'] . '" data-field-regex="' . $field['regex'] . '" data-change-ongoing="0"> |
|
| 465 | + <input type="' . $field['type'].'" class="form-control form-item-control form-item-field-custom" data-field-name="'.$field['id'].'" data-field-mandatory="'.$field['is_mandatory'].'" data-field-regex="'.$field['regex'].'" data-change-ongoing="0"> |
|
| 466 | 466 | </div>'; |
| 467 | 467 | } |
| 468 | 468 | if (!empty($field['regex'])) { |
| 469 | 469 | echo ' |
| 470 | - <div>Regex: '. $field['regex'] .'</div> |
|
| 470 | + <div>Regex: '. $field['regex'].'</div> |
|
| 471 | 471 | '; |
| 472 | 472 | } |
| 473 | 473 | } |
@@ -478,8 +478,8 @@ discard block |
||
| 478 | 478 | ) { |
| 479 | 479 | echo ' |
| 480 | 480 | <div class="form-check icheck-blue"> |
| 481 | - <input type="checkbox" class="form-check-input form-check-input-template form-item-control flat-blue" data-category-id="' . $category['id'] . '" data-change-ongoing="0" data-field-name="template" id="template_' . $category['id'] . '"> |
|
| 482 | - <label class="form-check-label ml-3" for="template_' . $category['id'] . '">' . langHdl('main_template') . '</label> |
|
| 481 | + <input type="checkbox" class="form-check-input form-check-input-template form-item-control flat-blue" data-category-id="' . $category['id'].'" data-change-ongoing="0" data-field-name="template" id="template_'.$category['id'].'"> |
|
| 482 | + <label class="form-check-label ml-3" for="template_' . $category['id'].'">'.langHdl('main_template').'</label> |
|
| 483 | 483 | </div>'; |
| 484 | 484 | } |
| 485 | 485 | echo ' |
@@ -489,8 +489,8 @@ discard block |
||
| 489 | 489 | } else { |
| 490 | 490 | echo |
| 491 | 491 | '<div class="alert alert-info"> |
| 492 | - <h5><i class="icon fa fa-info mr-3"></i>' . langHdl('information') . '</h5> |
|
| 493 | - ' . langHdl('no_fields') . ' |
|
| 492 | + <h5><i class="icon fa fa-info mr-3"></i>' . langHdl('information').'</h5> |
|
| 493 | + ' . langHdl('no_fields').' |
|
| 494 | 494 | </div>'; |
| 495 | 495 | } ?> |
| 496 | 496 | </div> |
@@ -682,18 +682,18 @@ discard block |
||
| 682 | 682 | <?php |
| 683 | 683 | foreach ($_SESSION['item_fields'] as $elem) { |
| 684 | 684 | echo ' |
| 685 | - <div class="callout callout-info card-item-category hidden" id="card-item-category-' . $elem['id'] . '"> |
|
| 686 | - <h5>' . $elem['title'] . '</h5> |
|
| 685 | + <div class="callout callout-info card-item-category hidden" id="card-item-category-' . $elem['id'].'"> |
|
| 686 | + <h5>' . $elem['title'].'</h5> |
|
| 687 | 687 | <p> |
| 688 | 688 | <ul class="list-group list-group-unbordered mb-3">'; |
| 689 | 689 | foreach ($elem['fields'] as $field) { |
| 690 | 690 | echo ' |
| 691 | - <li class="list-group-item card-item-field hidden" id="card-item-field-' . $field['id'] . '"> |
|
| 692 | - <span id="card-item-field-title-' . $field['id'] . '"><b>' . $field['title'] . '</b></span> |
|
| 693 | - <button type="button" class="float-right btn btn-outline-info btn-sm ml-1 btn-copy-clipboard-clear" data-clipboard-target="#card-item-field-value-' . $field['id'] . '"> |
|
| 691 | + <li class="list-group-item card-item-field hidden" id="card-item-field-' . $field['id'].'"> |
|
| 692 | + <span id="card-item-field-title-' . $field['id'].'"><b>'.$field['title'].'</b></span> |
|
| 693 | + <button type="button" class="float-right btn btn-outline-info btn-sm ml-1 btn-copy-clipboard-clear" data-clipboard-target="#card-item-field-value-' . $field['id'].'"> |
|
| 694 | 694 | <i class="fa-solid fa-copy"></i> |
| 695 | 695 | </button> |
| 696 | - <span class="card-item-field-value float-right ml-1" id="card-item-field-value-' . $field['id'] . '"></span> |
|
| 696 | + <span class="card-item-field-value float-right ml-1" id="card-item-field-value-' . $field['id'].'"></span> |
|
| 697 | 697 | </li>'; |
| 698 | 698 | } |
| 699 | 699 | echo ' |
@@ -1080,7 +1080,7 @@ discard block |
||
| 1080 | 1080 | <p><?php |
| 1081 | 1081 | echo str_replace( |
| 1082 | 1082 | ['##otv_expiration_period##', '. '], |
| 1083 | - ['<span class="text-bold text-primary">' . $SETTINGS['otv_expiration_period'] . '</span>', '<br>'], |
|
| 1083 | + ['<span class="text-bold text-primary">'.$SETTINGS['otv_expiration_period'].'</span>', '<br>'], |
|
| 1084 | 1084 | langHdl('otv_message') |
| 1085 | 1085 | ); |
| 1086 | 1086 | ?></p> |
@@ -1098,9 +1098,9 @@ discard block |
||
| 1098 | 1098 | |
| 1099 | 1099 | <div class="row"> |
| 1100 | 1100 | <div class="form-group col-4"> |
| 1101 | - <label for="form-item-otv-days"><i class="fa-regular fa-calendar-days mr-2"></i><?php echo langHdl('number_of_days'); ?> (<?php echo langHdl('maximum').': '.$SETTINGS['otv_expiration_period'];?>)</label> |
|
| 1101 | + <label for="form-item-otv-days"><i class="fa-regular fa-calendar-days mr-2"></i><?php echo langHdl('number_of_days'); ?> (<?php echo langHdl('maximum').': '.$SETTINGS['otv_expiration_period']; ?>)</label> |
|
| 1102 | 1102 | <div class="input-group mb-3"> |
| 1103 | - <input type="number" class="form-control clear-me-val" id="form-item-otv-days" min="0" max="<?php echo $SETTINGS['otv_expiration_period'];?>" value="<?php echo $SETTINGS['otv_expiration_period'];?>"> |
|
| 1103 | + <input type="number" class="form-control clear-me-val" id="form-item-otv-days" min="0" max="<?php echo $SETTINGS['otv_expiration_period']; ?>" value="<?php echo $SETTINGS['otv_expiration_period']; ?>"> |
|
| 1104 | 1104 | </div> |
| 1105 | 1105 | </div> |
| 1106 | 1106 | |
@@ -1188,7 +1188,7 @@ discard block |
||
| 1188 | 1188 | <select class="form-control form-folder-control select2" style="width:100%;" id="form-folder-add-complexicity" required> |
| 1189 | 1189 | <?php |
| 1190 | 1190 | foreach (TP_PW_COMPLEXITY as $key => $value) { |
| 1191 | - echo '<option value="' . $key . '">' . $value[1] . '</option>'; |
|
| 1191 | + echo '<option value="'.$key.'">'.$value[1].'</option>'; |
|
| 1192 | 1192 | } |
| 1193 | 1193 | ?> |
| 1194 | 1194 | </select> |
@@ -1206,14 +1206,14 @@ discard block |
||
| 1206 | 1206 | <label><?php echo langHdl('icon'); ?></label> |
| 1207 | 1207 | <input type="text" class="form-control form-folder-control" id="form-folder-add-icon"> |
| 1208 | 1208 | <small class='form-text text-muted'> |
| 1209 | - <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a> |
|
| 1209 | + <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a> |
|
| 1210 | 1210 | </small> |
| 1211 | 1211 | </div> |
| 1212 | 1212 | <div class="form-group"> |
| 1213 | 1213 | <label><?php echo langHdl('icon_on_selection'); ?></label> |
| 1214 | 1214 | <input type="text" class="form-control form-folder-control" id="form-folder-add-icon-selected"> |
| 1215 | 1215 | <small class='form-text text-muted'> |
| 1216 | - <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL;?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a> |
|
| 1216 | + <?php echo langHdl('fontawesome_icon_tip'); ?><a href="<?php echo FONTAWESOME_URL; ?>" target="_blank"><i class="fa-solid fa-external-link-alt ml-1"></i></a> |
|
| 1217 | 1217 | </small> |
| 1218 | 1218 | </div> |
| 1219 | 1219 | </div> |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('roles') === false) { |
| 70 | 70 | // Not allowed page |
| 71 | 71 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 72 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 72 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 73 | 73 | exit; |
| 74 | 74 | } |
| 75 | 75 | ?> |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('uploads') === false) { |
| 65 | 65 | // Not allowed page |
| 66 | 66 | $_SESSION['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 | ?> |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('admin') === false) { |
| 63 | 63 | // Not allowed page |
| 64 | 64 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 65 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 65 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 66 | 66 | exit; |
| 67 | 67 | } |
| 68 | 68 | |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | // error |
| 147 | 147 | toastr.remove(); |
| 148 | 148 | toastr.error( |
| 149 | - '<?php echo langHdl('server_answer_error') . '<br />' . langHdl('server_returned_data') . ':<br />'; ?>' + data.error, |
|
| 149 | + '<?php echo langHdl('server_answer_error').'<br />'.langHdl('server_returned_data').':<br />'; ?>' + data.error, |
|
| 150 | 150 | '', { |
| 151 | 151 | closeButton: true, |
| 152 | 152 | positionClass: 'toastr-top-right' |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | // error |
| 221 | 221 | toastr.remove(); |
| 222 | 222 | toastr.error( |
| 223 | - '<?php echo langHdl('server_answer_error') . '<br />' . langHdl('server_returned_data') . ':<br />'; ?>' + data.error, |
|
| 223 | + '<?php echo langHdl('server_answer_error').'<br />'.langHdl('server_returned_data').':<br />'; ?>' + data.error, |
|
| 224 | 224 | '', { |
| 225 | 225 | closeButton: true, |
| 226 | 226 | positionClass: 'toastr-top-right' |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('utilities.deletion') === false) { |
| 71 | 71 | // Not allowed page |
| 72 | 72 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 73 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 73 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 74 | 74 | exit; |
| 75 | 75 | } |
| 76 | 76 | ?> |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | if ($checkUserAccess->checkSession() === false || $checkUserAccess->userAccessPage('import') === false) { |
| 64 | 64 | // Not allowed page |
| 65 | 65 | $_SESSION['error']['code'] = ERR_NOT_ALLOWED; |
| 66 | - include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
| 66 | + include $SETTINGS['cpassman_dir'].'/error.php'; |
|
| 67 | 67 | exit; |
| 68 | 68 | } |
| 69 | 69 | |