2015-03-27 02:00:01 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
|
|
|
|
{
|
|
|
|
$username = Sanitize::html($_POST['username']);
|
|
|
|
$password = Sanitize::html($_POST['password']);
|
|
|
|
|
|
|
|
if( $Login->verifyUser($username, $password) )
|
|
|
|
{
|
|
|
|
Redirect::page('admin', 'dashboard');
|
|
|
|
}
|
2015-05-15 00:07:45 +02:00
|
|
|
else
|
|
|
|
{
|
|
|
|
Alert::set('Login failed');
|
|
|
|
}
|
2015-03-27 02:00:01 +01:00
|
|
|
}
|