Created
March 12, 2010 19:19
-
-
Save ExperimentGarden/330660 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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