@@ -33,7 +33,7 @@ |
||
33 | 33 | $itemsPerPage = 32; |
34 | 34 | $allCrumbs = $fa->getBreadcrumbs(); |
35 | 35 | |
36 | -$crumbs = array_slice($allCrumbs, ($page - 1) * $itemsPerPage, $itemsPerPage); |
|
36 | +$crumbs = array_slice($allCrumbs, ($page - 1)*$itemsPerPage, $itemsPerPage); |
|
37 | 37 | |
38 | 38 | $pagination = new PMF_Pagination( |
39 | 39 | $faqConfig, |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'parent_id' => $parent_id, |
52 | 52 | 'name' => PMF_Filter::filterInput(INPUT_POST, 'name', FILTER_SANITIZE_STRING), |
53 | 53 | 'description' => PMF_Filter::filterInput(INPUT_POST, 'description', FILTER_SANITIZE_STRING), |
54 | - 'user_id' => PMF_Filter::filterInput(INPUT_POST, 'user_id', FILTER_VALIDATE_INT), ); |
|
54 | + 'user_id' => PMF_Filter::filterInput(INPUT_POST, 'user_id', FILTER_VALIDATE_INT),); |
|
55 | 55 | |
56 | 56 | // translate.category only returns non-existent languages to translate too |
57 | 57 | if ($category->addCategory($category_data, $parent_id, $category_data['id'])) { |
@@ -99,14 +99,14 @@ |
||
99 | 99 | print '<td>'; |
100 | 100 | if ($cat['lang'] != $LANGCODE) { |
101 | 101 | // translate category |
102 | - printf( |
|
103 | - '<a href="%s?action=translatecategory&cat=%s&trlang=%s" title="%s"><span title="%s" class="fa fa-share"></span></a></a>', |
|
104 | - $currentLink, |
|
105 | - $cat['id'], |
|
106 | - $LANGCODE, |
|
107 | - $PMF_LANG['ad_categ_translate'], |
|
108 | - $PMF_LANG['ad_categ_translate'] |
|
109 | - ); |
|
102 | + printf( |
|
103 | + '<a href="%s?action=translatecategory&cat=%s&trlang=%s" title="%s"><span title="%s" class="fa fa-share"></span></a></a>', |
|
104 | + $currentLink, |
|
105 | + $cat['id'], |
|
106 | + $LANGCODE, |
|
107 | + $PMF_LANG['ad_categ_translate'], |
|
108 | + $PMF_LANG['ad_categ_translate'] |
|
109 | + ); |
|
110 | 110 | } |
111 | 111 | printf(' %s<strong>%s</strong>', |
112 | 112 | $indent, |
@@ -190,7 +190,7 @@ |
||
190 | 190 | $getJson = PMF_Filter::filterInput(INPUT_POST, 'getJson', FILTER_SANITIZE_STRING); |
191 | 191 | if (!is_null($getJson) && 'verify' === $getJson) { |
192 | 192 | set_error_handler( |
193 | - function ($severity, $message, $file, $line) { |
|
193 | + function($severity, $message, $file, $line) { |
|
194 | 194 | throw new ErrorException($message, $severity, $severity, $file, $line); |
195 | 195 | } |
196 | 196 | ); |
@@ -38,8 +38,11 @@ |
||
38 | 38 | <a href="?action=config"> |
39 | 39 | <?php if ($faqConfig->get('main.maintenanceMode')): ?> |
40 | 40 | <span class="label label-important"><?php print $PMF_LANG['msgMaintenanceMode']; ?></span> |
41 | - <?php else: ?> |
|
42 | - <span class="label label-success"><?php print $PMF_LANG['msgOnlineMode']; ?></span> |
|
41 | + <?php else { |
|
42 | + : ?> |
|
43 | + <span class="label label-success"><?php print $PMF_LANG['msgOnlineMode']; |
|
44 | +} |
|
45 | +?></span> |
|
43 | 46 | <?php endif; ?> |
44 | 47 | </a> |
45 | 48 | </div> |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $message .= sprintf('<p class="alert alert-danger">%s</p>', $PMF_LANG['ad_msg_mysqlerr']); |
68 | 68 | } |
69 | 69 | foreach ($groupMembers as $memberId) { |
70 | - $perm->addToGroup((int) $memberId, $groupId); |
|
70 | + $perm->addToGroup((int)$memberId, $groupId); |
|
71 | 71 | } |
72 | 72 | $message .= sprintf('<p class="alert alert-success">%s <strong>%s</strong> %s</p>', |
73 | 73 | $PMF_LANG['ad_msg_savedsuc_1'], |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $message .= sprintf('<p class="alert alert-danger">%s</p>', $PMF_LANG['ad_msg_mysqlerr']); |
92 | 92 | } |
93 | 93 | foreach ($groupRights as $rightId) { |
94 | - $perm->grantGroupRight($groupId, (int) $rightId); |
|
94 | + $perm->grantGroupRight($groupId, (int)$rightId); |
|
95 | 95 | } |
96 | 96 | $message .= sprintf('<p class="alert alert-success">%s <strong>%s</strong> %s</p>', |
97 | 97 | $PMF_LANG['ad_msg_savedsuc_1'], |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | 'active' => (is_null($active)) ? 'n' : 'y', |
511 | 511 | 'comment' => (is_null($comment)) ? 'n' : 'y', |
512 | 512 | 'dateStart' => (empty($dateStart)) ? '00000000000000' : str_replace('-', '', $dateStart).'000000', |
513 | - 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
513 | + 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
514 | 514 | 'link' => $link, |
515 | 515 | 'linkTitle' => $linktitle, |
516 | 516 | 'date' => date('YmdHis'), |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | 'active' => (is_null($active)) ? 'n' : 'y', |
563 | 563 | 'comment' => (is_null($comment)) ? 'n' : 'y', |
564 | 564 | 'dateStart' => (empty($dateStart)) ? '00000000000000' : str_replace('-', '', $dateStart).'000000', |
565 | - 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
565 | + 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
566 | 566 | 'link' => $link, |
567 | 567 | 'linkTitle' => $linktitle, |
568 | 568 | 'date' => date('YmdHis'), |
@@ -44,18 +44,18 @@ |
||
44 | 44 | |
45 | 45 | $text = []; |
46 | 46 | $text[0] = []; |
47 | - ($useCategory) ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; |
|
48 | - ($useSubcategory) ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; |
|
49 | - ($useTranslation) ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; |
|
50 | - ($useLanguage) ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; |
|
51 | - ($useId) ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; |
|
52 | - ($useSticky) ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; |
|
53 | - ($useTitle) ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; |
|
47 | + ($useCategory) ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; |
|
48 | + ($useSubcategory) ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; |
|
49 | + ($useTranslation) ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; |
|
50 | + ($useLanguage) ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; |
|
51 | + ($useId) ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; |
|
52 | + ($useSticky) ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; |
|
53 | + ($useTitle) ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; |
|
54 | 54 | ($useCreationDate) ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : ''; |
55 | - ($useOwner) ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; |
|
55 | + ($useOwner) ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; |
|
56 | 56 | ($useLastModified) ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : ''; |
57 | - ($useUrl) ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; |
|
58 | - ($useVisits) ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; |
|
57 | + ($useUrl) ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; |
|
58 | + ($useVisits) ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; |
|
59 | 59 | |
60 | 60 | $report = new PMF_Report($faqConfig); |
61 | 61 |
@@ -55,18 +55,18 @@ |
||
55 | 55 | <thead> |
56 | 56 | <tr> |
57 | 57 | <?php |
58 | - ($useCategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : ''; |
|
59 | - ($useSubcategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : ''; |
|
60 | - ($useTranslation) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : ''; |
|
61 | - ($useLanguage) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : ''; |
|
62 | - ($useId) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : ''; |
|
63 | - ($useSticky) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : ''; |
|
64 | - ($useTitle) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : ''; |
|
58 | + ($useCategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : ''; |
|
59 | + ($useSubcategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : ''; |
|
60 | + ($useTranslation) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : ''; |
|
61 | + ($useLanguage) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : ''; |
|
62 | + ($useId) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : ''; |
|
63 | + ($useSticky) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : ''; |
|
64 | + ($useTitle) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : ''; |
|
65 | 65 | ($useCreationDate) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_creation_date']) : ''; |
66 | - ($useOwner) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : ''; |
|
66 | + ($useOwner) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : ''; |
|
67 | 67 | ($useLastModified) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_last_modified_person']) : ''; |
68 | - ($useUrl) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : ''; |
|
69 | - ($useVisits) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : ''; |
|
68 | + ($useUrl) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : ''; |
|
69 | + ($useVisits) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : ''; |
|
70 | 70 | ?> |
71 | 71 | </tr> |
72 | 72 | </thead> |
@@ -51,7 +51,7 @@ |
||
51 | 51 | if (!$user instanceof PMF_User_CurrentUser) { |
52 | 52 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
53 | 53 | } |
54 | -$refreshTime = (PMF_AUTH_TIMEOUT - PMF_AUTH_TIMEOUT_WARNING) * 60; |
|
54 | +$refreshTime = (PMF_AUTH_TIMEOUT - PMF_AUTH_TIMEOUT_WARNING)*60; |
|
55 | 55 | ?> |
56 | 56 | <!DOCTYPE html> |
57 | 57 | <html lang="<?php print $PMF_LANG['metaLanguage']; ?>" class="no-js"> |
@@ -37,10 +37,10 @@ |
||
37 | 37 | $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1); |
38 | 38 | |
39 | 39 | if (is_null($pages)) { |
40 | - $pages = round(($logging->getNumberOfEntries() + ($perpage / 3)) / $perpage, 0); |
|
40 | + $pages = round(($logging->getNumberOfEntries() + ($perpage/3))/$perpage, 0); |
|
41 | 41 | } |
42 | 42 | |
43 | - $start = ($page - 1) * $perpage; |
|
43 | + $start = ($page - 1)*$perpage; |
|
44 | 44 | $ende = $start + $perpage; |
45 | 45 | |
46 | 46 | $baseUrl = sprintf( |