} if ($fieldsvar) { $result = dbquery("SELECT tp.forum_id, tp.thread_id, tp.post_id, tp.post_message, tt.thread_subject,\n\t\t\ttf.forum_access FROM " . DB_POSTS . " tp\n\t\t\tLEFT JOIN " . DB_FORUMS . " tf ON tf.forum_id = tp.forum_id\n\t\t\tLEFT JOIN " . DB_THREADS . " tt ON tt.thread_id = tp.thread_id\t\t\t\n\t\t\tWHERE " . groupaccess('forum_access') . ($_GET['forum_id'] != 0 ? " AND tf.forum_id=" . $_GET['forum_id'] : "") . "\n\t\t\tAND " . $fieldsvar . ($_GET['datelimit'] != 0 ? " AND post_datestamp>=" . (time() - $_GET['datelimit']) : "")); $rows = dbrows($result); } else { $rows = 0; } if ($rows) { $items_count .= THEME_BULLET . " <a href='" . FUSION_SELF . "?stype=forums&stext=" . $_GET['stext'] . "&" . $composevars . "'>" . $rows . " " . ($rows == 1 ? $locale['f402'] : $locale['f403']) . " " . $locale['522'] . "</a><br />\n"; $result = dbquery("SELECT tp.forum_id, tp.thread_id, tp.post_id, tp.post_message, tp.post_datestamp, tp.post_alias, tt.thread_subject,\n\t\t\ttt.thread_sticky, tf.forum_access, tu.user_id, tu.user_name, tu.user_status, tu.user_aliases FROM " . DB_POSTS . " tp\n\t\t\tLEFT JOIN " . DB_THREADS . " tt ON tp.thread_id = tt.thread_id\n\t\t\tLEFT JOIN " . DB_FORUMS . " tf ON tp.forum_id = tf.forum_id\n\t\t\tLEFT JOIN " . DB_USERS . " tu ON tp.post_author=tu.user_id\n\t\t\tWHERE " . groupaccess('forum_access') . ($_GET['forum_id'] != 0 ? " AND tf.forum_id=" . $_GET['forum_id'] : "") . "\n\t\t\tAND " . $fieldsvar . ($_GET['datelimit'] != 0 ? " AND post_datestamp>=" . (time() - $_GET['datelimit']) : "") . "\n\t\t\tORDER BY " . $sortby . " " . ($_GET['order'] == 1 ? "ASC" : "DESC") . ($_GET['stype'] != "all" ? " LIMIT " . $_GET['rowstart'] . ",10" : "")); while ($data = dbarray($result)) { $search_result = ""; $text_all = search_striphtmlbbcodes($data['post_message']); $text_frag = search_textfrag($text_all); $subj_c = search_stringscount($data['thread_subject']); $text_c = search_stringscount($data['post_message']); // $text_frag = highlight_words($swords, $text_frag); $search_result .= ($data['thread_sticky'] == 1 ? "<strong>" . $locale['f404'] . "</strong> " : "") . "<a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "&highlight=" . urlencode($_GET['stext']) . "&pid=" . $data['post_id'] . "#post_" . $data['post_id'] . "'>" . $data['thread_subject'] . "</a>" . "<br /><br />\n"; // $search_result .= ($data['thread_sticky'] == 1 ? "<strong>".$locale['f404']."</strong> " : "")."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&highlight=".urlencode($_GET['stext'])."&pid=".$data['post_id']."#post_".$data['post_id']."'>".highlight_words($swords, $data['thread_subject'])."</a>"."<br /><br />\n"; $search_result .= "<div class='quote' style='width:auto;height:auto;overflow:auto'>" . $text_frag . "</div><br />"; $search_result .= "<span class='small2'>" . $locale['global_070'] . alias2($data['post_alias'], alias1($data['user_aliases']), $data['user_id'], $data['user_name'], $data['user_status']) . "\n"; $search_result .= $locale['global_071'] . showdate("longdate", $data['post_datestamp']) . "</span><br />\n"; $search_result .= "<span class='small'>" . $subj_c . " " . ($subj_c == 1 ? $locale['520'] : $locale['521']) . " " . $locale['f406'] . " " . $locale['f407'] . ", "; $search_result .= $text_c . " " . ($text_c == 1 ? $locale['520'] : $locale['521']) . " " . $locale['f406'] . " " . $locale['f408'] . "</span><br /><br />\n"; search_globalarray($search_result); } } else { $items_count .= THEME_BULLET . " 0 " . $locale['f403'] . " " . $locale['522'] . "<br />\n"; } $navigation_result = search_navigation($rows); }
echo "</tr>\n"; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "<tr>\n"; if ($data['thread_lastpost'] > $lastvisited) { $thread_match = $data['thread_id'] . "\\|" . $data['thread_lastpost'] . "\\|" . $data['forum_id']; if (iMEMBER && ($data['thread_lastuser'] == $userdata['user_id'] || preg_match("(^\\.{$thread_match}\$|\\.{$thread_match}\\.|\\.{$thread_match}\$)", $userdata['user_threads']))) { $boldynew = false; } else { $boldynew = true; } } else { $boldynew = false; } echo "<td style='margin: 0px; font-size: 7pt; white-space: normal;' class='" . $row_color . "'>" . ($boldynew ? '<b>' : '') . "<a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "&pid=" . $data['thread_lastpostid'] . "#post_" . $data['thread_lastpostid'] . "' title='" . $data['thread_subject'] . "'>" . trimlink(preg_replace('/([^\\s]{15})([^\\s]+)/', '$1 $2 ', $data['thread_subject']), 70) . "</a><br />\n" . $data['forum_name'] . ($boldynew ? '</b>' : '') . "</td>\n"; $usernamestuff1 = alias2($data['thread_lastpost_alias'], trimlink(alias1($data['user_aliases']), 25), $data['thread_lastuser'], trimlink($data['user_name'], 14), $data['user_status'], TRUE); echo "<td class='" . $row_color . "' style='text-align:center; margin: 0px; font-size: 7pt; white-space: normal;'>" . $usernamestuff1 . "<br />\n" . showdate("<span title='%d-%m-%y'>%H:%M:%S</span>", $data['thread_lastpost']) . "</td>\n"; echo "</tr>\n"; $i++; } echo "</table>\n"; } echo "<div style='clear: both;'></div>"; if (iMEMBER) { echo "<div class='tbl1' style='text-align:center'><a href='" . INFUSIONS . "latest_forumactivity_panel/my_threads.php'>" . $locale['global_041'] . "</a> ::\n"; echo "<a href='" . INFUSIONS . "latest_forumactivity_panel/my_posts.php'>" . $locale['global_042'] . "</a> ::\n"; echo "<a href='" . INFUSIONS . "latest_forumactivity_panel/new_posts.php'>" . $locale['global_043'] . "</a>"; if ($settings['thread_notify']) { echo " ::\n<a href='" . INFUSIONS . "latest_forumactivity_panel/my_tracked_threads.php'>" . $locale['global_056'] . "</a>"; } echo "</div>\n";
} echo "<div style='clear: both;'></div>"; /* Tilfældige emner */ $result = dbquery("SELECT tt.thread_id, tt.thread_subject, tt.thread_lastuser, tt.thread_lastpost, tt.thread_lastpost_alias,\n\ttt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tu.user_id, tu.user_name,\n\ttu.user_status, tu.user_aliases\n\tFROM " . DB_THREADS . " tt\n\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id=tf.forum_id\n\tINNER JOIN " . DB_USERS . " tu ON tt.thread_lastuser=tu.user_id\n\tWHERE " . groupaccess('tf.forum_access') . " AND tt.thread_hidden='0' AND tt.forum_id != 10\n\tORDER BY RAND() DESC LIMIT 0, 5"); if (dbrows($result)) { $i = 0; echo "<table cellpadding='0' cellspacing='1' style='width: 100%; margin-top: 1%;' class='tbl-border'>\n<tr>\n"; echo "<td style='width: 70%; margin: 0px;' class='tbl2'><strong>Tilfældige emner</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap; margin: 0px;'><strong>Nyeste svar</strong></td>\n"; echo "</tr>\n"; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "<tr>\n"; if ($data['thread_lastpost'] > $lastvisited) { $thread_match = $data['thread_id'] . "\\|" . $data['thread_lastpost'] . "\\|" . $data['forum_id']; if (iMEMBER && ($data['thread_lastuser'] == $userdata['user_id'] || preg_match("(^\\.{$thread_match}\$|\\.{$thread_match}\\.|\\.{$thread_match}\$)", $userdata['user_threads']))) { $boldynew = false; } else { $boldynew = true; } } else { $boldynew = false; } echo "<td style='margin: 0px; font-size: 7pt;' class='" . $row_color . "'>" . ($boldynew ? '<b>' : '') . "<a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "&pid=" . $data['thread_lastpostid'] . "#post_" . $data['thread_lastpostid'] . "' title='" . $data['thread_subject'] . "'>" . trimlink(preg_replace('/([^\\s]{20})([^\\s]+)/', '$1 $2 ', $data['thread_subject']), 70) . "</a><br />\n" . $data['forum_name'] . ($boldynew ? '</b>' : '') . "</td>\n"; echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap; margin: 0px; font-size: 7pt;'>" . alias2($data['thread_lastpost_alias'], trimlink(alias1($data['user_aliases']), 14), $data['thread_lastuser'], trimlink($data['user_name'], 14), $data['user_status']) . "<br />\n" . showdate("%d-%m-%y %H:%M:%S", $data['thread_lastpost']) . "</td>\n"; echo "</tr>\n"; $i++; } echo "</table>\n"; } closetable();
$title = $locale['431']; } else { $title = sprintf($locale['432'], $settings['forum_last_posts_reply']); } opentable($title); echo "<div style='max-height:350px;overflow:auto;'>\n"; echo "<table cellpadding='1' cellspacing='1' width='100%' class='tbl-border forum_thread_table'>\n"; $i = $settings['forum_last_posts_reply']; while ($data = dbarray($result)) { $data['user_aliases'] = alias1($data['user_aliases']); $message = $data['post_message']; if ($data['post_smileys']) { $message = parsesmileys($message); } $message = parseubb($message); echo "<tr>\n<td class='tbl2 forum_thread_user_name' style='width:10%'><!--forum_thread_user_name-->" . alias2($data['post_alias'], $data['user_aliases'], $data['user_id'], $data['user_name'], $data['user_status']) . "</td>\n"; echo "<td class='tbl2 forum_thread_post_date'>\n"; echo "<div style='float:right' class='small'>\n"; echo $i . ($i == $settings['forum_last_posts_reply'] ? " (" . $locale['431'] . ")" : ""); echo "</div>\n"; echo "<div class='small'>" . $locale['426'] . showdate("forumdate", $data['post_datestamp']) . "</div>\n"; echo "</td>\n"; echo "</tr>\n<tr>\n<td valign='top' class='tbl2 forum_thread_user_info' style='width:10%'>\n"; if ($data['user_avatar'] && file_exists(IMAGES . "avatars/" . $data['user_avatar']) && $data['user_status'] != 6 && $data['user_status'] != 5 && $data['post_alias'] < 0) { echo "<img src='" . IMAGES . "avatars/" . $data['user_avatar'] . "' alt='" . $locale['567'] . "' /><br /><br />\n"; } elseif ($data['post_alias'] >= 0) { echo "<img src='" . IMAGES . "avatars/noavatar100.png' alt='-' /><br /><br />\n"; echo "<span class='small'>"; echo 'Alias'; echo "</span><br /><br />\n"; } else {
} echo "<tr>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>{$fim}</td>\n"; echo "<td class='tbl1 forum_name'><!--forum_name--><a href='viewforum.php?forum_id=" . $data['forum_id'] . "'>" . $data['forum_name'] . "</a><br />\n"; if ($data['forum_description']) { echo "<span class='small'>" . nl2br(parseubb($data['forum_description'])); } echo "</td>\n"; echo "<td align='center' width='1%' class='tbl2' style='white-space:nowrap'>" . $data['forum_threadcount'] . "</td>\n"; echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . $data['forum_postcount'] . "</td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'>"; if ($data['forum_lastpost'] == 0) { echo $locale['405'] . "</td>\n</tr>\n"; } else { echo showdate("forumdate", $data['forum_lastpost']) . "<br />\n"; echo "<span class='small'>" . $locale['406'] . alias2($data['forum_lastpost_alias'], alias1($data['user_aliases']), $data['forum_lastuser'], $data['user_name'], $data['user_status']) . "</span></td>\n"; echo "</tr>\n"; } } } else { echo "<tr>\n<td colspan='5' class='tbl1'>" . $locale['407'] . "</td>\n</tr>\n"; } echo "</table><!--sub_forum_idx_table-->\n<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n"; echo "<td class='forum'><br />\n"; echo "<img src='" . get_image("foldernew") . "' alt='" . $locale['560'] . "' style='vertical-align:middle;' /> - " . $locale['409'] . "<br />\n"; echo "<img src='" . get_image("folder") . "' alt='" . $locale['561'] . "' style='vertical-align:middle;' /> - " . $locale['410'] . "\n"; echo "</td><td align='right' valign='bottom' class='forum'>\n"; echo "<form name='searchform' method='get' action='" . BASEDIR . "search.php?stype=forums'>\n"; echo "<input type='hidden' name='stype' value='forums' />\n"; echo "<input type='text' name='stext' class='textbox' style='width:150px' />\n"; echo "<input type='submit' name='search' value='" . $locale['550'] . "' class='button' />\n";
} $result = dbquery("SELECT tp.forum_id, tp.thread_id, tp.post_id, tp.post_author, tp.post_alias, IF(tp.post_datestamp>tp.post_edittime, tp.post_datestamp, tp.post_edittime) AS post_timestamp,\n\t\ttf.forum_name, tf.forum_access, tt.thread_subject, tu.user_id, tu.user_name, tu.user_status, tu.user_aliases\n\t\tFROM " . DB_POSTS . " tp\n\t\tLEFT JOIN " . DB_FORUMS . " tf ON tp.forum_id = tf.forum_id\n\t\tLEFT JOIN " . DB_THREADS . " tt ON tp.thread_id = tt.thread_id\n\t\tLEFT JOIN " . DB_USERS . " tu ON tp.post_author = tu.user_id\n\t\tWHERE " . groupaccess('tf.forum_access') . " AND tp.post_hidden='0' AND tt.thread_hidden='0' AND (tp.post_datestamp > '" . $lastvisited . "' OR tp.post_edittime > '" . $lastvisited . "')\n\t\tGROUP BY tp.thread_id\n\t\tORDER BY post_timestamp DESC LIMIT " . $_GET['rowstart'] . ",20"); $i = 0; echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'><strong>" . $locale['global_048'] . "</strong></td>\n"; echo "<td class='tbl2'><strong>" . $locale['global_044'] . "</strong></td>\n"; echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_050'] . "</strong></td>\n"; echo "</tr>\n"; $threads = dbrows($result); while ($data = dbarray($result)) { if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; } echo "<tr>\n"; echo "<td width='1%' class='" . $row_color . "' style='white-space:nowrap'>" . $data['forum_name'] . "</td>\n"; echo "<td class='" . $row_color . "'><a href='" . BASEDIR . "forum/viewthread.php?thread_id=" . $data['thread_id'] . "&pid=" . $data['post_id'] . "#post_" . $data['post_id'] . "'>" . $data['thread_subject'] . "</a></td>\n"; echo "<td width='1%' class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . alias2($data['post_alias'], alias1($data['user_aliases']), $data['post_author'], $data['user_name'], $data['user_status']) . "<br />\n" . showdate("forumdate", $data['post_timestamp']) . "</td>\n"; echo "</tr>\n"; $i++; } echo "<tr>\n<td align='center' colspan='4' class='tbl1'>" . sprintf($locale['global_055'], $rows, $threads) . "</td>\n</tr>\n</table>\n"; } else { echo "<div style='text-align:center'><br />" . sprintf($locale['global_055'], 0, 0) . "<br /><br /></div>\n"; } closetable(); if ($threads > 20) { echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav($_GET['rowstart'], 20, $threads, 3) . "\n</div>\n"; } require_once THEMES . "templates/footer.php";
opentable($locale['global_056']); $result = dbquery("SELECT tn.thread_id FROM " . DB_THREAD_NOTIFY . " tn\n\tINNER JOIN " . DB_THREADS . " tt ON tn.thread_id = tt.thread_id\n\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\n\tWHERE tn.notify_user="******" AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'"); $rows = dbrows($result); if ($rows) { $result = dbquery("\n\t\tSELECT tf.forum_access, tn.thread_id, tn.notify_datestamp, tn.notify_user,\n\t\ttt.thread_subject, tt.forum_id, tt.thread_lastpost, tt.thread_lastuser, tt.thread_postcount, tt.thread_lastpost_alias, tt.thread_firstpost_alias,\n\t\ttu.user_id AS user_id1, tu.user_name AS user_name1, tu.user_status AS user_status1, tu.user_aliases AS user_aliases1,\n\t\ttu2.user_id AS user_id2, tu2.user_name AS user_name2, tu2.user_status AS user_status2, tu2.user_aliases AS user_aliases2\n\t\tFROM " . DB_THREAD_NOTIFY . " tn\n\t\tINNER JOIN " . DB_THREADS . " tt ON tn.thread_id = tt.thread_id\n\t\tINNER JOIN " . DB_FORUMS . " tf ON tt.forum_id = tf.forum_id\n\t\tLEFT JOIN " . DB_USERS . " tu ON tt.thread_author = tu.user_id\n\t\tLEFT JOIN " . DB_USERS . " tu2 ON tt.thread_lastuser = tu2.user_id\n\t\tINNER JOIN " . DB_POSTS . " tp ON tt.thread_id = tp.thread_id\n\t\tWHERE tn.notify_user="******" AND " . groupaccess('forum_access') . " AND tt.thread_hidden='0'\n\t\tGROUP BY tn.thread_id\n\t\tORDER BY tn.notify_datestamp DESC\n\t\tLIMIT " . $_GET['rowstart'] . ",10\n\t"); echo "<table class='tbl-border' cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n"; echo "<td class='tbl2'><strong>" . $locale['global_044'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_050'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_047'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_046'] . "</strong></td>\n"; echo "<td class='tbl2' style='text-align:center;white-space:nowrap'><strong>" . $locale['global_057'] . "</strong></td>\n"; echo "</tr>\n"; $i = 0; while ($data = dbarray($result)) { $row_color = $i % 2 == 0 ? "tbl1" : "tbl2"; echo "<tr>\n<td class='" . $row_color . "'><a href='" . FORUM . "viewthread.php?thread_id=" . $data['thread_id'] . "'>" . $data['thread_subject'] . "</a></td>\n"; echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . alias2($data['thread_firstpost_alias'], alias1($data['user_aliases1']), $data['user_id1'], $data['user_name1'], $data['user_status1']) . "</td>\n"; echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . alias2($data['thread_lastpost_alias'], alias1($data['user_aliases2']), $data['user_id2'], $data['user_name2'], $data['user_status2']) . "<br />" . showdate("forumdate", $data['thread_lastpost']) . "</td>\n"; echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'>" . ($data['thread_postcount'] - 1) . "</td>\n"; echo "<td class='" . $row_color . "' style='text-align:center;white-space:nowrap'><a href='" . FUSION_SELF . "?delete=" . $data['thread_id'] . "' onclick=\"return confirm('" . $locale['global_060'] . "');\">" . $locale['global_058'] . "</a></td>\n"; echo "</tr>\n"; $i++; } echo "</table>\n"; closetable(); echo "<div align='center' style='margin-top:5px;'>" . makePageNav($_GET['rowstart'], 10, $rows, 3, FUSION_SELF . "?") . "</div>\n"; } else { echo "<div style='text-align:center;'>" . $locale['global_059'] . "</div>\n"; closetable(); } require_once THEMES . "templates/footer.php";
} } } if (!$res) { redirect("index.php"); } } elseif (isset($_GET['type']) && $_GET['type'] == "F" && (isset($_GET['thread']) && isnum($_GET['thread'])) && (isset($_GET['post']) && isnum($_GET['post'])) && (isset($_GET['nr']) && isnum($_GET['nr']))) { $result = dbquery("SELECT fp.post_message, fp.post_datestamp, fp.post_edittime, fp.post_author as post_author, fp.post_edituser, fp.post_alias, fp.post_replynum,\n\t\tfu.user_name AS user_name, fu.user_status AS user_status, fu.user_aliases,\n\t\tft.thread_subject, ff.forum_access\n\t\tFROM " . DB_THREADS . " ft\n\t\tINNER JOIN " . DB_POSTS . " fp ON ft.thread_id = fp.thread_id\n\t\tINNER JOIN " . DB_FORUMS . " ff ON ff.forum_id = ft.forum_id\n\t\tINNER JOIN " . DB_USERS . " fu ON fu.user_id = fp.post_author\n\t\tWHERE ft.thread_id=" . $_GET['thread'] . " AND fp.post_id = " . $_GET['post']); $res = false; if (dbrows($result)) { $data = dbarray($result); if (checkgroup($data['forum_access'])) { $res = true; echo $locale['500'] . " <strong>" . $settings['sitename'] . " :: " . $data['thread_subject'] . "</strong><hr /><br />\n"; echo "<div style='margin-left:20px'>\n"; echo "<div style='float:left'>" . $locale['501'] . alias2($data['post_alias'], alias1($data['user_aliases']), $data['post_author'], $data['user_name'], $data['user_status']) . $locale['502'] . showdate("forumdate", $data['post_datestamp']) . "</div><div style='float:right'>#" . $data['post_replynum'] . "</div><div style='float:none;clear:both'></div><hr />\n"; echo nl2br(parseubb(parsesmileys($data['post_message']))); if ($data['edit_name'] != "") { echo "<div style='margin-left:20px'>\n<hr />\n"; echo $locale['503'] . ($data['post_edituser'] == $data['post_author'] ? 'indlæggets forfatter' : 'en moderator') . $locale['502'] . showdate("forumdate", $data['post_edittime']); echo "</div>\n"; } echo "</div>\n"; echo "<br />\n"; } } if (!$res) { redirect("index.php"); } } elseif (isset($_GET['type']) && $_GET['type'] == "T" && $settings['enable_terms'] == 1) { echo "<strong>" . $settings['sitename'] . " " . $locale['600'] . "</strong><br />\n";
$i_files++; } } } else { $a_files = $locale['507b']; } if ($a_files) { echo "<div class='emulated-fieldset'>\n"; echo "<span class='emulated-legend'>" . alias2($data['post_alias'], $data['user_aliases'], $data['user_id'], $data['user_name'], $data['user_status']) . $locale['506'] . ($i_files > 1 ? $locale['506d'] : $locale['506c']) . "</span>\n"; echo "<div class='attachments-list'>" . $a_files . "</div>\n"; echo "</div>\n"; } if ($a_images) { $colorbox_rel[] = $data['post_id']; echo "<div class='emulated-fieldset'>\n"; echo "<span class='emulated-legend'>" . alias2($data['post_alias'], $data['user_aliases'], $data['user_id'], $data['user_name'], $data['user_status']) . $locale['506'] . ($i_images > 1 ? $locale['506b'] : $locale['506a']) . "</span>\n"; echo "<div class='attachments-list'>" . $a_images . "</div>\n"; echo "</div>\n"; } } if ($data['post_edittime'] != "0") { echo "\n<hr />\n<span class='small'>" . $locale['508'] . ($data['post_edituser'] == $data['post_author'] ? 'indlæggets forfatter' : 'en moderator') . $locale['509'] . showdate("forumdate", $data['post_edittime']) . "</span>\n"; if ($data['post_editreason'] != "" && iMEMBER) { $edit_reason = true; echo "<br /><div class='edit_reason'><a id='reason_pid_" . $data['post_id'] . "' rel='" . $data['post_id'] . "' class='reason_button small' href='#reason_div_pid_" . $data['post_id'] . "'>"; echo "<strong>" . $locale['508a'] . "</strong>"; echo "</a>\n"; echo "<div id='reason_div_pid_" . $data['post_id'] . "' class='reason_div small'>" . $data['post_editreason'] . "</div></div>\n"; } } echo "<!--sub_forum_post--></td>\n</tr>\n";
echo "<div class='tbl2 forum_breadcrumbs' style='margin-bottom:5px'><a href='index.php'>" . $settings['sitename'] . "</a> » " . $caption . "</div>\n"; if ($fdata['forum_poll'] && checkgroup($fdata['forum_poll'])) { if (isset($poll_title) && $poll_title && (isset($poll_opts) && is_array($poll_opts))) { echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border' style='margin-bottom:5px'>\n<tr>\n"; echo "<td align='center' class='tbl2'><strong>" . $poll_title . "</strong></td>\n</tr>\n<tr>\n<td class='tbl1'>\n"; echo "<table align='center' cellpadding='0' cellspacing='0'>\n"; foreach ($poll_opts as $poll_option) { echo "<tr>\n<td class='tbl1'><input type='radio' name='poll_option' value='{$i}' style='vertical-align:middle;' /> " . $poll_option . "</td>\n</tr>\n"; $i++; } echo "</table>\n</td>\n</tr>\n</table>\n"; } } echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border forum_thread_table'>\n<tr>\n"; echo "<td colspan='2' class='tbl2'><strong>" . $subject . "</strong></td>\n</tr>\n"; echo "<tr>\n<td class='tbl2 forum_thread_user_name' style='width:140px;'>" . alias2($post_alias_preview, array('Dit alias1', 'Dit alias2', 'Dit alias3'), $userdata['user_id'], $userdata['user_name'], $userdata['user_status']) . "</td>\n"; echo "<td class='tbl2 forum_thread_post_date'>" . $locale['426'] . showdate("forumdate", time()) . "</td>\n"; echo "</tr>\n<tr>\n<td valign='top' width='140' class='tbl2 forum_thread_user_info'>\n"; echo "<br /></td>\n<td valign='top' class='tbl1 forum_thread_user_post'>" . $previewmessage . "</td>\n"; echo "</tr>\n</table>\n"; closetable(); } } if (isset($_POST['postnewthread'])) { $subject = trim(stripinput(censorwords($_POST['subject']))); $message = trim(stripinput(censorwords($_POST['message']))); $post_alias = isset($_POST['post_alias']) ? preg_match('/^[0-2]$/', $_POST['post_alias']) ? $_POST['post_alias'] : -1 : -1; $flood = false; $error = 0; $sticky_thread = isset($_POST['sticky_thread']) && (iMOD || iSUPERADMIN) ? 1 : 0; $lock_thread = isset($_POST['lock_thread']) && (iMOD || iSUPERADMIN) ? 1 : 0;
$ctr2++; } $threadsubject .= "<br />(" . $locale['455'] . trim($pages) . ")"; } echo "<td width='100%' class='tbl1'>"; if (iMOD) { echo "<input type='checkbox' name='check_mark[]' value='" . $tdata['thread_id'] . "' />\n"; } if ($tdata['thread_sticky'] == 1) { echo "<img src='" . get_image("stickythread") . "' alt='" . $locale['474'] . "' style='vertical-align:middle;' />\n"; } echo $threadsubject . "</td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'>" . alias2($tdata['thread_firstpost_alias'], alias1($tdata['aliases_author']), $tdata['thread_author'], $tdata['user_author'], $tdata['status_author']) . "</td>\n"; echo "<td align='center' width='1%' class='tbl1' style='white-space:nowrap'>" . ($tdata['thread_postcount'] - 1) . "</td>\n"; echo "<td width='1%' class='tbl2' style='white-space:nowrap'>" . showdate("forumdate", $tdata['thread_lastpost']) . "<br />\n"; echo "<span class='small'>" . $locale['406'] . alias2($tdata['thread_lastpost_alias'], alias1($tdata['aliases_lastuser']), $tdata['thread_lastuser'], $tdata['user_lastuser'], $tdata['status_lastuser']) . "</span></td>\n"; echo "</tr>\n"; } echo "</table><!--sub_forum_table-->\n"; } else { if (!$rows) { echo "<tr>\n<td colspan='6' class='tbl1' style='text-align:center'>" . $locale['456'] . "</td>\n</tr>\n</table><!--sub_forum_table-->\n"; } else { echo "</table><!--sub_forum_table-->\n"; } } if (iMOD) { if ($rows) { echo "<table cellspacing='0' cellpadding='0' width='100%'>\n<tr>\n<td style='padding-top:5px'>"; echo "<a href='#' onclick=\"javascript:setChecked('mod_form','check_mark[]',1);return false;\">" . $locale['460'] . "</a> ::\n"; echo "<a href='#' onclick=\"javascript:setChecked('mod_form','check_mark[]',0);return false;\">" . $locale['461'] . "</a></td>\n";