Skip to content

Instantly share code, notes, and snippets.

@ExperimentGarden
Created March 12, 2010 19:19
Show Gist options
  • Save ExperimentGarden/330660 to your computer and use it in GitHub Desktop.
Save ExperimentGarden/330660 to your computer and use it in GitHub Desktop.
<?php
//The purpose of this file is to check for the submission of data to the server via POST.
//If it finds a specific identifying value it will pass control to child code which will handle
//that specific submission.
//Check for registration.
if(isset($_POST['register']))
{
include "logic/logic.register.php";
}
//Check for login.
if(isset($_POST['login']))
{
include "logic/logic.login.php";
}
//Submissions that only registered users can submit.
if(isset($_SESSION['loggedIn']) && $_SESSION['loggedIn']==1)
{
//Check for log out.
if(isset($_POST['logout']))
{
include "logic/logic.logout.php";
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment