Example #1
0
| Author: Frederick MC Chan (Hien)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once file_exists('maincore.php') ? 'maincore.php' : __DIR__ . "/../../maincore.php";
if (!db_exists(DB_FORUMS)) {
    redirect(BASEDIR . "error.php?code=404");
}
require_once THEMES . "templates/header.php";
if (file_exists(INFUSIONS . "forum/locale/" . LOCALESET . "forum.php")) {
    include INFUSIONS . "forum/locale/" . LOCALESET . "forum.php";
} else {
    include INFUSIONS . "forum/locale/English/forum.php";
}
require_once INFUSIONS . "forum/classes/Forum.php";
require_once INFUSIONS . "forum/classes/Functions.php";
require_once INFUSIONS . "forum/forum_include.php";
include INFUSIONS . "forum/templates/forum_main.php";
include INCLUDES . "infusions_include.php";
$forum_settings = get_settings('forum');
$forum = new PHPFusion\Forums\Forum();
$forum->set_ForumInfo();
$info = $forum->getForumInfo();
render_forum($info);
require_once THEMES . "templates/footer.php";