@@ -22,10 +22,10 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 24 | 24 | $protocol = 'http'; |
| 25 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 25 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 26 | 26 | $protocol = 'https'; |
| 27 | 27 | } |
| 28 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 28 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 29 | 29 | exit(); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $response = new Response; |
| 45 | 45 | |
| 46 | -switch($ajax_action) { |
|
| 46 | +switch ($ajax_action) { |
|
| 47 | 47 | |
| 48 | 48 | // save active FAQs |
| 49 | 49 | case 'save_active_records': |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $recordLang = PMF_Filter::filterInput(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING); |
| 119 | 119 | |
| 120 | 120 | $logging = new PMF_Logging($faqConfig); |
| 121 | - $logging->logAdmin($user, 'Deleted FAQ ID ' . $recordId); |
|
| 121 | + $logging->logAdmin($user, 'Deleted FAQ ID '.$recordId); |
|
| 122 | 122 | |
| 123 | 123 | $faq->deleteRecord($recordId, $recordLang); |
| 124 | 124 | $response->setContent($PMF_LANG['ad_entry_delsuc']); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | case 'delete_question': |
| 133 | 133 | if ($user->perm->checkRight($user->getUserId(), 'delquestion')) { |
| 134 | 134 | |
| 135 | - $checks = array( |
|
| 135 | + $checks = array( |
|
| 136 | 136 | 'filter' => FILTER_VALIDATE_INT, |
| 137 | 137 | 'flags' => FILTER_REQUIRE_ARRAY |
| 138 | 138 | ); |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 23 | 23 | $protocol = 'https'; |
| 24 | 24 | } |
| 25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | 26 | exit(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 23 | 23 | $protocol = 'https'; |
| 24 | 24 | } |
| 25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | 26 | exit(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -20,10 +20,10 @@ |
||
| 20 | 20 | |
| 21 | 21 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 22 | 22 | $protocol = 'http'; |
| 23 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 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 | ?> |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 23 | 23 | $protocol = 'https'; |
| 24 | 24 | } |
| 25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | 26 | exit(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -22,10 +22,10 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 24 | 24 | $protocol = 'http'; |
| 25 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 25 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 26 | 26 | $protocol = 'https'; |
| 27 | 27 | } |
| 28 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 28 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 29 | 29 | exit(); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -47,18 +47,18 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $text = []; |
| 49 | 49 | $text[0] = []; |
| 50 | - ($useCategory) ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; |
|
| 51 | - ($useSubcategory) ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; |
|
| 52 | - ($useTranslation) ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; |
|
| 53 | - ($useLanguage) ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; |
|
| 54 | - ($useId) ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; |
|
| 55 | - ($useSticky) ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; |
|
| 56 | - ($useTitle) ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; |
|
| 50 | + ($useCategory) ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; |
|
| 51 | + ($useSubcategory) ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; |
|
| 52 | + ($useTranslation) ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; |
|
| 53 | + ($useLanguage) ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; |
|
| 54 | + ($useId) ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; |
|
| 55 | + ($useSticky) ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; |
|
| 56 | + ($useTitle) ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; |
|
| 57 | 57 | ($useCreationDate) ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : ''; |
| 58 | - ($useOwner) ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; |
|
| 58 | + ($useOwner) ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; |
|
| 59 | 59 | ($useLastModified) ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : ''; |
| 60 | - ($useUrl) ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; |
|
| 61 | - ($useVisits) ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; |
|
| 60 | + ($useUrl) ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; |
|
| 61 | + ($useVisits) ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; |
|
| 62 | 62 | |
| 63 | 63 | $report = new PMF_Report($faqConfig); |
| 64 | 64 | |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 23 | 23 | $protocol = 'https'; |
| 24 | 24 | } |
| 25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | 26 | exit(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 23 | 23 | $protocol = 'https'; |
| 24 | 24 | } |
| 25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | 26 | exit(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -19,10 +19,10 @@ |
||
| 19 | 19 | |
| 20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 21 | 21 | $protocol = 'http'; |
| 22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 23 | 23 | $protocol = 'https'; |
| 24 | 24 | } |
| 25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 26 | 26 | exit(); |
| 27 | 27 | } |
| 28 | 28 | ?> |