punbb-1.2.19/upload/moderate.php |
punbb-1.2.20/upload/moderate.php |
170: // Determine the post offset (based on $_GET['p']) | 170: // Determine the post offset (based on $_GET['p']) |
171: $num_pages = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); | 171: $num_pages = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); |
172: | 172: |
173: $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; | 173: $p = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; |
174: $start_from = $pun_user['disp_posts'] * ($p - 1); | 174: $start_from = $pun_user['disp_posts'] * ($p - 1); |
175: | 175: |
176: // Generate paging links | 176: // Generate paging links |
566: // Determine the topic offset (based on $_GET['p']) | 566: // Determine the topic offset (based on $_GET['p']) |
567: $num_pages = ceil($cur_forum['num_topics'] / $pun_user['disp_topics']); | 567: $num_pages = ceil($cur_forum['num_topics'] / $pun_user['disp_topics']); |
568: | 568: |
569: $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; | 569: $p = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; |
570: $start_from = $pun_user['disp_topics'] * ($p - 1); | 570: $start_from = $pun_user['disp_topics'] * ($p - 1); |
571: | 571: |
572: // Generate paging links | 572: // Generate paging links |
punbb-1.2.19/upload/search.php |
punbb-1.2.20/upload/search.php |
466: $per_page = ($show_as == 'posts') ? $pun_user['disp_posts'] : $pun_user['disp_topics']; | 466: $per_page = ($show_as == 'posts') ? $pun_user['disp_posts'] : $pun_user['disp_topics']; |
467: $num_pages = ceil($num_hits / $per_page); | 467: $num_pages = ceil($num_hits / $per_page); |
468: | 468: |
469: $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; | 469: $p = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; |
470: $start_from = $per_page * ($p - 1); | 470: $start_from = $per_page * ($p - 1); |
471: | 471: |
472: // Generate paging links | 472: // Generate paging links |
punbb-1.2.19/upload/userlist.php |
punbb-1.2.20/upload/userlist.php |
125: // Determine the user offset (based on $_GET['p']) | 125: // Determine the user offset (based on $_GET['p']) |
126: $num_pages = ceil($num_users / 50); | 126: $num_pages = ceil($num_users / 50); |
127: | 127: |
128: $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; | 128: $p = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; |
129: $start_from = 50 * ($p - 1); | 129: $start_from = 50 * ($p - 1); |
130: | 130: |
131: // Generate paging links | 131: // Generate paging links |
punbb-1.2.19/upload/viewforum.php |
punbb-1.2.20/upload/viewforum.php |
69: // Determine the topic offset (based on $_GET['p']) | 69: // Determine the topic offset (based on $_GET['p']) |
70: $num_pages = ceil($cur_forum['num_topics'] / $pun_user['disp_topics']); | 70: $num_pages = ceil($cur_forum['num_topics'] / $pun_user['disp_topics']); |
71: | 71: |
72: $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; | 72: $p = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; |
73: $start_from = $pun_user['disp_topics'] * ($p - 1); | 73: $start_from = $pun_user['disp_topics'] * ($p - 1); |
74: | 74: |
75: // Generate paging links | 75: // Generate paging links |
253: $forum_id = $id; | 253: $forum_id = $id; |
254: $footer_style = 'viewforum'; | 254: $footer_style = 'viewforum'; |
255: require PUN_ROOT.'footer.php'; | 255: require PUN_ROOT.'footer.php'; |
punbb-1.2.19/upload/viewtopic.php |
punbb-1.2.20/upload/viewtopic.php |
128: // Determine the post offset (based on $_GET['p']) | 128: // Determine the post offset (based on $_GET['p']) |
129: $num_pages = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); | 129: $num_pages = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']); |
130: | 130: |
131: $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; | 131: $p = (!isset($_GET['p']) || !is_numeric($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p']; |
| 132: |
132: $start_from = $pun_user['disp_posts'] * ($p - 1); | 133: $start_from = $pun_user['disp_posts'] * ($p - 1); |
133: | 134: |
134: // Generate paging links | 135: // Generate paging links |