<commit_before><?php
	//require_once "uD_config.php";


	session_start();
	//require_once "uD_config.php";
	require_once "adminAct.php";
	$usehttps=USEHTTPS;
	if($usehttps && isset($_SERVER["HTTPS"])){
		header('Strict-Transport-Security: max-age=500');
	} elseif ($usehttps && !isset($_SERVER['HTTPS'])){//make sure to page uses https
	   header("HTTP/1.1 301 Moved Permanently");
	   header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
	   exit();
	}

	
	if(!isset($_SESSION['uID'])){//if you aren't logged in go to login page
		$_SESSION['origin']=$_SERVER['SCRIPT_NAME'];// store current page for redirect back later
		/* Redirect browser */
		header("Location: ./loginForm.php");
		exit;	
	}
	
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<title>uDuck Control Panel</title>
	<link  rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id=wrapper>
	<div id=headerdiv >
		<img src="img/uDuckLogo.png" alt="a" height="100" width="100" id="headerlogo" />
		<span>It may be ugly, but if it works...</span><br>
		<H1 id="headertitle">uDuck Content Management System<br></H1>
		<div id="headeruserbox" class='sans fright'>
			<span >Hello, <?php echo $_SESSION['uName']; ?></span><br>
			<a href="actions/logout.php" id="headerlogout" >logout</a>
		</div>
	</div><!--end header div-->
	<div id=sidebardiv>
		<ul  class='sans'>
			<li><a href="test.php">Post</a>
				<ul><li>add new post</li>
					<li>edit/delete post</li>
				</ul>
			</li>
			<li><a href="test.php">Group</a>
				<ul><li>add new group</li>
					<li>edit/delete group</li>
				</ul>
			</li>
			<li><a href="test.php">Category</a>
				<ul><li>add new category</li>
					<li>edit/delete category</li>
				</ul>
			</li>
		</ul>
	</div>
	<commit_msg>whoops forgot to add this as well<commit_after><?php
	//require_once "uD_config.php";


	session_start();
	//require_once "uD_config.php";
	require_once "adminAct.php";
	$usehttps=USEHTTPS;
	if($usehttps && isset($_SERVER["HTTPS"])){
		header('Strict-Transport-Security: max-age=500');
	} elseif ($usehttps && !isset($_SERVER['HTTPS'])){//make sure to page uses https
	   header("HTTP/1.1 301 Moved Permanently");
	   header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]);
	   exit();
	}

	
	if(!isset($_SESSION['uID'])){//if you aren't logged in go to login page
		$_SESSION['origin']=$_SERVER['SCRIPT_NAME'];// store current page for redirect back later
		/* Redirect browser */
		header("Location: ./loginForm.php");
		exit;	
	}
	
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<title>uDuck Control Panel</title>
	<link  rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id=wrapper>
	<div id=headerdiv >
		<img src="img/uDuckLogo.png" alt="a" height="100" width="100" id="headerlogo" />
		<span>It may be ugly, but if it works...</span><br>
		<H1 id="headertitle">uDuck Content Management System<br></H1>
		<div id="headeruserbox" class='sans fright'>
			<span >Hello, <?php echo $_SESSION['uName']; ?></span><br>
			<a href="actions/logout.php" id="headerlogout" >logout</a>
		</div>
	</div><!--end header div-->
	<div id=sidebardiv>
		<ul  class='sans'>
			<li><a href="postPage.php">Post</a>
				<ul><li><a href="postForm.php">add new post</a></li>
					<li>edit/delete post</li>
				</ul>
			</li>
			<li><a href="test.php">Group</a>
				<ul><li>add new group</li>
					<li>edit/delete group</li>
				</ul>
			</li>
			<li><a href="test.php">Category</a>
				<ul><li>add new category</li>
					<li>edit/delete category</li>
				</ul>
			</li>
		</ul>
	</div>
	
{'fraction_non_alphanumeric': 0.21564307353346185, 'fraction_numerical': 0.011567061415587993, 'mean_word_length': 4.002754820936639, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '5491636', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1371, 'n_words': 287}