Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 301 lines (252 sloc) 12.705 kb
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
1 <?php
2
e5f7b2a Jamie Furness Updating copyright notices in all files
reines authored
3 /**
7c5edc2 Jamie Furness Updating copyright notices for 2012
reines authored
4 * Copyright (C) 2008-2012 FluxBB
e5f7b2a Jamie Furness Updating copyright notices in all files
reines authored
5 * based on code by Rickard Andersson copyright (C) 2002-2008 PunBB
6 * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
7 */
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
8
f5ee836 Jamie Furness Changing PUN_ROOT to use absolute paths, this solves some issues with AP...
reines authored
9 define('PUN_ROOT', dirname(__FILE__).'/');
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
10 require PUN_ROOT.'include/common.php';
11
12
13 if ($pun_user['g_read_board'] == '0')
543eaa0 Jan Dorsman #620 - Added http status codes to various events
oldskool authored
14 message($lang_common['No view'], false, '403 Forbidden');
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
15
16
17 $id = isset($_GET['id']) ? intval($_GET['id']) : 0;
18 if ($id < 1)
543eaa0 Jan Dorsman #620 - Added http status codes to various events
oldskool authored
19 message($lang_common['Bad request'], false, '404 Not Found');
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
20
21 // Load the viewforum.php language file
22 require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php';
23
24 // Fetch some info about the forum
68b3934 Jamie Furness Adding forum subscriptions, see #142
reines authored
25 if (!$pun_user['is_guest'])
26 $result = $db->query('SELECT f.forum_name, f.redirect_url, f.moderators, f.num_topics, f.sort_by, fp.post_topics, s.user_id AS is_subscribed FROM '.$db->prefix.'forums AS f LEFT JOIN '.$db->prefix.'forum_subscriptions AS s ON (f.id=s.forum_id AND s.user_id='.$pun_user['id'].') LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.id='.$id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
27 else
28 $result = $db->query('SELECT f.forum_name, f.redirect_url, f.moderators, f.num_topics, f.sort_by, fp.post_topics, 0 AS is_subscribed FROM '.$db->prefix.'forums AS f LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.id='.$id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
29
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
30 if (!$db->num_rows($result))
543eaa0 Jan Dorsman #620 - Added http status codes to various events
oldskool authored
31 message($lang_common['Bad request'], false, '404 Not Found');
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
32
33 $cur_forum = $db->fetch_assoc($result);
34
35 // Is this a redirect forum? In that case, redirect!
36 if ($cur_forum['redirect_url'] != '')
37 {
38 header('Location: '.$cur_forum['redirect_url']);
39 exit;
40 }
41
42 // Sort out who the moderators are and if we are currently a moderator (or an admin)
b565e2c Quy Clean up code to make it consistent.
Quy authored
43 $mods_array = ($cur_forum['moderators'] != '') ? unserialize($cur_forum['moderators']) : array();
5ca8498 Jamie Furness Updating trunk to version 1.4. These changes have all kindly been done b...
reines authored
44 $is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_moderator'] == '1' && array_key_exists($pun_user['username'], $mods_array))) ? true : false;
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
45
fbd37d2 Jamie Furness Add the option to sort forums alphabetically.
reines authored
46 switch ($cur_forum['sort_by'])
47 {
48 case 0:
49 $sort_by = 'last_post DESC';
50 break;
51 case 1:
52 $sort_by = 'posted DESC';
53 break;
54 case 2:
55 $sort_by = 'subject ASC';
56 break;
57 default:
58 $sort_by = 'last_post DESC';
59 break;
60 }
61
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
62 // Can we or can we not post new topics?
63 if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
bdd1406 Fixing and improving display of breadcrumbs.
Paul authored
64 $post_link = "\t\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
65 else
66 $post_link = '';
67
5ca8498 Jamie Furness Updating trunk to version 1.4. These changes have all kindly been done b...
reines authored
68 // Get topic/forum tracking data
69 if (!$pun_user['is_guest'])
70 $tracked_topics = get_tracked_topics();
71
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
72 // Determine the topic offset (based on $_GET['p'])
73 $num_pages = ceil($cur_forum['num_topics'] / $pun_user['disp_topics']);
74
1226d2d Quy Fixed $_GET['p'] parameter (page number).
Quy authored
75 $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : intval($_GET['p']);
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
76 $start_from = $pun_user['disp_topics'] * ($p - 1);
77
78 // Generate paging links
421c354 Moving hard coded colon to language file. Putting span around pages lab...
Paul Sullivan authored
79 $paging_links = '<span class="pages-label">'.$lang_common['Pages'].' </span>'.paginate($num_pages, $p, 'viewforum.php?id='.$id);
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
80
c851bd0 Jamie Furness Adding Atom/RSS feed autodiscovery and links to index/viewforum/viewtopi...
reines authored
81 if ($pun_config['o_feed_type'] == '1')
04a828e Quy Dropping support for unsupported <link rel="..."> values.
Quy authored
82 $page_head = array('feed' => '<link rel="alternate" type="application/rss+xml" href="extern.php?action=feed&amp;fid='.$id.'&amp;type=rss" title="'.$lang_common['RSS forum feed'].'" />');
c851bd0 Jamie Furness Adding Atom/RSS feed autodiscovery and links to index/viewforum/viewtopi...
reines authored
83 else if ($pun_config['o_feed_type'] == '2')
04a828e Quy Dropping support for unsupported <link rel="..."> values.
Quy authored
84 $page_head = array('feed' => '<link rel="alternate" type="application/atom+xml" href="extern.php?action=feed&amp;fid='.$id.'&amp;type=atom" title="'.$lang_common['Atom forum feed'].'" />');
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
85
e469134 Franz Liedke Make "mark forum as read" link be independent from subscriptions being t...
franzliedke authored
86 $forum_actions = array();
87
88 if (!$pun_user['is_guest'])
68b3934 Jamie Furness Adding forum subscriptions, see #142
reines authored
89 {
1016a03 Franz Liedke Ticket #142: Add option for switching forum subscriptions on/off.
franzliedke authored
90 if ($pun_config['o_forum_subscriptions'] == '1')
e469134 Franz Liedke Make "mark forum as read" link be independent from subscriptions being t...
franzliedke authored
91 {
92 if ($cur_forum['is_subscribed'])
93 $forum_actions[] = '<span>'.$lang_forum['Is subscribed'].' - </span><a href="misc.php?action=unsubscribe&amp;fid='.$id.'">'.$lang_forum['Unsubscribe'].'</a>';
94 else
95 $forum_actions[] = '<a href="misc.php?action=subscribe&amp;fid='.$id.'">'.$lang_forum['Subscribe'].'</a>';
96 }
7118aa5 sprt Automatically right trimmed lines and converted sequences of 4 spaces be...
sprt authored
97
e469134 Franz Liedke Make "mark forum as read" link be independent from subscriptions being t...
franzliedke authored
98 $forum_actions[] = '<a href="misc.php?action=markforumread&amp;fid='.$id.'">'.$lang_common['Mark forum read'].'</a>';
68b3934 Jamie Furness Adding forum subscriptions, see #142
reines authored
99 }
100
8b59f34 Quy Removed pun_htmlspecialchars from the generate_page_title function.
Quy authored
101 $page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), pun_htmlspecialchars($cur_forum['forum_name']));
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
102 define('PUN_ALLOW_INDEX', 1);
a43f248 Quy Changed prefix to PUN for consistency.
Quy authored
103 define('PUN_ACTIVE_PAGE', 'index');
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
104 require PUN_ROOT.'header.php';
105
106 ?>
107 <div class="linkst">
bbf4d49 Added extra class to top and bottom links that have breadcrumbs plus pag...
Paul Sullivan authored
108 <div class="inbox crumbsplus">
a66809c Added class .crumbs to the breadcrumbs lists to avoid having to style to...
Paul Sullivan authored
109 <ul class="crumbs">
bde6dd7 Fixing rendering of crumbs, pagelinks, postlink.
Paul Sullivan authored
110 <li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li>
4bb4fdc Jamie Furness Fixing ordering of strong tags in d6613eb421a49d5ba7e7
reines authored
111 <li><span&#160;</span><a href="viewforum.php?id=<?php echo $id ?>"><strong><?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></strong></a></li>
bde6dd7 Fixing rendering of crumbs, pagelinks, postlink.
Paul Sullivan authored
112 </ul>
bdd1406 Fixing and improving display of breadcrumbs.
Paul authored
113 <div class="pagepost">
114 <p class="pagelink conl"><?php echo $paging_links ?></p>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
115 <?php echo $post_link ?>
bdd1406 Fixing and improving display of breadcrumbs.
Paul authored
116 </div>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
117 <div class="clearer"></div>
118 </div>
119 </div>
120
121 <div id="vf" class="blocktable">
122 <h2><span><?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></span></h2>
123 <div class="box">
124 <div class="inbox">
125 <table cellspacing="0">
126 <thead>
127 <tr>
128 <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th>
129 <th class="tc2" scope="col"><?php echo $lang_common['Replies'] ?></th>
5ca8498 Jamie Furness Updating trunk to version 1.4. These changes have all kindly been done b...
reines authored
130 <?php if ($pun_config['o_topic_views'] == '1'): ?> <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th>
131 <?php endif; ?> <th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
132 </tr>
133 </thead>
134 <tbody>
135 <?php
136
a72e6e8 Jamie Furness Splitting the topic list query into 2 parts to work around poor performa...
reines authored
137 // Retrieve a list of topic IDs, LIMIT is (really) expensive so we only fetch the IDs here then later fetch the remaining data
fbd37d2 Jamie Furness Add the option to sort forums alphabetically.
reines authored
138 $result = $db->query('SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.$sort_by.', id DESC LIMIT '.$start_from.', '.$pun_user['disp_topics']) or error('Unable to fetch topic IDs', __FILE__, __LINE__, $db->error());
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
139
a72e6e8 Jamie Furness Splitting the topic list query into 2 parts to work around poor performa...
reines authored
140 // If there are topics in this forum
141 if ($db->num_rows($result))
142 {
143 $topic_ids = array();
144 for ($i = 0;$cur_topic_id = $db->result($result, $i);$i++)
145 $topic_ids[] = $cur_topic_id;
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
146
e9fc75a Jamie Furness Adding an error message if the topic and posts table get out of sync. Si...
reines authored
147 if (empty($topic_ids))
148 error('The topic table and forum table seem to be out of sync!', __FILE__, __LINE__);
149
a72e6e8 Jamie Furness Splitting the topic list query into 2 parts to work around poor performa...
reines authored
150 // Fetch list of topics to display on this page
151 if ($pun_user['is_guest'] || $pun_config['o_show_dot'] == '0')
152 {
153 // Without "the dot"
fbd37d2 Jamie Furness Add the option to sort forums alphabetically.
reines authored
154 $sql = 'SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM '.$db->prefix.'topics WHERE id IN('.implode(',', $topic_ids).') ORDER BY sticky DESC, '.$sort_by.', id DESC';
a72e6e8 Jamie Furness Splitting the topic list query into 2 parts to work around poor performa...
reines authored
155 }
156 else
157 {
158 // With "the dot"
fbd37d2 Jamie Furness Add the option to sort forums alphabetically.
reines authored
159 $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.id IN('.implode(',', $topic_ids).') GROUP BY t.id'.($db_type == 'pgsql' ? ', t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, p.poster_id' : '').' ORDER BY t.sticky DESC, t.'.$sort_by.', t.id DESC';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
160 }
161
a72e6e8 Jamie Furness Splitting the topic list query into 2 parts to work around poor performa...
reines authored
162 $result = $db->query($sql) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
163
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
164 $topic_count = 0;
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
165 while ($cur_topic = $db->fetch_assoc($result))
166 {
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
167 ++$topic_count;
168 $status_text = array();
169 $item_status = ($topic_count % 2 == 0) ? 'roweven' : 'rowodd';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
170 $icon_type = 'icon';
171
6ab8b6a Jan Dorsman #642 - Replaced all "custom" null-checks with is_null() checks.
oldskool authored
172 if (is_null($cur_topic['moved_to']))
985148b Tidying up some inconsistencies in table markup spotted by quy.
Paul Sullivan authored
173 $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
174 else
f4f58f7 Generally tidying up. Eliminating some inconsistencies. Eliminating the...
Paul Sullivan authored
175 $last_post = '- - -';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
176
177 if ($pun_config['o_censoring'] == '1')
178 $cur_topic['subject'] = censor_words($cur_topic['subject']);
179
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
180 if ($cur_topic['sticky'] == '1')
181 {
182 $item_status .= ' isticky';
ee8a6cf Missing span from two commits back.
Paul Sullivan authored
183 $status_text[] = '<span class="stickytext">'.$lang_forum['Sticky'].'</span>';
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
184 }
185
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
186 if ($cur_topic['moved_to'] != 0)
2a6d211 Jamie Furness Tidied up the post icons and text to make it more consistent.
reines authored
187 {
985148b Tidying up some inconsistencies in table markup spotted by quy.
Paul Sullivan authored
188 $subject = '<a href="viewtopic.php?id='.$cur_topic['moved_to'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
189 $status_text[] = '<span class="movedtext">'.$lang_forum['Moved'].'</span>';
190 $item_status .= ' imoved';
2a6d211 Jamie Furness Tidied up the post icons and text to make it more consistent.
reines authored
191 }
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
192 else if ($cur_topic['closed'] == '0')
985148b Tidying up some inconsistencies in table markup spotted by quy.
Paul Sullivan authored
193 $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
194 else
195 {
985148b Tidying up some inconsistencies in table markup spotted by quy.
Paul Sullivan authored
196 $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
197 $status_text[] = '<span class="closedtext">'.$lang_forum['Closed'].'</span>';
198 $item_status .= ' iclosed';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
199 }
200
6ab8b6a Jan Dorsman #642 - Replaced all "custom" null-checks with is_null() checks.
oldskool authored
201 if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_topic['id']]) || $tracked_topics['topics'][$cur_topic['id']] < $cur_topic['last_post']) && (!isset($tracked_topics['forums'][$id]) || $tracked_topics['forums'][$id] < $cur_topic['last_post']) && is_null($cur_topic['moved_to']))
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
202 {
203 $item_status .= ' inew';
0f5b8bc 1. Tweaking the css of status icons making it more obvious.
Paul Sullivan authored
204 $icon_type = 'icon icon-new';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
205 $subject = '<strong>'.$subject.'</strong>';
e05f264 Discovered and corrected a few whitespace errors and some oddly inconsis...
Paul Sullivan authored
206 $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&amp;action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
207 }
208 else
209 $subject_new_posts = null;
210
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
211 // Insert the status text before the subject
212 $subject = implode(' ', $status_text).' '.$subject;
213
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
214 // Should we display the dot or not? :)
215 if (!$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1')
216 {
217 if ($cur_topic['has_posted'] == $pun_user['id'])
bde6dd7 Fixing rendering of crumbs, pagelinks, postlink.
Paul Sullivan authored
218 {
8d5b6c0 Jamie Furness Replacing some entities with their UTF-8 character equivalent.
reines authored
219 $subject = '<strong class="ipost">·&#160;</strong>'.$subject;
bde6dd7 Fixing rendering of crumbs, pagelinks, postlink.
Paul Sullivan authored
220 $item_status .= ' iposted';
221 }
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
222 }
223
224 $num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']);
225
226 if ($num_pages_topic > 1)
e05f264 Discovered and corrected a few whitespace errors and some oddly inconsis...
Paul Sullivan authored
227 $subject_multipage = '<span class="pagestext">[ '.paginate($num_pages_topic, -1, 'viewtopic.php?id='.$cur_topic['id']).' ]</span>';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
228 else
229 $subject_multipage = null;
230
231 // Should we show the "New posts" and/or the multipage links?
232 if (!empty($subject_new_posts) || !empty($subject_multipage))
233 {
e05f264 Discovered and corrected a few whitespace errors and some oddly inconsis...
Paul Sullivan authored
234 $subject .= !empty($subject_new_posts) ? ' '.$subject_new_posts : '';
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
235 $subject .= !empty($subject_multipage) ? ' '.$subject_multipage : '';
236 }
237
238 ?>
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
239 <tr class="<?php echo $item_status ?>">
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
240 <td class="tcl">
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
241 <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo forum_number_format($topic_count + $start_from) ?></div></div>
908140e Removed pointless div from table cells. It was only there for IE5 anywa...
Paul Sullivan authored
242 <div class="tclcon">
e05f264 Discovered and corrected a few whitespace errors and some oddly inconsis...
Paul Sullivan authored
243 <div>
244 <?php echo $subject."\n" ?>
245 </div>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
246 </div>
247 </td>
6ab8b6a Jan Dorsman #642 - Replaced all "custom" null-checks with is_null() checks.
oldskool authored
248 <td class="tc2"><?php echo (is_null($cur_topic['moved_to'])) ? forum_number_format($cur_topic['num_replies']) : '-' ?></td>
249 <?php if ($pun_config['o_topic_views'] == '1'): ?> <td class="tc3"><?php echo (is_null($cur_topic['moved_to'])) ? forum_number_format($cur_topic['num_views']) : '-' ?></td>
5ca8498 Jamie Furness Updating trunk to version 1.4. These changes have all kindly been done b...
reines authored
250 <?php endif; ?> <td class="tcr"><?php echo $last_post ?></td>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
251 </tr>
252 <?php
253
254 }
255 }
256 else
257 {
5ca8498 Jamie Furness Updating trunk to version 1.4. These changes have all kindly been done b...
reines authored
258 $colspan = ($pun_config['o_topic_views'] == '1') ? 4 : 3;
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
259
260 ?>
ba4df65 1. Removed hidden text from status icons and from language files.
Paul Sullivan authored
261 <tr class="rowodd inone">
b492ea3 Making the markup for an empty forum row consistent with that of normal ...
Paul Sullivan authored
262 <td class="tcl" colspan="<?php echo $colspan ?>">
263 <div class="icon inone"><div class="nosize"><!-- --></div></div>
264 <div class="tclcon">
265 <div>
266 <strong><?php echo $lang_forum['Empty forum'] ?></strong>
267 </div>
268 </div>
269 </td>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
270 </tr>
271 <?php
272
273 }
274
275 ?>
276 </tbody>
277 </table>
278 </div>
279 </div>
280 </div>
281
282 <div class="linksb">
bbf4d49 Added extra class to top and bottom links that have breadcrumbs plus pag...
Paul Sullivan authored
283 <div class="inbox crumbsplus">
bdd1406 Fixing and improving display of breadcrumbs.
Paul authored
284 <div class="pagepost">
285 <p class="pagelink conl"><?php echo $paging_links ?></p>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
286 <?php echo $post_link ?>
bdd1406 Fixing and improving display of breadcrumbs.
Paul authored
287 </div>
a66809c Added class .crumbs to the breadcrumbs lists to avoid having to style to...
Paul Sullivan authored
288 <ul class="crumbs">
bde6dd7 Fixing rendering of crumbs, pagelinks, postlink.
Paul Sullivan authored
289 <li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li>
c07514f Quy Fixing ordering of strong tags of breadcrumb in footer.
Quy authored
290 <li><span&#160;</span><a href="viewforum.php?id=<?php echo $id ?>"><strong><?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></strong></a></li>
bde6dd7 Fixing rendering of crumbs, pagelinks, postlink.
Paul Sullivan authored
291 </ul>
e469134 Franz Liedke Make "mark forum as read" link be independent from subscriptions being t...
franzliedke authored
292 <?php echo (!empty($forum_actions) ? "\t\t".'<p class="subscribelink clearb">'.implode(' - ', $forum_actions).'</p>'."\n" : '') ?>
9d65336 Initial import based on revision 1613 of PunBB.
Connor Dunn authored
293 <div class="clearer"></div>
294 </div>
295 </div>
296 <?php
297
298 $forum_id = $id;
299 $footer_style = 'viewforum';
300 require PUN_ROOT.'footer.php';
Something went wrong with that request. Please try again.