<commit_before><!DOCTYPE html>
  <?php
    if (!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS']) {
      $url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
      header('Location: ' . $url);
    }
?>

<html>
	<head>
	<meta charset="UTF-8">
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
		<style>
		#content{
			width: 100%;
			text-align: center;
		}
		</style>
		 <link href="header.css" rel="stylesheet">
	</head>
	<body>
		<div id="header">
		<div id="title">
		<h1>Welcome to the Mizzou Item Management System</h1>
		</div>
			
		</div>

		<div id="content">
			<h1>Login</h1>
			<form method="POST" action="verifylogin.php" id="login_form" >
			<label>Username:</label>
			<input id="username" size="30" name="username" type="text"><commit_msg>If user is logged in, go to checkout<commit_after>  <?php
	if (!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS']) {
		$url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
		header('Location: ' . $url);
	}
    
	session_start();
	
	if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) { // if user is logged in
	    header("Location: /checkout.php"); // go to checkout page
	}
?>
<!DOCTYPE html>
<html>
	<head>
	<meta charset="UTF-8">
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
		<style>
		#content{
			width: 100%;
			text-align: center;
		}
		</style>
		 <link href="header.css" rel="stylesheet">
	</head>
	<body>
		<div id="header">
		<div id="title">
		<h1>Welcome to the Mizzou Item Management System</h1>
		</div>
			
		</div>

		<div id="content">
			<h1>Login</h1>
			<form method="POST" action="verifylogin.php" id="login_form" >
			<label>Username:</label>
			<input id="username" size="30" name="username" type="text">
{'fraction_non_alphanumeric': 0.22001105583195135, 'fraction_numerical': 0.015478164731896076, 'mean_word_length': 3.891891891891892, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 4, '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': '7091480', 'n_tokens_mistral': 755, 'n_tokens_neox': 670, 'n_words': 131}