php-mpos/public/include/pages/login.inc.php
2013-05-06 14:11:38 +02:00

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');
?>