<commit_before><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: forum/index.php
| Author: <NAME> (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 ($settings['site_seo'] == "1" ? "" : "../../")."maincore.php";
require_once file_exists('maincore.php') ? 'maincore.php' : __DIR__."/../../maincore.php";
if (!db_exists(DB_FORUMS)) {
	$_GET['code'] = 404;
	require_once BASEDIR.'error.php';
	exit;
}
require_once THEMES."templates/header.php";
include INFUSIONS."forum/locale/".LOCALESET."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";
$forum = new PHPFusion\Forums\Forum;
$forum->set_ForumInfo();
$info = $forum->getForumInfo();
render_forum($info);
require_once THEMES."templates/footer.php";<commit_msg>Forum WIP - clean up. Done for today. Resume in 16 hrs.<commit_after><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: forum/index.php
| Author: <NAME> (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)) {
	$_GET['code'] = 404;
	require_once BASEDIR.'error.php';
	exit;
}
require_once THEMES."templates/header.php";
include INFUSIONS."forum/locale/".LOCALESET."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";
$forum = new PHPFusion\Forums\Forum;
$forum->set_ForumInfo();
$info = $forum->getForumInfo();
render_forum($info);
require_once THEMES."templates/footer.php";
{'fraction_non_alphanumeric': 0.2754491017964072, 'fraction_numerical': 0.0029940119760479044, 'mean_word_length': 2.480324074074074, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5254079', 'n_tokens_mistral': 901, 'n_tokens_neox': 847, 'n_words': 213}