Ignore:
Timestamp:
Nov 14, 2011, 11:17:15 PM (13 years ago)
Author:
dj3c1t
Message:

passage a Fluxbb 1.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rsr.v5.1.dev/web/punbb/viewforum.php

    r1 r3  
    11<?php
    2 /***********************************************************************
    3 
    4   Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
    5 
    6   This file is part of PunBB.
    7 
    8   PunBB is free software; you can redistribute it and/or modify it
    9   under the terms of the GNU General Public License as published
    10   by the Free Software Foundation; either version 2 of the License,
    11   or (at your option) any later version.
    12 
    13   PunBB is distributed in the hope that it will be useful, but
    14   WITHOUT ANY WARRANTY; without even the implied warranty of
    15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16   GNU General Public License for more details.
    17 
    18   You should have received a copy of the GNU General Public License
    19   along with this program; if not, write to the Free Software
    20   Foundation, Inc., 59 Temple Place, Suite 330, Boston,
    21   MA  02111-1307  USA
    22 
    23 ************************************************************************/
    24 
    25 
    26 define('PUN_ROOT', './');
     2
     3/**
     4 * Copyright (C) 2008-2011 FluxBB
     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 */
     8
     9define('PUN_ROOT', dirname(__FILE__).'/');
    2710require PUN_ROOT.'include/common.php';
    2811
     
    4023
    4124// Fetch some info about the forum
    42 $result = $db->query('SELECT f.forum_name, f.redirect_url, f.moderators, f.num_topics, f.sort_by, fp.post_topics 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('Impossible de retrouver les informations du forum', __FILE__, __LINE__, $db->error());
     25if (!$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());
     27else
     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
    4330if (!$db->num_rows($result))
    4431        message($lang_common['Bad request']);
     
    5441
    5542// Sort out who the moderators are and if we are currently a moderator (or an admin)
    56 $mods_array = array();
    57 if ($cur_forum['moderators'] != '')
    58         $mods_array = unserialize($cur_forum['moderators']);
    59 
    60 $is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_id'] == PUN_MOD && array_key_exists($pun_user['username'], $mods_array))) ? true : false;
     43$mods_array = ($cur_forum['moderators'] != '') ? unserialize($cur_forum['moderators']) : array();
     44$is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_moderator'] == '1' && array_key_exists($pun_user['username'], $mods_array))) ? true : false;
     45
     46switch ($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}
    6161
    6262// Can we or can we not post new topics?
    6363if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
    64         $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
     64        $post_link = "\t\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
    6565else
    6666        $post_link = '';
    6767
     68// Get topic/forum tracking data
     69if (!$pun_user['is_guest'])
     70        $tracked_topics = get_tracked_topics();
    6871
    6972// Determine the topic offset (based on $_GET['p'])
    7073$num_pages = ceil($cur_forum['num_topics'] / $pun_user['disp_topics']);
    7174
    72 $p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p'];
     75$p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : intval($_GET['p']);
    7376$start_from = $pun_user['disp_topics'] * ($p - 1);
    7477
    7578// Generate paging links
    76 $paging_links = $lang_common['Pages'].': '.paginate($num_pages, $p, 'viewforum.php?id='.$id);
    77 
    78 
    79 $page_title = pun_htmlspecialchars($pun_config['o_board_title'].' / '.$cur_forum['forum_name']);
     79$paging_links = '<span class="pages-label">'.$lang_common['Pages'].' </span>'.paginate($num_pages, $p, 'viewforum.php?id='.$id);
     80
     81if ($pun_config['o_feed_type'] == '1')
     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'].'" />');
     83else if ($pun_config['o_feed_type'] == '2')
     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'].'" />');
     85
     86$forum_actions = array();
     87
     88if (!$pun_user['is_guest'])
     89{
     90        if ($pun_config['o_forum_subscriptions'] == '1')
     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        }
     97
     98        $forum_actions[] = '<a href="misc.php?action=markforumread&amp;fid='.$id.'">'.$lang_common['Mark forum read'].'</a>';
     99}
     100
     101$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), pun_htmlspecialchars($cur_forum['forum_name']));
    80102define('PUN_ALLOW_INDEX', 1);
     103define('PUN_ACTIVE_PAGE', 'index');
    81104require PUN_ROOT.'header.php';
    82105
    83106?>
    84107<div class="linkst">
    85         <div class="inbox">
    86                 <p class="pagelink conl"><?php echo $paging_links ?></p>
     108        <div class="inbox crumbsplus">
     109                <ul class="crumbs">
     110                        <li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li>
     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>
     112                </ul>
     113                <div class="pagepost">
     114                        <p class="pagelink conl"><?php echo $paging_links ?></p>
    87115<?php echo $post_link ?>
    88                 <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a>&#160;</li><li>&raquo;&#160;<?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul>
     116                </div>
    89117                <div class="clearer"></div>
    90118        </div>
     
    100128                                        <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th>
    101129                                        <th class="tc2" scope="col"><?php echo $lang_common['Replies'] ?></th>
    102                                         <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th>
    103                                         <th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
     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>
    104132                                </tr>
    105133                        </thead>
     
    107135<?php
    108136
    109 // Fetch list of topics to display on this page
    110 if ($pun_user['is_guest'] || $pun_config['o_show_dot'] == '0')
    111 {
    112         // Without "the dot"
    113         $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 forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
    114 }
    115 else
    116 {
    117         // With "the dot"
    118         switch ($db_type)
     137// Retrieve a list of topic IDs, LIMIT is (really) expensive so we only fetch the IDs here then later fetch the remaining data
     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());
     139
     140// If there are topics in this forum
     141if ($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;
     146
     147        if (empty($topic_ids))
     148                error('The topic table and forum table seem to be out of sync!', __FILE__, __LINE__);
     149
     150        // Fetch list of topics to display on this page
     151        if ($pun_user['is_guest'] || $pun_config['o_show_dot'] == '0')
    119152        {
    120                 case 'mysql':
    121                 case 'mysqli':
    122                         $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.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
    123                         break;
    124 
    125                 case 'sqlite':
    126                         $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(SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'].') GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC';
    127                         break;
    128 
    129                 default:
    130                         $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.forum_id='.$id.' GROUP BY 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, p.poster_id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
    131                         break;
    132 
     153                // Without "the dot"
     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';
    133155        }
    134 }
    135 
    136 $result = $db->query($sql) or error('Impossible de retrouver la liste des discussions', __FILE__, __LINE__, $db->error());
    137 
    138 // If there are topics in this forum.
    139 if ($db->num_rows($result))
    140 {
     156        else
     157        {
     158                // With "the dot"
     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';
     160        }
     161
     162        $result = $db->query($sql) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
     163
     164        $topic_count = 0;
    141165        while ($cur_topic = $db->fetch_assoc($result))
    142166        {
    143                 $icon_text = $lang_common['Normal icon'];
    144                 $item_status = '';
     167                ++$topic_count;
     168                $status_text = array();
     169                $item_status = ($topic_count % 2 == 0) ? 'roweven' : 'rowodd';
    145170                $icon_type = 'icon';
    146171
    147172                if ($cur_topic['moved_to'] == null)
    148                         $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'].'&#160;'.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';
    149                 else
    150                         $last_post = '&#160;';
     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>';
     174                else
     175                        $last_post = '- - -';
    151176
    152177                if ($pun_config['o_censoring'] == '1')
    153178                        $cur_topic['subject'] = censor_words($cur_topic['subject']);
    154179
     180                if ($cur_topic['sticky'] == '1')
     181                {
     182                        $item_status .= ' isticky';
     183                        $status_text[] = '<span class="stickytext">'.$lang_forum['Sticky'].'</span>';
     184                }
     185
    155186                if ($cur_topic['moved_to'] != 0)
    156                         $subject = $lang_forum['Moved'].': <a href="viewtopic.php?id='.$cur_topic['moved_to'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].'&#160;'.pun_htmlspecialchars($cur_topic['poster']).'</span>';
     187                {
     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>';
     189                        $status_text[] = '<span class="movedtext">'.$lang_forum['Moved'].'</span>';
     190                        $item_status .= ' imoved';
     191                }
    157192                else if ($cur_topic['closed'] == '0')
    158                         $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].'&#160;'.pun_htmlspecialchars($cur_topic['poster']).'</span>';
    159                 else
    160                 {
    161                         $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].'&#160;'.pun_htmlspecialchars($cur_topic['poster']).'</span>';
    162                         $icon_text = $lang_common['Closed icon'];
    163                         $item_status = 'iclosed';
    164                 }
    165 
    166                 if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)
    167                 {
    168                         $icon_text .= ' '.$lang_common['New icon'];
     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>';
     194                else
     195                {
     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>';
     197                        $status_text[] = '<span class="closedtext">'.$lang_forum['Closed'].'</span>';
     198                        $item_status .= ' iclosed';
     199                }
     200
     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']) && $cur_topic['moved_to'] == null)
     202                {
    169203                        $item_status .= ' inew';
    170                         $icon_type = 'icon inew';
     204                        $icon_type = 'icon icon-new';
    171205                        $subject = '<strong>'.$subject.'</strong>';
    172                         $subject_new_posts = '<span class="newtext">[&#160;<a href="viewtopic.php?id='.$cur_topic['id'].'&amp;action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a>&#160;]</span>';
     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>';
    173207                }
    174208                else
    175209                        $subject_new_posts = null;
     210
     211                // Insert the status text before the subject
     212                $subject = implode(' ', $status_text).' '.$subject;
    176213
    177214                // Should we display the dot or not? :)
     
    179216                {
    180217                        if ($cur_topic['has_posted'] == $pun_user['id'])
    181                                 $subject = '<strong>&middot;</strong>&#160;'.$subject;
    182                         else
    183                                 $subject = '&#160;&#160;'.$subject;
    184                 }
    185 
    186                 if ($cur_topic['sticky'] == '1')
    187                 {
    188                         $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject;
    189                         $item_status .= ' isticky';
    190                         $icon_text .= ' '.$lang_forum['Sticky'];
     218                        {
     219                                $subject = '<strong class="ipost">·&#160;</strong>'.$subject;
     220                                $item_status .= ' iposted';
     221                        }
    191222                }
    192223
     
    194225
    195226                if ($num_pages_topic > 1)
    196                         $subject_multipage = '[ '.paginate($num_pages_topic, -1, 'viewtopic.php?id='.$cur_topic['id']).' ]';
     227                        $subject_multipage = '<span class="pagestext">[ '.paginate($num_pages_topic, -1, 'viewtopic.php?id='.$cur_topic['id']).' ]</span>';
    197228                else
    198229                        $subject_multipage = null;
     
    201232                if (!empty($subject_new_posts) || !empty($subject_multipage))
    202233                {
    203                         $subject .= '&#160; '.(!empty($subject_new_posts) ? $subject_new_posts : '');
     234                        $subject .= !empty($subject_new_posts) ? ' '.$subject_new_posts : '';
    204235                        $subject .= !empty($subject_multipage) ? ' '.$subject_multipage : '';
    205236                }
    206237
    207238?>
    208                                 <tr<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>>
     239                                <tr class="<?php echo $item_status ?>">
    209240                                        <td class="tcl">
    210                                                 <div class="intd">
    211                                                         <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo trim($icon_text) ?></div></div>
    212                                                         <div class="tclcon">
     241                                                <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo forum_number_format($topic_count + $start_from) ?></div></div>
     242                                                <div class="tclcon">
     243                                                        <div>
    213244                                                                <?php echo $subject."\n" ?>
    214245                                                        </div>
    215246                                                </div>
    216247                                        </td>
    217                                         <td class="tc2"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_replies'] : '&#160;' ?></td>
    218                                         <td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_views'] : '&#160;' ?></td>
    219                                         <td class="tcr"><?php echo $last_post ?></td>
     248                                        <td class="tc2"><?php echo ($cur_topic['moved_to'] == null) ? forum_number_format($cur_topic['num_replies']) : '-' ?></td>
     249<?php if ($pun_config['o_topic_views'] == '1'): ?>                                      <td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? forum_number_format($cur_topic['num_views']) : '-' ?></td>
     250<?php endif; ?>                                 <td class="tcr"><?php echo $last_post ?></td>
    220251                                </tr>
    221252<?php
     
    225256else
    226257{
     258        $colspan = ($pun_config['o_topic_views'] == '1') ? 4 : 3;
    227259
    228260?>
    229                                 <tr>
    230                                         <td class="tcl" colspan="4"><?php echo $lang_forum['Empty forum'] ?></td>
     261                                <tr class="rowodd inone">
     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>
    231270                                </tr>
    232271<?php
     
    242281
    243282<div class="linksb">
    244         <div class="inbox">
    245                 <p class="pagelink conl"><?php echo $paging_links ?></p>
     283        <div class="inbox crumbsplus">
     284                <div class="pagepost">
     285                        <p class="pagelink conl"><?php echo $paging_links ?></p>
    246286<?php echo $post_link ?>
    247                 <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a>&#160;</li><li>&raquo;&#160;<?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul>
     287                </div>
     288                <ul class="crumbs">
     289                        <li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li>
     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>
     291                </ul>
     292<?php echo (!empty($forum_actions) ? "\t\t".'<p class="subscribelink clearb">'.implode(' - ', $forum_actions).'</p>'."\n" : '') ?>
    248293                <div class="clearer"></div>
    249294        </div>
     
    254299$footer_style = 'viewforum';
    255300require PUN_ROOT.'footer.php';
    256 
Note: See TracChangeset for help on using the changeset viewer.