punbb-1.2.18/upload/include/parser.php |
punbb-1.2.20/upload/include/parser.php |
102: message($lang_prof_reg['Signature quote/code']); | 102: message($lang_prof_reg['Signature quote/code']); |
103: } | 103: } |
104: | 104: |
105: if (preg_match('#\[url\](.*?)([\[]+?)(.*?)\[/url\]#', $text) || preg_match('#\[url=(.*?)([\[]+?)(.*?)\](.*?)\[/url\]#', $text) || preg_match('#\[url=(.*?)\](.*?)([\[]+?)(.*?)\[/url\]#', $text)) | |
106: message('BBCode can not be nested within [url] tags.'); | |
107: if (preg_match('#\[email\](.*?)([\[]+?)(.*?)\[/email\]#', $text) || preg_match('#\[email=(.*?)([\[]+?)(.*?)\](.*?)\[/email\]#', $text) || preg_match('#\[email=(.*?)\](.*?)([\[]+?)(.*?)\[/email\]#', $text)) | |
108: message('BBCode can not be nested within [email] tags.'); | |
109: | |
110: return trim($text); | 105: return trim($text); |
111: } | 106: } |
112: | 107: |
321: $pattern = array('#\[b\](.*?)\[/b\]#s', | 316: $pattern = array('#\[b\](.*?)\[/b\]#s', |
322: '#\[i\](.*?)\[/i\]#s', | 317: '#\[i\](.*?)\[/i\]#s', |
323: '#\[u\](.*?)\[/u\]#s', | 318: '#\[u\](.*?)\[/u\]#s', |
324: '#\[url\]([^\[]*?)\[/url\]#e', | 319: '#\[url\]([^\[<]*?)\[/url\]#e', |
325: '#\[url=([^\[]*?)\](.*?)\[/url\]#e', | 320: '#\[url=([^\[<]*?)\](.*?)\[/url\]#e', |
326: '#\[email\]([^\[]*?)\[/email\]#', | 321: '#\[email\]([^\[<]*?)\[/email\]#', |
327: '#\[email=([^\[]*?)\](.*?)\[/email\]#', | 322: '#\[email=([^\[<]*?)\](.*?)\[/email\]#', |
328: '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s'); | 323: '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s'); |
329: | 324: |
330: $replace = array('<strong>$1</strong>', | 325: $replace = array('<strong>$1</strong>', |
punbb-1.2.18/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.18/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.18/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.18/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.18/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 |