예제 #1
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&gt;\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 .= "&nbsp;&nbsp;<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;
예제 #2
0
파일: view.php 프로젝트: Bigjoos/U-232-V5
$subforums = mysqli_num_rows($r_subforums);
//$HTMLOUT .= begin_main_frame();
$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&gt;\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 .= "&nbsp;&nbsp;<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>";
}