<commit_before><?php
if(basename($_SERVER["PHP_SELF"]) == "header.php"){
    die("403 - Access Forbidden");
}
if(isset($_GET['page'])){
	$admin = $_GET['page'];
}else{
	$admin = "";
}
$settings = array("properties", "voteconfig", "nxpacks", "bannedmaps", "theme", "banner", "background");
$content = array("homeconfig", "mannews", "manevent", "pages");
$users = array("manageaccounts", "ticket", "banned");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $sitetitle.$pb; ?></title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="<?php echo $siteurl; ?>assets/css/<?php echo $theme; ?>.min.css" rel="stylesheet" type="text/css" id="theme"/>
<link href="<?php echo $siteurl; ?>assets/css/addon.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $siteurl; ?>assets/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
  min-height: 200px;
  padding-top: 90px;
}        
.nav > li > a { color: #787878 }  
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $siteurl; ?>assets/js/bootstrap.js"></script>
<script type="text/javascript" src="<?php echo $siteurl; ?>assets/js/login.js"></script>
<script type='text/javascript'>
$(document).ready(function() {
	$('[data-toggle=collapse]').click(function(){
		$(this).find("i").toggleClass("fa-chevron-right fa-chevron-down");
	});
 });
function goBack() {window.history.back()}
</script>
</head>

<body>
<nav class="<?php echo getNav(); ?> navbar-fixed-top" role="navigation" id="navbar">
	<div class="navbar-header">
		<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		</button>
		<a class="navbar-brand" href="#"><?php echo $servername; ?></a>
	</div>	
	<div class="navbar-collapse collapse">
		<ul class="nav navbar-nav">
              <li><a href="?base=main">Home</a></li>
			<?php
				if(!isset($_SESSION['id'])){
					echo "<li><a href=\"?base=main&amp;page=register\">Register</a></li>";
				}
			?>
              <li><a href="?base=main&amp;page=download">Download</a></li>
			  <li><a href="?base=main&amp;page=rankings">Rankings</a></li>
			  <li><a href="?base=main&amp;page=vote">Vote</a></li>
			  <li><a href="<?php echo $forumurl; ?>">Forums</a></li>
			<?php
			$getpages = $mysqli->query("SELECT * from ".$prefix."pages WHERE visible = 1");
			while ($fetchpages = $getpages->fetch_assoc()){ 
				echo "<li><a href=\"?base=main&amp;page=".$fetchpages['slug']."\">" . $fetchpages['title'] . "</a>";
			}
			?>
			
            </ul>
		<?php	
			if(isset($_SESSION['id'])){
			$name = $_SESSION['name'];
		?>
			<ul class="nav navbar-nav navbar-right" style="margin-right: 20px;">
				<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $name; ?><b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="?cype=main&amp;page=members&amp;name=<?php echo $_SESSION['pname'] ?>">Profile</a></li>
						<li><a href="?cype=ucp&page=mail&s=3"><?php mailStats(3)?> Unread Mail</a></li>
						<li><a href="?cype=ucp&amp;page=charfix">Character Fix</a></li>
						<li class="divider"></li>
						<li><a href="?cype=misc&amp;script=logout">Log Out</a></li>
					</ul>
				</li>
			</ul>
		<?php } ?>
	</div>
</nav>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-3">
                <!-- Left column -->
                <h2 class="text-left">Panel</h2>
                <hr/>
                <ul class="nav nav-pills nav-stacked">
					<li>
						<a href="#" data-toggle="collapse" data-target="#menu1">
						Site Settings <i class="fa fa-chevron-<?php echo (in_array($admin, $settings)) ? 'down' : 'right'; ?>"></i>
                        </a>
					</li>
					<ul class="nav nav-pills nav-stacked collapse <?php echo (in_array($admin, $settings)) ? 'in' : ''; ?>" id="menu1">
						<li <?php echo ($admin == "properties") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=properties"><i class="fa fa-cogs"></i> Site Configuration</a></li>
						<li <?php echo ($admin == "voteconfig") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=voteconfig"><i class="fa fa-arrow-circle-o-up"></i> Vote Configuration</a></li>
						<li <?php echo ($admin == "nxpacks") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=nxpacks"><i class="fa fa-shopping-cart"></i> NX Packs</a></li>
						<li <?php echo ($admin == "bannedmaps") ? 'class="active"' : ''; ?>><a href="?base=admin&page=bannedmaps"><i class="fa fa-ban"></i> Jailed Maps</a></li>
						<li <?php echo ($admin == "theme") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=theme"><i class="fa fa-magic"></i> Theme</a></li>
						<li <?php echo ($admin == "banner") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=banner"><i class="fa fa-eye"></i> Banner</a></li>
						<li <?php echo ($admin == "background") ? 'class = "active"' : ''; ?>><a href="?base=admin&amp;page=background"><i class="fa fa-eye"></i> Background</a></li>
					</ul>
					<li>
						<a href="#" data-toggle="collapse" data-target="#menu2"><commit_msg>spruce up sidebar icons (banner, background)<commit_after><?php
if(basename($_SERVER["PHP_SELF"]) == "header.php"){
    die("403 - Access Forbidden");
}
if(isset($_GET['page'])){
	$admin = $_GET['page'];
}else{
	$admin = "";
}
$settings = array("properties", "voteconfig", "nxpacks", "bannedmaps", "theme", "banner", "background");
$content = array("homeconfig", "mannews", "manevent", "pages");
$users = array("manageaccounts", "ticket", "banned");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $sitetitle.$pb; ?></title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="<?php echo $siteurl; ?>assets/css/<?php echo $theme; ?>.min.css" rel="stylesheet" type="text/css" id="theme"/>
<link href="<?php echo $siteurl; ?>assets/css/addon.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $siteurl; ?>assets/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
  min-height: 200px;
  padding-top: 90px;
}        
.nav > li > a { color: #787878 }  
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $siteurl; ?>assets/js/bootstrap.js"></script>
<script type="text/javascript" src="<?php echo $siteurl; ?>assets/js/login.js"></script>
<script type='text/javascript'>
$(document).ready(function() {
	$('[data-toggle=collapse]').click(function(){
		$(this).find("i").toggleClass("fa-chevron-right fa-chevron-down");
	});
 });
function goBack() {window.history.back()}
</script>
</head>

<body>
<nav class="<?php echo getNav(); ?> navbar-fixed-top" role="navigation" id="navbar">
	<div class="navbar-header">
		<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		</button>
		<a class="navbar-brand" href="#"><?php echo $servername; ?></a>
	</div>	
	<div class="navbar-collapse collapse">
		<ul class="nav navbar-nav">
              <li><a href="?base=main">Home</a></li>
			<?php
				if(!isset($_SESSION['id'])){
					echo "<li><a href=\"?base=main&amp;page=register\">Register</a></li>";
				}
			?>
              <li><a href="?base=main&amp;page=download">Download</a></li>
			  <li><a href="?base=main&amp;page=rankings">Rankings</a></li>
			  <li><a href="?base=main&amp;page=vote">Vote</a></li>
			  <li><a href="<?php echo $forumurl; ?>">Forums</a></li>
			<?php
			$getpages = $mysqli->query("SELECT * from ".$prefix."pages WHERE visible = 1");
			while ($fetchpages = $getpages->fetch_assoc()){ 
				echo "<li><a href=\"?base=main&amp;page=".$fetchpages['slug']."\">" . $fetchpages['title'] . "</a>";
			}
			?>
			
            </ul>
		<?php	
			if(isset($_SESSION['id'])){
			$name = $_SESSION['name'];
		?>
			<ul class="nav navbar-nav navbar-right" style="margin-right: 20px;">
				<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $name; ?><b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="?cype=main&amp;page=members&amp;name=<?php echo $_SESSION['pname'] ?>">Profile</a></li>
						<li><a href="?cype=ucp&page=mail&s=3"><?php mailStats(3)?> Unread Mail</a></li>
						<li><a href="?cype=ucp&amp;page=charfix">Character Fix</a></li>
						<li class="divider"></li>
						<li><a href="?cype=misc&amp;script=logout">Log Out</a></li>
					</ul>
				</li>
			</ul>
		<?php } ?>
	</div>
</nav>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-3">
                <!-- Left column -->
                <h2 class="text-left">Panel</h2>
                <hr/>
                <ul class="nav nav-pills nav-stacked">
					<li>
						<a href="#" data-toggle="collapse" data-target="#menu1">
						Site Settings <i class="fa fa-chevron-<?php echo (in_array($admin, $settings)) ? 'down' : 'right'; ?>"></i>
                        </a>
					</li>
					<ul class="nav nav-pills nav-stacked collapse <?php echo (in_array($admin, $settings)) ? 'in' : ''; ?>" id="menu1">
						<li <?php echo ($admin == "properties") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=properties"><i class="fa fa-cogs"></i> Site Configuration</a></li>
						<li <?php echo ($admin == "voteconfig") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=voteconfig"><i class="fa fa-arrow-circle-o-up"></i> Vote Configuration</a></li>
						<li <?php echo ($admin == "nxpacks") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=nxpacks"><i class="fa fa-shopping-cart"></i> NX Packs</a></li>
						<li <?php echo ($admin == "bannedmaps") ? 'class="active"' : ''; ?>><a href="?base=admin&page=bannedmaps"><i class="fa fa-ban"></i> Jailed Maps</a></li>
						<li <?php echo ($admin == "theme") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=theme"><i class="fa fa-magic"></i> Theme</a></li>
						<li <?php echo ($admin == "banner") ? 'class="active"' : ''; ?>><a href="?base=admin&amp;page=banner"><i class="fa fa-flag"></i> Banner</a></li>
						<li <?php echo ($admin == "background") ? 'class = "active"' : ''; ?>><a href="?base=admin&amp;page=background"><i class="fa fa-object-ungroup"></i> Background</a></li>
					</ul>
					<li>
						<a href="#" data-toggle="collapse" data-target="#menu2">
{'fraction_non_alphanumeric': 0.25681293302540414, 'fraction_numerical': 0.0057274826789838335, 'mean_word_length': 4.172479694218825, 'pattern_counts': {'":': 0, '<': 371, '<?xml version=': 0, '>': 379, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6796033', 'n_tokens_mistral': 4262, 'n_tokens_neox': 3845, 'n_words': 722}