include($_SERVER["DOCUMENT_ROOT"] . "/_code/init.php");
/* and check for login */
if( isset($_POST['action']) ) {
$username = $_POST['username'];
$password = $_POST['password'];
$cli = new Clients;
$cli->username = $username;
$cli->password = $password;
if( $cli->count() ) {
$cli->find(TRUE);
$_SESSION['type'] = 'client';
$_SESSION['id'] = $cli->id;
header("Location: documents.php");
exit;
} else
$msg = "The username or password is incorrect.";
}
if( !isset($_POST['username']) )
$_POST['username'] = '';
?>
OX Urban Properties - Urban Commercial Properties, Scottsdale, AZ
|
 |
|
OX Urban Properties | 7154 East Stetson Drive | No. 300 | Scottsdale, Arizona 85251 | 480.423.1111
© 2010 OX Urban Properties - All rights reserved. |