blob: ec71cde5400ee8183a08888f80c8132c2646bdc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
?>
|