<a href='<?php echo $_SERVER['PHP_SELF']; ?> ?action=forumview&forid=<?php echo $ovfid; ?> '><b><font color='#3333FF'><?php echo safeChar($ovfname); ?> </font></b></a> </td> <td align='right' class='colhead'><font color='#3333FF'><b>Topics</b></font></td> <td align='right' class='colhead'><font color='#3333FF'><b>Posts</b></font></td> <td align='left' class='colhead'><font color='#3333FF'><b>Last post</b></font></td> </tr><?php show_forums($ovfid, false, $forums, true); } end_table(); if ($use_forum_stats_mod) { forum_stats(); } ?> <p align='center'> <a href='<?php echo $_SERVER['PHP_SELF']; ?> ?action=search'><b><?php echo $language['search']; ?> </b></a> | <a href='<?php
$forums[$a["id"]]["topics"][] = array("id" => $a["subid"], "name" => $a["name"], "new" => $a["last_post"] != $a["last_post_read"] ? 1 : 0); } } if ($INSTALLER09['forums_online'] == 0) { $HTMLOUT .= stdmsg('Warning', 'Forums are currently in maintainance mode'); } $HTMLOUT .= "<div class='navigation'><a href='index.php'>" . $INSTALLER09["site_name"] . "</a>\n <br><span class='active'></span></div> <br />"; $ovf_res = sql_query("SELECT id, name, min_class_view FROM over_forums ORDER BY sort ASC") or sqlerr(__FILE__, __LINE__); while ($ovf_arr = mysqli_fetch_assoc($ovf_res)) { if ($CURUSER['class'] < $ovf_arr["min_class_view"]) { continue; } $ovfid = (int) $ovf_arr["id"]; $ovfname = htmlsafechars($ovf_arr["name"]); $HTMLOUT .= "<div class='panel panel-default'><div class='panel-heading'>\n <span class='nav navbar-nav navbar-right'><label for='checkbox_4' class='text-left'>\n </label></span>"; $HTMLOUT .= " <strong><a href='{$INSTALLER09['baseurl']}/forums.php?action=forumview&forid=" . $ovfid . "'>" . $ovfname . "</a></strong></div>\n <div class='table table-responsive table-bordered table-hover'>"; $HTMLOUT .= show_forums($ovfid, false, $forums, true, true); } $HTMLOUT .= ""; if ($Multi_forum['configs']['use_forum_stats_mod']) { $HTMLOUT .= forum_stats(); } $HTMLOUT .= "<div class='col-sm-12 col-sm-offset-0'>\n <p align='center'>\n\t <a href='{$INSTALLER09['baseurl']}/forums.php?action=search'><b class='btn btn-default btn-sm'> Search Forums </b></a> \n\t <a href='{$INSTALLER09['baseurl']}/forums.php?action=viewunread'><b class='btn btn-default btn-sm'> New Posts </b></a> \n\t <a href='{$INSTALLER09['baseurl']}/forums.php?action=getdaily'><b class='btn btn-default btn-sm'> Todays Posts [Last 24h] </b></a> \n\t <a href='{$INSTALLER09['baseurl']}/forums.php?catchup'><b class='btn btn-default btn-sm'> Mark all as read </b></a></p>\n </div><br /><br />"; echo stdhead("Forum", true, $stdhead) . $HTMLOUT . stdfoot($stdfoot); exit; break; } exit('Deary me \\0/'); ?>
</body></html>'; echo $HTMLOUT; echo $HTMLOUT; exit; } $ovfid = isset($_GET["forid"]) ? (int) $_GET["forid"] : 0; if (!is_valid_id($ovfid)) { stderr('Error', 'Invalid ID!'); } $res = sql_query("SELECT name FROM over_forums WHERE id=" . sqlesc($ovfid)) or sqlerr(__FILE__, __LINE__); $arr = mysqli_fetch_assoc($res) or stderr('Sorry', 'No forums with that ID!'); sql_query("UPDATE users SET forum_access = " . TIME_NOW . " WHERE id=" . sqlesc($CURUSER['id'])) or sqlerr(__FILE__, __LINE__); if ($INSTALLER09['forums_online'] == 0) { $HTMLOUT .= stdmsg('Warning', 'Forums are currently in maintainance mode'); } // $HTMLOUT .= begin_main_frame(); $HTMLOUT .= "<div class='navigation'>\n\t\t\t\t<a href='index.php'>" . $INSTALLER09["site_name"] . "</a> \n\t\t\t\t>\n\t\t\t\t<a href='forums.php'>Forums</a>\n\t\t\t\t<br><img src='templates/1/pic/carbon/nav_bit.png' alt=''>\n\t\t\t\t<span class='active'>" . htmlsafechars($arr["name"]) . "</span>\n\t\t\t\t</div> <br />"; $HTMLOUT .= begin_main_div(); $HTMLOUT .= begin_head_div(); $HTMLOUT .= begin_head_label("collapse" . $ovfid . ""); $HTMLOUT .= "<img src='templates/1/pic/carbon/collapse.png' alt='[+/-]' title='[+/-]' />"; $HTMLOUT .= " <strong>" . htmlsafechars($arr["name"]) . "</strong><span class='desc'></span>"; $HTMLOUT .= end_head_label(); $HTMLOUT .= end_div(); $HTMLOUT .= begin_body_div("collapse" . $ovfid . ""); $HTMLOUT .= "\n\t<table border='0' cellspacing='0' cellpadding='5' class='tborder clear'>\n"; $HTMLOUT .= show_forums($ovfid); $HTMLOUT .= end_table(); // $HTMLOUT .= end_main_frame(); echo stdhead("Forums", true, $stdhead) . $HTMLOUT . stdfoot($stdfoot); exit;
$HTMLOUT .= "<div class='row'><div class='col-sm-12 col-sm-offset-0'>"; $HTMLOUT .= "<div class='navigation'>\n\t\t\t\t<a href='index.php'>" . $INSTALLER09["site_name"] . "</a> \n\t\t\t\t>\n\t\t\t\t<a href='forums.php'>Forums</a>\n\t\t\t\t<br><img src='templates/1/pic/carbon/nav_bit.png' alt=''>\n\t\t\t\t<span class='active'>" . htmlsafechars($arr["forum_name"]) . "</span>\n\t\t\t\t</div> <br />"; if ($INSTALLER09['forums_online'] == 0) { $HTMLOUT .= stdmsg('Warning', 'Forums are currently in maintainance mode'); } if ($subforums > 0) { $HTMLOUT .= begin_main_div(); $HTMLOUT .= begin_head_div(); $HTMLOUT .= begin_head_label("collapse" . $forumid . ""); $HTMLOUT .= "<img src='templates/1/pic/carbon/collapse.png' alt='[+/-]' title='[+/-]' />"; $HTMLOUT .= " <strong>" . htmlsafechars($arr["forum_name"]) . "</strong><span class='desc'></span>"; $HTMLOUT .= end_head_label(); $HTMLOUT .= end_div(); $HTMLOUT .= begin_body_div("collapse" . $forumid . ""); $HTMLOUT .= "<!--<table border='1' cellspacing='0' cellpadding='5' width='{$Multi_forum['configs']['forum_width']}'>-->\n<br />\n<table border='0' cellspacing='0' cellpadding='5' class='tborder clear'>\n"; $HTMLOUT .= show_forums($forumid, true); $HTMLOUT .= end_table(); } $HTMLOUT .= "<div class='float_left'>"; $HTMLOUT .= $menu1 . $mlb . $menu2 . $mlb . $menu3; $HTMLOUT .= "</div>"; // start new topic $newtopicarr = get_forum_access_levels($forumid) or die; $maypost = $CURUSER['class'] >= $newtopicarr["write"] && $CURUSER['class'] >= $newtopicarr["create"]; if (!$maypost) { $HTMLOUT .= "<div class='float_right'><a class='button new_thread_button'><span><i style='font-size: 14px;' class='fa fa-check-square'></i> No Permissions</span></a></div>"; } else { $HTMLOUT .= "<div class='float_right'><a href='forums.php?action=newtopic&forumid=" . $forumid . "' class='button new_thread_button'><span><i style='font-size: 14px;' class='fa fa-check-square'></i> Start new topic</span></a></div>"; } // start new topic end $HTMLOUT .= "<div class='float_right'> <a href='forums.php?action=viewunread' class='button new_thread_button'><span><i style='font-size: 14px;' class='fa fa-check fa-fw'></i> View Unread</a></div>";