@@ -19,10 +19,10 @@ discard block |
||
| 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 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | if (isset($_FILES['userfile']) && 0 == $_FILES['userfile']['error']) { |
| 45 | 45 | |
| 46 | - $ok = 1; |
|
| 46 | + $ok = 1; |
|
| 47 | 47 | $finfo = new finfo(FILEINFO_MIME_ENCODING); |
| 48 | 48 | if ('utf-8' == $finfo->file($_FILES['userfile']['tmp_name'])) { |
| 49 | 49 | print 'This file is not UTF_8 encoded.'; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $handle = fopen($_FILES['userfile']['tmp_name'], 'r'); |
| 53 | 53 | $dat = fgets($handle, 65536); |
| 54 | 54 | $versionFound = PMF_String::substr($dat, 0, 9); |
| 55 | - $versionExpected = '-- pmf' . substr($faqConfig->get('main.currentVersion'), 0, 3); |
|
| 55 | + $versionExpected = '-- pmf'.substr($faqConfig->get('main.currentVersion'), 0, 3); |
|
| 56 | 56 | |
| 57 | 57 | if ($versionFound !== $versionExpected) { |
| 58 | 58 | printf('%s (Version check failure: "%s" found, "%s" expected)', |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | if (PMF_String::substr($dat, 0, $backup_prefix_pattern_len) == $backup_prefix_pattern) { |
| 83 | 83 | $table_prefix = trim(PMF_String::substr($dat, $backup_prefix_pattern_len)); |
| 84 | 84 | } |
| 85 | - if ( (PMF_String::substr($dat, 0, 2) != '--') && ($dat != '') ) { |
|
| 85 | + if ((PMF_String::substr($dat, 0, 2) != '--') && ($dat != '')) { |
|
| 86 | 86 | $mquery[] = trim(PMF_String::substr($dat, 0, -1)); |
| 87 | 87 | } |
| 88 | 88 | } |
@@ -20,10 +20,10 @@ discard block |
||
| 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 | |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | $groupAction = 'add'; |
| 223 | 223 | $message = '<p class="alert alert-error">'; |
| 224 | 224 | foreach ($messages as $err) { |
| 225 | - $message .= $err . '<br />'; |
|
| 225 | + $message .= $err.'<br />'; |
|
| 226 | 226 | } |
| 227 | 227 | $message .= '</p>'; |
| 228 | 228 | } |
@@ -210,8 +210,9 @@ discard block |
||
| 210 | 210 | 'auto_join' => $group_auto_join |
| 211 | 211 | ); |
| 212 | 212 | |
| 213 | - if ($user->perm->addGroup($group_data) <= 0) |
|
| 214 | - $messages[] = $PMF_LANG['ad_adus_dberr']; |
|
| 213 | + if ($user->perm->addGroup($group_data) <= 0) { |
|
| 214 | + $messages[] = $PMF_LANG['ad_adus_dberr']; |
|
| 215 | + } |
|
| 215 | 216 | } |
| 216 | 217 | // no errors, show list |
| 217 | 218 | if (count($messages) == 0) { |
@@ -228,8 +229,9 @@ discard block |
||
| 228 | 229 | } |
| 229 | 230 | } |
| 230 | 231 | |
| 231 | -if (!isset($message)) |
|
| 232 | +if (!isset($message)) { |
|
| 232 | 233 | $message = ''; |
| 234 | +} |
|
| 233 | 235 | |
| 234 | 236 | // show new group form |
| 235 | 237 | if ($groupAction == 'add' && $permission['addgroup']) { |
@@ -19,10 +19,10 @@ discard block |
||
| 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 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | if (!is_null($question) && !is_null($categories)) { |
| 110 | 110 | // Save entry |
| 111 | 111 | $logging = new PMF_Logging($faqConfig); |
| 112 | - $logging->logAdmin($user, 'Beitragsave ' . $recordId); |
|
| 112 | + $logging->logAdmin($user, 'Beitragsave '.$recordId); |
|
| 113 | 113 | |
| 114 | 114 | printf( |
| 115 | 115 | '<header><h2><i class="icon-pencil"></i> %s</h2></header>', |
@@ -137,8 +137,8 @@ discard block |
||
| 137 | 137 | 'email' => $email, |
| 138 | 138 | 'comment' => (!is_null($comment) ? 'y' : 'n'), |
| 139 | 139 | 'date' => empty($date) ? date('YmdHis') : str_replace(array('-', ':', ' '), '', $date), |
| 140 | - 'dateStart' => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart) . '000000'), |
|
| 141 | - 'dateEnd' => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd) . '235959'), |
|
| 140 | + 'dateStart' => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart).'000000'), |
|
| 141 | + 'dateEnd' => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959'), |
|
| 142 | 142 | 'linkState' => '', |
| 143 | 143 | 'linkDateCheck' => 0); |
| 144 | 144 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | } else { |
| 163 | 163 | printf( |
| 164 | 164 | '<p class="alert alert-error">%s</p>', |
| 165 | - print $PMF_LANG['ad_entry_savedfail'] . $faqConfig->getDb()->error() |
|
| 165 | + print $PMF_LANG['ad_entry_savedfail'].$faqConfig->getDb()->error() |
|
| 166 | 166 | ); |
| 167 | 167 | } |
| 168 | 168 | |
@@ -19,10 +19,10 @@ discard block |
||
| 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 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $oTag = new PMF_Tags($faqConfig); |
| 35 | 35 | $autoCompleteValue = PMF_Filter::filterInput(INPUT_GET, 'q', FILTER_SANITIZE_STRIPPED); |
| 36 | -if (! is_null($autoCompleteValue)) { |
|
| 36 | +if (!is_null($autoCompleteValue)) { |
|
| 37 | 37 | if (strpos($autoCompleteValue, ',')) { |
| 38 | 38 | $arrayOfValues = explode(',', $autoCompleteValue); |
| 39 | 39 | $autoCompleteValue = end($arrayOfValues); |
@@ -19,10 +19,10 @@ discard block |
||
| 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 | |
@@ -47,12 +47,12 @@ discard block |
||
| 47 | 47 | $definition = PMF_Filter::filterInput(INPUT_POST, 'definition', FILTER_SANITIZE_SPECIAL_CHARS); |
| 48 | 48 | if ($glossary->addGlossaryItem($item, $definition)) { |
| 49 | 49 | echo '<p class="alert alert-success"><a href="#" class="close" data-dismiss="alert">×</a>'; |
| 50 | - echo $PMF_LANG['ad_glossary_save_success'] . '</p>'; |
|
| 50 | + echo $PMF_LANG['ad_glossary_save_success'].'</p>'; |
|
| 51 | 51 | } else { |
| 52 | 52 | echo '<p class="alert alert-error"><a href="#" class="close" data-dismiss="alert">×</a>'; |
| 53 | 53 | echo $PMF_LANG['ad_glossary_save_error']; |
| 54 | 54 | echo '<br />'.$PMF_LANG["ad_adus_dberr"].'<br />'; |
| 55 | - echo $faqConfig->getDb()->error() . '</p>'; |
|
| 55 | + echo $faqConfig->getDb()->error().'</p>'; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
@@ -62,12 +62,12 @@ discard block |
||
| 62 | 62 | $definition = PMF_Filter::filterInput(INPUT_POST, 'definition', FILTER_SANITIZE_SPECIAL_CHARS); |
| 63 | 63 | if ($glossary->updateGlossaryItem($id, $item, $definition)) { |
| 64 | 64 | echo '<p class="alert alert-success"><a href="#" class="close" data-dismiss="alert">×</a>'; |
| 65 | - echo $PMF_LANG['ad_glossary_update_success'] . '</p>'; |
|
| 65 | + echo $PMF_LANG['ad_glossary_update_success'].'</p>'; |
|
| 66 | 66 | } else { |
| 67 | 67 | echo '<p class="alert alert-error"><a href="#" class="close" data-dismiss="alert">×</a>'; |
| 68 | 68 | echo $PMF_LANG['ad_glossary_update_error']; |
| 69 | 69 | echo '<br />'.$PMF_LANG["ad_adus_dberr"].'<br />'; |
| 70 | - echo $faqConfig->getDb()->error() . '</p>'; |
|
| 70 | + echo $faqConfig->getDb()->error().'</p>'; |
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
@@ -75,12 +75,12 @@ discard block |
||
| 75 | 75 | $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT); |
| 76 | 76 | if ($glossary->deleteGlossaryItem($id)) { |
| 77 | 77 | echo '<p class="alert alert-success"><a href="#" class="close" data-dismiss="alert">×</a>'; |
| 78 | - echo $PMF_LANG['ad_glossary_delete_success'] . '</p>'; |
|
| 78 | + echo $PMF_LANG['ad_glossary_delete_success'].'</p>'; |
|
| 79 | 79 | } else { |
| 80 | 80 | echo '<p class="alert alert-error"><a href="#" class="close" data-dismiss="alert">×</a>'; |
| 81 | 81 | echo $PMF_LANG['ad_glossary_delete_error']; |
| 82 | 82 | echo '<br />'.$PMF_LANG["ad_adus_dberr"].'<br />'; |
| 83 | - echo $faqConfig->getDb()->error() . '</p>'; |
|
| 83 | + echo $faqConfig->getDb()->error().'</p>'; |
|
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
@@ -19,10 +19,10 @@ discard block |
||
| 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 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | $user->getUserById($userId, true); |
| 78 | 78 | if ($user->getStatus() == 'protected' || $userId == 1) { |
| 79 | - $message = '<p class="error">' . $PMF_LANG['ad_user_error_protectedAccount'] . '</p>'; |
|
| 79 | + $message = '<p class="error">'.$PMF_LANG['ad_user_error_protectedAccount'].'</p>'; |
|
| 80 | 80 | } else { |
| 81 | 81 | if (!$user->deleteUser()) { |
| 82 | 82 | $message = $PMF_LANG['ad_user_error_delete']; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $permissions->removeFromAllGroups($userId); |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - $message = '<p class="success">' . $PMF_LANG['ad_user_deleted'] . '</p>'; |
|
| 93 | + $message = '<p class="success">'.$PMF_LANG['ad_user_deleted'].'</p>'; |
|
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | print json_encode($message); |
@@ -20,10 +20,10 @@ discard block |
||
| 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 | |
@@ -45,18 +45,18 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | $text = array(); |
| 47 | 47 | $text[0] = array(); |
| 48 | - ($useCategory) ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; |
|
| 49 | - ($useSubcategory) ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; |
|
| 50 | - ($useTranslation) ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; |
|
| 51 | - ($useLanguage) ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; |
|
| 52 | - ($useId) ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; |
|
| 53 | - ($useSticky) ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; |
|
| 54 | - ($useTitle) ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; |
|
| 48 | + ($useCategory) ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : ''; |
|
| 49 | + ($useSubcategory) ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : ''; |
|
| 50 | + ($useTranslation) ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : ''; |
|
| 51 | + ($useLanguage) ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : ''; |
|
| 52 | + ($useId) ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : ''; |
|
| 53 | + ($useSticky) ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : ''; |
|
| 54 | + ($useTitle) ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : ''; |
|
| 55 | 55 | ($useCreationDate) ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : ''; |
| 56 | - ($useOwner) ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; |
|
| 56 | + ($useOwner) ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : ''; |
|
| 57 | 57 | ($useLastModified) ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : ''; |
| 58 | - ($useUrl) ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; |
|
| 59 | - ($useVisits) ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; |
|
| 58 | + ($useUrl) ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : ''; |
|
| 59 | + ($useVisits) ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : ''; |
|
| 60 | 60 | |
| 61 | 61 | $report = new PMF_Report($faqConfig); |
| 62 | 62 | |
@@ -19,10 +19,10 @@ discard block |
||
| 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 | |
@@ -35,11 +35,11 @@ discard block |
||
| 35 | 35 | 'filter' => FILTER_VALIDATE_INT, |
| 36 | 36 | 'flags' => FILTER_REQUIRE_ARRAY |
| 37 | 37 | ); |
| 38 | - $checkNews = array( |
|
| 38 | + $checkNews = array( |
|
| 39 | 39 | 'filter' => FILTER_VALIDATE_INT, |
| 40 | 40 | 'flags' => FILTER_REQUIRE_ARRAY |
| 41 | 41 | ); |
| 42 | - $ret = false; |
|
| 42 | + $ret = false; |
|
| 43 | 43 | |
| 44 | 44 | $faqComments = PMF_Filter::filterInputArray(INPUT_POST, array('faq_comments' => $checkFaqs)); |
| 45 | 45 | $newsComments = PMF_Filter::filterInputArray(INPUT_POST, array('news_comments' => $checkNews)); |
@@ -21,10 +21,10 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | if (!defined('IS_VALID_PHPMYFAQ')) { |
| 23 | 23 | $protocol = 'http'; |
| 24 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
| 24 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
| 25 | 25 | $protocol = 'https'; |
| 26 | 26 | } |
| 27 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
| 27 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
| 28 | 28 | exit(); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -35,13 +35,13 @@ discard block |
||
| 35 | 35 | $date = new PMF_Date($faqConfig); |
| 36 | 36 | $perpage = 15; |
| 37 | 37 | $pages = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT); |
| 38 | - $page = PMF_Filter::filterInput(INPUT_GET, 'page' , FILTER_VALIDATE_INT, 1); |
|
| 38 | + $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1); |
|
| 39 | 39 | |
| 40 | 40 | if (is_null($pages)) { |
| 41 | - $pages = round(($logging->getNumberOfEntries() + ($perpage / 3)) / $perpage, 0); |
|
| 41 | + $pages = round(($logging->getNumberOfEntries() + ($perpage/3))/$perpage, 0); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - $start = ($page - 1) * $perpage; |
|
| 44 | + $start = ($page - 1)*$perpage; |
|
| 45 | 45 | $ende = $start + $perpage; |
| 46 | 46 | |
| 47 | 47 | $baseUrl = sprintf( |