14 lines
369 B
PHP
14 lines
369 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY'))
|
|
die('Hacking attempt');
|
|
|
|
if ( $user->checkLogin($_POST['username'],$_POST['password']) ) {
|
|
header('Location: index.php?page=home');
|
|
} else {
|
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Invalid username or password', 'TYPE' => 'errormsg');
|
|
}
|
|
$smarty->assign('CONTENT', 'default.tpl');
|
|
?>
|