Exemplo n.º 1
0
<!DOCTYPE html>
<?php 
session_start();
$_SESSION['SESSION_ID'] = -1;
include "php/dbfunctions.php";
if (isset($_POST['control_password']) && isset($_POST['control_username'])) {
    $id = dbhelper::authenticateContentLogin($_POST['control_username'], $_POST['control_password']);
    if ($id > 0) {
        $_SESSION['SESSION_ID'] = $id;
        header('location: php/content_control_dashboard.php');
    } else {
        echo "<script>\n\t\t\t\t\talert('Invalid Credentials. Please make sure that the username and password is correct and try again')\n\t\t\t\t  </script>";
    }
}
?>
<html>
	<head>
		<title>UPark: USLS Parking Content Control</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="css/style.css">
		<script src="js/jquery.js"></script>
		<script src="js/bootstrap.min.js"></script>
	</head>
	<body>
		<div class="container">
			<!--Main Content-->
			<div>
			<ul class="page-content">
				<li>