diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2008-02-03 23:23:24 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2008-02-03 23:23:24 +0000 |
| commit | d895b852a6e160496ffc760d46d3719a3d62ff86 (patch) | |
| tree | 52230bb04148197e8312e09b5c5273417e7a3be9 /login.php | |
Initial checkin of nutridb.org and basic subversion directory structure
Diffstat (limited to 'login.php')
| -rw-r--r-- | login.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/login.php b/login.php new file mode 100644 index 0000000..ec71cde --- /dev/null +++ b/login.php @@ -0,0 +1,20 @@ +<?php + +# include the main site config where various global variables +# and libraries are included +require("config.php"); + +# pretty simple. check their credentials and then send them back +# to the index page. if the login succeeded then the proper +# session variables will be set and the index page will automatically +# do what is necessary + +if ( isset($_POST['doLogin']) ) { + validateUser($_POST['username'],$_POST['password']); +} + +# send the user back wherever they were when they logged in +header("Location: {$config->_previousUri}"); +exit; + +?> |
