Пример #1
0
				<a href='<?php 
                                                                                    echo $_SERVER['PHP_SELF'];
                                                                                    ?>
?action=forumview&amp;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 
Пример #2
0
                $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 .= "&nbsp;&nbsp;<strong><a href='{$INSTALLER09['baseurl']}/forums.php?action=forumview&amp;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'>&nbsp;&nbsp;Search Forums&nbsp;&nbsp;</b></a>&nbsp;&nbsp; \n\t  <a href='{$INSTALLER09['baseurl']}/forums.php?action=viewunread'><b class='btn btn-default btn-sm'>&nbsp;&nbsp;New Posts&nbsp;&nbsp;</b></a>&nbsp;&nbsp; \n\t  <a href='{$INSTALLER09['baseurl']}/forums.php?action=getdaily'><b class='btn btn-default btn-sm'>&nbsp;&nbsp;Todays Posts [Last 24h]&nbsp;&nbsp;</b></a>&nbsp;&nbsp; \n\t  <a href='{$INSTALLER09['baseurl']}/forums.php?catchup'><b class='btn btn-default btn-sm'>&nbsp;&nbsp;Mark all as read&nbsp;&nbsp;</b></a></p>\n          </div><br /><br />";
        echo stdhead("Forum", true, $stdhead) . $HTMLOUT . stdfoot($stdfoot);
        exit;
        break;
}
exit('Deary me \\0/');
?>
 
Пример #3
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;
Пример #4
0
$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>";
}
// 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>";