<commit_before><?php 
session_start();
# Disable Notices

# Is MapleBit installed?
if(!file_exists('assets/config/install/installdone.txt')){
	header("Location: assets/config/install/install.php");
	exit;
} else {
	# Get Database Information
	require_once("assets/config/database.php");

	# Import Essential Files
	require_once("assets/config/properties.php");
	require_once("assets/config/afuncs.php");

	# Define $getbase variable
	$getbase = isset($_GET['base']) ? $_GET['base'] : "";

	switch($getbase){
		case NULL:
			header('Location: ?base=main');
			break;
		case "main":
			$getslug = $mysqli->query("SELECT slug from bit_pages");
			$fetchslug = $getslug->fetch_assoc();
			$slugarray[] = $fetchslug['slug'];
			include("sources/structure/header.php");
			include("sources/public/main.php");
			include("sources/structure/footer.php");
			break;<commit_msg>update to allow more than one custom page<commit_after><?php 
session_start();
# Disable Notices

# Is MapleBit installed?
if(!file_exists('assets/config/install/installdone.txt')){
	header("Location: assets/config/install/install.php");
	exit;
} else {
	# Get Database Information
	require_once("assets/config/database.php");

	# Import Essential Files
	require_once("assets/config/properties.php");
	require_once("assets/config/afuncs.php");

	# Define $getbase variable
	$getbase = isset($_GET['base']) ? $_GET['base'] : "";

	switch($getbase){
		case NULL:
			header('Location: ?base=main');
			break;
		case "main":
			$getslug = $mysqli->query("SELECT slug from bit_pages");
			while($fetchslug = $getslug->fetch_assoc()) {
				$slugarray[] = $fetchslug['slug'];
			}
			include("sources/structure/header.php");
			include("sources/public/main.php");
			include("sources/structure/footer.php");
			break;
{'fraction_non_alphanumeric': 0.17379077615298089, 'fraction_numerical': 0.0, 'mean_word_length': 5.264084507042254, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6011232', 'n_tokens_mistral': 626, 'n_tokens_neox': 587, 'n_words': 102}