@@ -507,9 +507,12 @@ discard block |
||
507 | 507 | </div> |
508 | 508 | </div> |
509 | 509 | </fieldset> |
510 | - <?php else: ?> |
|
510 | + <?php else { |
|
511 | + : ?> |
|
511 | 512 | <input type="hidden" name="grouppermission" value="all"> |
512 | - <?php endif; ?> |
|
513 | + <?php endif; |
|
514 | +} |
|
515 | +?> |
|
513 | 516 | |
514 | 517 | <fieldset class="form-group"> |
515 | 518 | <div class="row"> |
@@ -725,12 +728,15 @@ discard block |
||
725 | 728 | <?php if (isset($sul)) { echo $sul; } ?>> |
726 | 729 | <label class="form-check-label" for="inactive"><?= $PMF_LANG['ad_gen_no'] ?></label> |
727 | 730 | </div> |
728 | - <?php else: ?> |
|
731 | + <?php else { |
|
732 | + : ?> |
|
729 | 733 | <div class="form-check"> |
730 | 734 | <input type="radio" id="inactive" name="active" value="no" class="form-check-input" checked> |
731 | 735 | <label class="form-check-label" for="inactive"><?= $PMF_LANG['ad_gen_no'] ?></label> |
732 | 736 | </div> |
733 | - <?php endif; ?> |
|
737 | + <?php endif; |
|
738 | +} |
|
739 | +?> |
|
734 | 740 | </div> |
735 | 741 | |
736 | 742 | <div class="form-group"> |
@@ -49,9 +49,12 @@ |
||
49 | 49 | <a href="?action=config"> |
50 | 50 | <?php if ($faqConfig->get('main.maintenanceMode')): ?> |
51 | 51 | <button class="btn btn-sm btn-outline-danger"><?= $PMF_LANG['msgMaintenanceMode'] ?></button> |
52 | - <?php else: ?> |
|
52 | + <?php else { |
|
53 | + : ?> |
|
53 | 54 | <button class="btn btn-sm btn-outline-success"><?= $PMF_LANG['msgOnlineMode'] ?></button> |
54 | - <?php endif; ?> |
|
55 | + <?php endif; |
|
56 | +} |
|
57 | +?> |
|
55 | 58 | </a> |
56 | 59 | </div> |
57 | 60 | </div> |
@@ -64,9 +64,12 @@ |
||
64 | 64 | <input type="hidden" name="showcat" value="<?= $showcat ?>"> |
65 | 65 | <?php if ($faqConfig->get('security.permLevel') !== 'basic'): ?> |
66 | 66 | <input type="hidden" name="restricted_groups[]" value="<?= $groupPermission[0] ?>"> |
67 | - <?php else: ?> |
|
67 | + <?php else { |
|
68 | + : ?> |
|
68 | 69 | <input type="hidden" name="restricted_groups[]" value="-1"> |
69 | - <?php endif; ?> |
|
70 | + <?php endif; |
|
71 | +} |
|
72 | +?> |
|
70 | 73 | <input type="hidden" name="restricted_users" value="<?= $userPermission[0] ?>"> |
71 | 74 | <input type="hidden" name="csrf" value="<?= $user->getCsrfTokenFromSession() ?>"> |
72 | 75 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
24 | 24 | $protocol = 'https'; |
25 | 25 | } |
26 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
26 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
27 | 27 | exit(); |
28 | 28 | } |
29 | 29 |
@@ -226,12 +226,15 @@ |
||
226 | 226 | action: 'ajax', |
227 | 227 | ajax: 'recordAdd' |
228 | 228 | }; |
229 | - <?php else: ?> |
|
229 | + <?php else { |
|
230 | + : ?> |
|
230 | 231 | var data = { |
231 | 232 | action: 'ajax', |
232 | 233 | ajax: 'recordSave' |
233 | 234 | }; |
234 | - <?php endif; ?> |
|
235 | + <?php endif; |
|
236 | +} |
|
237 | +?> |
|
235 | 238 | $.each($('#faqEditor').serializeArray(), function (i, field) { |
236 | 239 | data[field.name] = field.value; |
237 | 240 | }); |