<?php
	session_start();
	include 'assets/classes/class.database.php';
	include 'assets/constants.php';
	include 'assets/connect.php';

	$page = isset($_GET['page']) ? $_GET['page'] : 1;
	$skill = isset($_GET['skill']) ? $_GET['skill'] : "Overall";

	if (!is_numeric($page) || $page < 1)
		$page = 1;
	if (!isValidSkill($skill))
		$skill = "Overall";
?>
<!DOCTYPE html>
<html>
	<head>
		<title>Anubis Store</title>
		<meta charset="utf-8" />
		<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="assets/css/font-awesome.css" />
		<link rel="stylesheet" href="assets/css/style.css" />
	</head>
<body>
	
	<?php include 'assets/temps/global/navbar.php';?>
	
	<div class="container body-wrapper">
		<div class="col-xs-12 hs-header">
			<h1><i class="fa fa-bar-chart"></i> Anubis Highscores</h1>
			<p style="font-size:15px">Overall Highscores</p>
		</div>
		<div class="col-xs-9">
			<?php
				if (isset($_GET['user'])) {
					include 'assets/temps/highscores/lookup.php';
				} else if (isset($_GET['player']) && isset($_GET['other'])) {
					include 'assets/temps/highscores/compare.php';
				} else {
					include 'assets/temps/highscores/main_table.php';
				}
			?>
		</div>
		<div class="col-xs-3">
			<?php include 'assets/temps/highscores/sidebar.php'; ?>
		</div>
	</div>
	
	<div class="footer_copyright">
		<p id="copyright">Copyright &copy; 2025 Anubis.</p>
	</div>

</body>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/smoothscroll.js"></script>
<script src="assets/js/custom.js"></script>
</html>