J:\Profile\Tomek\Pulpit\forum\viewforum.php E:\www\fusion\6.01\forum\viewforum.php
1<?php 1<?php
2/*---------------------------------------------------+ 2/*---------------------------------------------------+
3| PHP-Fusion 6 Content Management System 3| PHP-Fusion 6 Content Management System
4+----------------------------------------------------+ 4+----------------------------------------------------+
5| Copyright © 2002 - 2006 Nick Jones 5| Copyright © 2002 - 2006 Nick Jones
6| http://www.php-fusion.co.uk/ 6| http://www.php-fusion.co.uk/
7+----------------------------------------------------+ 7+----------------------------------------------------+
8| Released under the terms & conditions of v2 of the 8| Released under the terms & conditions of v2 of the
9| GNU General Public License. For details refer to 9| GNU General Public License. For details refer to
10| the included gpl.txt file or visit http://gnu.org 10| the included gpl.txt file or visit http://gnu.org
11+----------------------------------------------------*/  11+----------------------------------------------------*/ 
12require_once "../maincore.php"; 12require_once "../maincore.php";
13require_once BASEDIR."subheader.php"; 13require_once BASEDIR."subheader.php";
14require_once BASEDIR."side_left.php"; 14require_once BASEDIR."side_left.php";
15include LOCALE.LOCALESET."forum/main.php"; 15include LOCALE.LOCALESET."forum/main.php";
16  16 
17if (!isset($lastvisited) || !isNum($lastvisited)) $lastvisited = time(); 17if (!isset($lastvisited) || !isNum($lastvisited)) $lastvisited = time();
18$threads_per_page = 20; 18$threads_per_page = 20;
19  19 
20if (!FUSION_QUERY || !$forum_id || !isNum($forum_id)) fallback("index.php"); 20if (!FUSION_QUERY || !$forum_id || !isNum($forum_id)) fallback("index.php");
21  21 
22$result = dbquery( 22$result = dbquery(
23    "SELECT f.*, f2.forum_name AS forum_cat_name 23    "SELECT f.*, f2.forum_name AS forum_cat_name
24    FROM ".$db_prefix."forums f 24    FROM ".$db_prefix."forums f
25    LEFT JOIN ".$db_prefix."forums f2 ON f.forum_cat=f2.forum_id 25    LEFT JOIN ".$db_prefix."forums f2 ON f.forum_cat=f2.forum_id
26    WHERE f.forum_id='".$forum_id."'"  26    WHERE f.forum_id='".$forum_id."'" 
27); 27);
28if (dbrows($result)) { 28if (dbrows($result)) {
29    $data = dbarray($result); 29    $data = dbarray($result);
30    if (!checkgroup($data['forum_access']) || !$data['forum_cat']) fallback("index.php"); 30    if (!checkgroup($data['forum_access']) || !$data['forum_cat']) fallback("index.php");
31} else { 31} else {
32    fallback("index.php"); 32    fallback("index.php");
33} 33}
34$can_post = checkgroup($data['forum_posting']); 34$can_post = checkgroup($data['forum_posting']);
35  35 
36$caption = $data['forum_cat_name']." | ".$data['forum_name']; 36$caption = $data['forum_cat_name']." | ".$data['forum_name'];
37  37 
38opentable($locale['450']); 38opentable($locale['450']);
39echo "<table cellspacing='0' cellpadding='0' width='100%'> 39echo "<table cellspacing='0' cellpadding='0' width='100%'>
40<tr> 40<tr>
41<td class='smallalt'> 41<td class='smallalt'>
42<a href='index.php'>".$settings['sitename']."</a> | $caption</td>\n"; 42<a href='index.php'>".$settings['sitename']."</a> | $caption</td>\n";
43if (iMEMBER && $can_post) { 43if (iMEMBER && $can_post) {
44    echo "<td align='right'> 44    echo "<td align='right'>
45<a href='post.php?action=newthread&amp;forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a> 45<a href='post.php?action=newthread&amp;forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a>
46</td>\n"; 46</td>\n";
47} 47}
48echo "</tr> 48echo "</tr>
49</table>\n"; 49</table>\n";
50  50 
51$rows = dbrows(dbquery("SELECT * FROM ".$db_prefix."threads WHERE forum_id='$forum_id' AND thread_sticky='0'")); 51$rows = dbrows(dbquery("SELECT * FROM ".$db_prefix."threads WHERE forum_id='$forum_id' AND thread_sticky='0'"));
52if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0; 52if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
53  53 
54if ($rows > $threads_per_page) { 54if ($rows > $threads_per_page) {
55    echo "<div align='center' style='margin-top:5px;margin-bottom:5px;'> 55    echo "<div align='center' style='margin-top:5px;margin-bottom:5px;'>
56".makePageNav($rowstart,20,$rows,3,FUSION_SELF."?forum_id=$forum_id&amp;")." 56".makePageNav($rowstart,20,$rows,3,FUSION_SELF."?forum_id=$forum_id&amp;")."
57</div>\n"; 57</div>\n";
58} 58}
59  59 
60echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl-border'> 60echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl-border'>
61<tr> 61<tr>
62<td> 62<td>
63<table cellspacing='1' cellpadding='0' width='100%'> 63<table cellspacing='1' cellpadding='0' width='100%'>
64<tr> 64<tr>
65<td width='20' class='tbl2'>&nbsp;</td> 65<td width='20' class='tbl2'>&nbsp;</td>
66<td class='tbl2'>".$locale['451']."</td> 66<td class='tbl2'>".$locale['451']."</td>
67<td width='100' class='tbl2'>".$locale['452']."</td> 67<td width='100' class='tbl2'>".$locale['452']."</td>
68<td align='center' width='50' class='tbl2'>".$locale['453']."</td> 68<td align='center' width='50' class='tbl2'>".$locale['453']."</td>
69<td align='center' width='50' class='tbl2'>".$locale['454']."</td> 69<td align='center' width='50' class='tbl2'>".$locale['454']."</td>
70<td width='120' class='tbl2'>".$locale['404']."</td> 70<td width='120' class='tbl2'>".$locale['404']."</td>
71</tr>\n"; 71</tr>\n";
72  72 
73if ($rowstart == 0) { 73if ($rowstart == 0) {
74    $result = dbquery( 74    $result = dbquery(
75        "SELECT t.*, COUNT(p.post_id) AS thread_replies, tu1.user_name AS user_author, tu2.user_name AS user_lastuser FROM ".$db_prefix."threads t 75        "SELECT t.*, COUNT(p.post_id) AS thread_replies, tu1.user_name AS user_author, tu2.user_name AS user_lastuser, tu2.user_avatar AS user_avatar FROM ".$db_prefix."threads t
76        LEFT JOIN ".$db_prefix."posts p USING(thread_id) 76        LEFT JOIN ".$db_prefix."posts p USING(thread_id)
77        LEFT JOIN ".$db_prefix."users tu1 ON t.thread_author = tu1.user_id 77        LEFT JOIN ".$db_prefix."users tu1 ON t.thread_author = tu1.user_id
78        LEFT JOIN ".$db_prefix."users tu2 ON t.thread_lastuser = tu2.user_id 78        LEFT JOIN ".$db_prefix."users tu2 ON t.thread_lastuser = tu2.user_id
79        WHERE t.forum_id='$forum_id' AND thread_sticky='1' GROUP BY thread_id ORDER BY thread_lastpost DESC"  79        WHERE t.forum_id='$forum_id' AND thread_sticky='1' GROUP BY thread_id ORDER BY thread_lastpost DESC" 
80    ); 80    );
81    if (dbrows($result) != 0) { 81    if (dbrows($result) != 0) {
82        while ($data = dbarray($result)) { 82        while ($data = dbarray($result)) {
83            if ($data['thread_locked']) { 83            if ($data['thread_locked']) {
84                echo "<tr>\n<td align='center' width='25' class='tbl2'><img src='".THEME."forum/folderlock.gif' alt='".$locale['564']."'></td>"; 84                echo "<tr>\n<td align='center' width='25' class='tbl2'><img src='".THEME."forum/folderlock.gif' alt='".$locale['564']."'></td>";
85            } else  { 85            } else  {
86                if ($data['thread_lastpost'] > $lastvisited) { 86                if ($data['thread_lastpost'] > $lastvisited) {
87                    $folder = "<img src='".THEME."forum/foldernew.gif' alt='".$locale['560']."'>"; 87                    $folder = "<img src='".THEME."forum/foldernew.gif' alt='".$locale['560']."'>";
88                } else { 88                } else {
89                    $folder = "<img src='".THEME."forum/folder.gif' alt='".$locale['561']."'>"; 89                    $folder = "<img src='".THEME."forum/folder.gif' alt='".$locale['561']."'>";
90                } 90                }
91                echo "<tr>\n<td align='center' width='25' class='tbl2'>$folder</td>"; 91                echo "<tr>\n<td align='center' width='25' class='tbl2'>$folder</td>";
92            } 92            }
93            $reps = ceil($data['thread_replies'] / $threads_per_page); 93            $reps = ceil($data['thread_replies'] / $threads_per_page);
94            $threadsubject = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."'>".$data['thread_subject']."</a>"; 94            $threadsubject = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."'>".$data['thread_subject']."</a>";
95            if ($reps > 1) { 95            if ($reps > 1) {
96                $ctr = 0; $ctr2 = 1; $pages = ""; 96                $ctr = 0; $ctr2 = 1; $pages = "";
97                while ($ctr2 <= $reps) { 97                while ($ctr2 <= $reps) {
98                    $pnum = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;rowstart=$ctr'>$ctr2</a> "; 98                    $pnum = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;rowstart=$ctr'>$ctr2</a> ";
99                    $pages = $pages.$pnum; $ctr = $ctr + $threads_per_page; $ctr2++; 99                    $pages = $pages.$pnum; $ctr = $ctr + $threads_per_page; $ctr2++;
100                } 100                }
101                $threadsubject .= " - (".$locale['412'].trim($pages).")"; 101                $threadsubject .= " - (".$locale['412'].trim($pages).")";
102            } 102            }
103            echo "<td class='tbl1'><img src='".THEME."forum/stickythread.gif' alt='".$locale['560']."' style='vertical-align:middle;'> 103            echo "<td class='tbl1'><img src='".THEME."forum/stickythread.gif' alt='".$locale['560']."' style='vertical-align:middle;'>
104$threadsubject</td> 104$threadsubject</td>
105<td class='tbl2'><a href='../profile.php?lookup=".$data['thread_author']."'>".$data['user_author']."</a></td> 105<td class='tbl2'><a href='../profile.php?lookup=".$data['thread_author']."'>".$data['user_author']."</a></td>
106<td align='center' class='tbl1'>".$data['thread_views']."</td> 106<td align='center' class='tbl1'>".$data['thread_views']."</td>
107<td align='center' class='tbl2'>".($data['thread_replies']-1)."</td> 107<td align='center' class='tbl2'>".($data['thread_replies']-1)."</td>
108<td class='tbl1'>".showdate("forumdate", $data['thread_lastpost'])."<br> 108<td class='tbl1'>".showdate("forumdate", $data['thread_lastpost'])."<br>
109<span class='small'>".$locale['406']."<a href='../profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_lastuser']."</a></span></td>  109<span class='small'>".$locale['406']."<a href='../profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_lastuser']."</a></span> 
  110 
  111<table>
  112                    <tr>
  113                        <td>".showdate("forumdate", $data['thread_lastpost'])."<br><span class='small''>".$locale['406']."<a href='../profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_lastuser']."</a></span> </td>
  114                        <td>".($data['user_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_avatar']."' width=50 alt='".$data['user_lastuser']."'>" : "")."</td>
  115                    </tr>
  116                </table>
  117</td>
110</tr>\n"; 118</tr>\n";
111        } 119        }
112        $threadcount = dbrows($result); 120        $threadcount = dbrows($result);
113    } else { 121    } else {
114        $threadcount = 0; 122        $threadcount = 0;
115    } 123    }
116} 124}
117  125 
118if ($rows != 0) { 126if ($rows != 0) {
119    $result = dbquery( 127    $result = dbquery(
120        "SELECT t.*, COUNT(p.post_id) AS thread_replies, tu1.user_name AS user_author, tu2.user_name AS user_lastuser FROM ".$db_prefix."threads t 128        "SELECT t.*, COUNT(p.post_id) AS thread_replies, tu1.user_name AS user_author, tu2.user_name AS user_lastuser, tu2.user_avatar AS user_lastuser_avatar FROM ".$db_prefix."threads t
121        LEFT JOIN ".$db_prefix."posts p USING(thread_id) 129        LEFT JOIN ".$db_prefix."posts p USING(thread_id)
122        LEFT JOIN ".$db_prefix."users tu1 ON t.thread_author = tu1.user_id 130        LEFT JOIN ".$db_prefix."users tu1 ON t.thread_author = tu1.user_id
123        LEFT JOIN ".$db_prefix."users tu2 ON t.thread_lastuser = tu2.user_id 131        LEFT JOIN ".$db_prefix."users tu2 ON t.thread_lastuser = tu2.user_id
124        WHERE t.forum_id='$forum_id' AND thread_sticky='0' GROUP BY thread_id ORDER BY thread_lastpost DESC LIMIT $rowstart,20"  132        WHERE t.forum_id='$forum_id' AND thread_sticky='0' GROUP BY thread_id ORDER BY thread_lastpost DESC LIMIT $rowstart,20" 
125    ); 133    );
126    $numrows = dbrows($result); 134    $numrows = dbrows($result);
127    while ($data = dbarray($result)) { 135    while ($data = dbarray($result)) {
128        if ($data['thread_locked']) { 136        if ($data['thread_locked']) {
129            echo "<tr>\n<td align='center' width='25' class='tbl2'><img src='".THEME."forum/folderlock.gif' alt='".$locale['564']."'></td>"; 137            echo "<tr>\n<td align='center' width='25' class='tbl2'><img src='".THEME."forum/folderlock.gif' alt='".$locale['564']."'></td>";
130        } else  { 138        } else  {
131            if ($data['thread_lastpost'] > $lastvisited) { 139            if ($data['thread_lastpost'] > $lastvisited) {
132                $folder = "<img src='".THEME."forum/foldernew.gif' alt='".$locale['560']."'>"; 140                $folder = "<img src='".THEME."forum/foldernew.gif' alt='".$locale['560']."'>";
133            } else { 141            } else {
134                $folder = "<img src='".THEME."forum/folder.gif' alt='".$locale['561']."'>"; 142                $folder = "<img src='".THEME."forum/folder.gif' alt='".$locale['561']."'>";
135            } 143            }
136            echo "<tr>\n<td align='center' width='25' class='tbl2'>$folder</td>"; 144            echo "<tr>\n<td align='center' width='25' class='tbl2'>$folder</td>";
137        } 145        }
138        $reps = ceil($data['thread_replies'] / $threads_per_page); 146        $reps = ceil($data['thread_replies'] / $threads_per_page);
139        $threadsubject = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."'>".$data['thread_subject']."</a>"; 147        $threadsubject = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."'>".$data['thread_subject']."</a>";
140        if ($reps > 1) { 148        if ($reps > 1) {
141            $ctr = 0; $ctr2 = 1; $pages = ""; 149            $ctr = 0; $ctr2 = 1; $pages = "";
142            while ($ctr2 <= $reps) { 150            while ($ctr2 <= $reps) {
143                $pnum = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;rowstart=$ctr'>$ctr2</a> "; 151                $pnum = "<a href='viewthread.php?forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;rowstart=$ctr'>$ctr2</a> ";
144                $pages = $pages.$pnum; $ctr = $ctr + $threads_per_page; $ctr2++; 152                $pages = $pages.$pnum; $ctr = $ctr + $threads_per_page; $ctr2++;
145            } 153            }
146            $threadsubject .= " - (".$locale['412'].trim($pages).")"; 154            $threadsubject .= " - (".$locale['412'].trim($pages).")";
147        } 155        }
148        echo "<td class='tbl1'>$threadsubject</td> 156        echo "<td class='tbl1'>$threadsubject</td>
149<td class='tbl2'><a href='../profile.php?lookup=".$data['thread_author']."'>".$data['user_author']."</a></td> 157<td class='tbl2'><a href='../profile.php?lookup=".$data['thread_author']."'>".$data['user_author']."</a></td>
150<td align='center' class='tbl1'>".$data['thread_views']."</td> 158<td align='center' class='tbl1'>".$data['thread_views']."</td>
151<td align='center' class='tbl2'>".($data['thread_replies']-1)."</td> 159<td align='center' class='tbl2'>".($data['thread_replies']-1)."</td>
  160<td class='tbl1'>
  161 
  162<table>
  163                    <tr>
152<td class='tbl1'>".showdate("forumdate", $data['thread_lastpost'])."<br> 164                        <td>".showdate("forumdate", $data['thread_lastpost'])."<br>
153<span class='small'>".$locale['406']."<a href='../profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_lastuser']."</a></span></td> 165<span class='small'>".$locale['406']."<a href='../profile.php?lookup=".$data['thread_lastuser']."'>".$data['user_lastuser']."</a></span> </td>
  166                        <td>".($data['user_lastuser_avatar'] ? "<img src='".IMAGES."avatars/".$data['user_lastuser_avatar']."' width=50 alt='".$data['user_lastuser']."'>" : "")."</td>
  167                    </tr>
  168                </table>";
  169 
  170echo "</td>
154</tr>\n"; 171</tr>\n";
155    } 172    }
156} else { 173} else {
157    if ($threadcount == 0) { 174    if ($threadcount == 0) {
158        echo "<tr>\n<td colspan='6' class='tbl1'>".$locale['455']."</td>\n</tr>\n"; 175        echo "<tr>\n<td colspan='6' class='tbl1'>".$locale['455']."</td>\n</tr>\n";
159    } 176    }
160} 177}
161  178 
162echo "</table> 179echo "</table>
163</td> 180</td>
164</tr> 181</tr>
165</table>\n"; 182</table>\n";
166  183 
167if ($rows > $threads_per_page) { 184if ($rows > $threads_per_page) {
168    echo "<div align='center' style='margin-top:5px;'> 185    echo "<div align='center' style='margin-top:5px;'>
169".makePageNav($rowstart,20,$rows,3,FUSION_SELF."?forum_id=$forum_id&amp;")." 186".makePageNav($rowstart,20,$rows,3,FUSION_SELF."?forum_id=$forum_id&amp;")."
170</div>\n"; 187</div>\n";
171} 188}
172  189 
173$forum_list = ""; $current_cat = ""; 190$forum_list = ""; $current_cat = "";
174$result = dbquery( 191$result = dbquery(
175    "SELECT f.forum_id, f.forum_name, f2.forum_name AS forum_cat_name 192    "SELECT f.forum_id, f.forum_name, f2.forum_name AS forum_cat_name
176    FROM ".$db_prefix."forums f 193    FROM ".$db_prefix."forums f
177    INNER JOIN ".$db_prefix."forums f2 ON f.forum_cat=f2.forum_id 194    INNER JOIN ".$db_prefix."forums f2 ON f.forum_cat=f2.forum_id
178    WHERE ".groupaccess('f.forum_access')." AND f.forum_cat!='0' ORDER BY f2.forum_order ASC, f.forum_order ASC"  195    WHERE ".groupaccess('f.forum_access')." AND f.forum_cat!='0' ORDER BY f2.forum_order ASC, f.forum_order ASC" 
179); 196);
180while ($data2 = dbarray($result)) { 197while ($data2 = dbarray($result)) {
181    if ($data2['forum_cat_name'] != $current_cat) { 198    if ($data2['forum_cat_name'] != $current_cat) {
182        if ($current_cat != "") $forum_list .= "</optgroup>\n"; 199        if ($current_cat != "") $forum_list .= "</optgroup>\n";
183        $current_cat = $data2['forum_cat_name']; 200        $current_cat = $data2['forum_cat_name'];
184        $forum_list .= "<optgroup label='".$data2['forum_cat_name']."'>\n"; 201        $forum_list .= "<optgroup label='".$data2['forum_cat_name']."'>\n";
185    } 202    }
186    $sel = ($data2['forum_id'] == $data['forum_id'] ? " selected" : ""); 203    $sel = ($data2['forum_id'] == $data['forum_id'] ? " selected" : "");
187    $forum_list .= "<option value='".$data2['forum_id']."'$sel>".$data2['forum_name']."</option>\n"; 204    $forum_list .= "<option value='".$data2['forum_id']."'$sel>".$data2['forum_name']."</option>\n";
188} 205}
189$forum_list .= "</optgroup>\n"; 206$forum_list .= "</optgroup>\n";
190echo "<table width='100%' cellpadding='0' cellspacing='0' style='margin-top:5px;'> 207echo "<table width='100%' cellpadding='0' cellspacing='0' style='margin-top:5px;'>
191<tr> 208<tr>
192<td align='left' class='tbl'>".$locale['540']."<br> 209<td align='left' class='tbl'>".$locale['540']."<br>
193<select name='jump_id' class='textbox' onChange=\"jumpForum(this.options[this.selectedIndex].value);\"> 210<select name='jump_id' class='textbox' onChange=\"jumpForum(this.options[this.selectedIndex].value);\">
194$forum_list</select></td>\n"; 211$forum_list</select></td>\n";
195if (iMEMBER && $can_post) { 212if (iMEMBER && $can_post) {
196    echo "<td align='right'> 213    echo "<td align='right'>
197<a href='post.php?action=newthread&amp;forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a> 214<a href='post.php?action=newthread&amp;forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a>
198</td>\n"; 215</td>\n";
199} 216}
200echo "</tr> 217echo "</tr>
201</table>\n"; 218</table>\n";
202  219 
203echo "<table cellpadding='0' cellspacing='0' width='100%'> 220echo "<table cellpadding='0' cellspacing='0' width='100%'>
204<tr> 221<tr>
205<td class='tbl1'> 222<td class='tbl1'>
206<img src='".THEME."forum/foldernew.gif' alt='".$locale['560']."' style='vertical-align:middle;'> - ".$locale['456']."( 223<img src='".THEME."forum/foldernew.gif' alt='".$locale['560']."' style='vertical-align:middle;'> - ".$locale['456']."(
207<img src='".THEME."forum/folderhot.gif' alt='".$locale['562']."' style='vertical-align:middle;'> - ".$locale['457']." )<br> 224<img src='".THEME."forum/folderhot.gif' alt='".$locale['562']."' style='vertical-align:middle;'> - ".$locale['457']." )<br>
208<img src='".THEME."forum/folder.gif' alt='".$locale['561']."' style='vertical-align:middle;'> - ".$locale['458']."<br> 225<img src='".THEME."forum/folder.gif' alt='".$locale['561']."' style='vertical-align:middle;'> - ".$locale['458']."<br>
209<img src='".THEME."forum/folderlock.gif' alt='".$locale['564']."' style='vertical-align:middle;'> - ".$locale['459']."<br> 226<img src='".THEME."forum/folderlock.gif' alt='".$locale['564']."' style='vertical-align:middle;'> - ".$locale['459']."<br>
210<img src='".THEME."forum/stickythread.gif' alt='".$locale['563']."' style='vertical-align:middle;'> - ".$locale['460']."</td> 227<img src='".THEME."forum/stickythread.gif' alt='".$locale['563']."' style='vertical-align:middle;'> - ".$locale['460']."</td>
211</tr> 228</tr>
212</table>\n"; 229</table>\n";
213closetable(); 230closetable();
214  231 
215echo "<script type='text/javascript'> 232echo "<script type='text/javascript'>
216function DeleteItem() { 233function DeleteItem() {
217    return confirm('Delete this thread?'); 234    return confirm('Delete this thread?');
218} 235}
219function jumpForum(forumid) { 236function jumpForum(forumid) {
220    document.location.href='".FORUM."viewforum.php?forum_id='+forumid; 237    document.location.href='".FORUM."viewforum.php?forum_id='+forumid;
221} 238}
222</script>\n"; 239</script>\n";
223  240 
224require_once BASEDIR."side_right.php"; 241require_once BASEDIR."side_right.php";
225require_once BASEDIR."footer.php"; 242require_once BASEDIR."footer.php";
226?>  243?> 
244