Skip to content

Instantly share code, notes, and snippets.

@justinribeiro
Created January 7, 2016 01:11
Show Gist options
  • Save justinribeiro/feb7e5d46c279c426627 to your computer and use it in GitHub Desktop.
Save justinribeiro/feb7e5d46c279c426627 to your computer and use it in GitHub Desktop.
<?php
session_start ();
if (isset ( $_SESSION ['sess_user_id'] ) && isset ( $_SESSION ['sess_username'] )) {
header ( "Location: /home" );
exit ();
}
?>
... Begin HTML ...
<?php include $_SERVER['DOCUMENT_ROOT'] . '/../includes/templates/top_reqs.php'; ?>
... Begin toplevel div ...
<?php include $_SERVER['DOCUMENT_ROOT'] . '/../includes/templates/header.php'; ?>
... Construct the form ...
... End the toplevel div ...
<?php include $_SERVER['DOCUMENT_ROOT'] . '/../includes/templates/footer.php'; ?>
... End displayed content ...
<?php include $_SERVER['DOCUMENT_ROOT'] . '/../includes/templates/bottom_reqs.php'; ?>
<script type="text/javascript">$(document).ready(function() {KIOSK.base.initLogin();});</script>
... End HTML ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment