<commit_before><?php

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: layout.php
| Author: <NAME> (Rimelek)
+--------------------------------------------------------+
| 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).
+--------------------------------------------------------*/
?>
<!DOCTYPE html>
<head>
	<title><?php echo $settings['sitename'] ?></title>
	<meta charset='<?php echo $locale['charset'] ?>' />
	<meta name='description' content='<?php echo $settings['description'] ?>' />
	<meta name='keywords' content='<?php echo $settings['keywords'] ?>' />
	<?php if ($bootstrap_theme_css_src) : ?>
	<meta http-equiv='X-UA-Compatible' content='IE=edge' />
	<meta name='viewport' content='width=device-width, initial-scale=1.0' />
	<link href='<?php echo $bootstrap_theme_css_src ?>' rel='stylesheet' media='screen' />
	<?php endif; ?>
	<!-- Entypo icons -->
	<link href='<?php echo INCLUDES.'font/entypo/entypo.css' ?>' rel='stylesheet' media='screen' />
	<!-- Default CSS styling which applies to all themes but can be overriden -->
	<link href='<?php echo THEMES.'templates/default.css' ?>' rel='stylesheet' type='text/css' media='screen' />
	<!-- Theme CSS -->
	<link href='<?php echo THEME.'styles.css' ?>' rel='stylesheet' type='text/css' media='screen' />
	<?php echo render_favicons(IMAGES);
	if (function_exists("get_head_tags")) {
		echo get_head_tags();
	} ?>
	<script type='text/javascript' src='<?php echo INCLUDES.'jquery/jquery.js' ?>'></script>
	<script type='text/javascript' src='<?php echo INCLUDES.'jscript.js' ?>'></script>
</head>
<body>
	<?php
	render_page();
	
	// Output lines added with add_to_footer()
	echo $fusion_page_footer_tags;
	if ($footerError) : ?>
	<div class='admin-message'><?php echo $footerError ?></div>
	<?php
	endif;
	if (!empty($fusion_jquery_tags)) : ?>
	<script type="text/javascript">
		$(function() {
			<?php echo $fusion_jquery_tags; // Output lines added with add_to_jquery() ?>
		});
	</script>
	<?php endif; ?>
</body>
</html><commit_msg>Remade to Fusion standard, Added head charsets<commit_after><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: layout.php
| Author: <NAME> (Rimelek)
+--------------------------------------------------------+
| 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).
+--------------------------------------------------------*/
header("Content-Type: text/html; charset=".$locale['charset']."");
echo "
<!DOCTYPE html>
<head>
	<title>".$settings['sitename']."</title>
	<meta charset='".$locale['charset']."' />
	<meta name='description' content='".$settings['description']."' />
	<meta name='keywords' content='".$settings['keywords']."' />";
	if ($bootstrap_theme_css_src) {
	echo "<meta http-equiv='X-UA-Compatible' content='IE=edge' />
	  	  <meta name='viewport' content='width=device-width, initial-scale=1.0' />
		  <link href='".$bootstrap_theme_css_src."' rel='stylesheet' media='screen' />";
	 }
	echo "
	<!-- Entypo icons -->
	<link href='".INCLUDES."font/entypo/entypo.css' rel='stylesheet' media='screen' />
	<!-- Default CSS styling which applies to all themes but can be overriden -->
	<link href='".THEMES."templates/default.css' rel='stylesheet' type='text/css' media='screen' />
	<!-- Theme CSS -->
	<link href='".THEME."styles.css' rel='stylesheet' type='text/css' media='screen' />";
	echo render_favicons(IMAGES);
	if (function_exists("get_head_tags")) {
		echo get_head_tags();
	}
	echo "
	<script type='text/javascript' src='".INCLUDES."jquery/jquery.js'></script>
	<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<body>";
	
	render_page();
	// Output lines added with add_to_footer()
	echo $fusion_page_footer_tags;

	if ($footerError) {
		echo "<div class='admin-message'>".$footerError."</div>";
	}

	if (!empty($fusion_jquery_tags)) {
		echo "<script type='text/javascript'>
			$(function() {
				$fusion_jquery_tags; // Output lines added with add_to_jquery()
			});
			</script>";
}
echo "</body></html>";
?>
{'fraction_non_alphanumeric': 0.2613085621970921, 'fraction_numerical': 0.0008077544426494346, 'mean_word_length': 3.0866336633663365, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 0, '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': '5496742', 'n_tokens_mistral': 1550, 'n_tokens_neox': 1482, 'n_words': 377}