* Currently no GUI, use DB access to change the row entry * Upgraded Database table `accounts` with upgrade SQL * Updated `admin` field to `is_admin` as boolean * Modified pages, classes, templates to support is_admin and is_locked Addresses #147
14 lines
377 B
PHP
14 lines
377 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' => 'Unable to login: '. $user->getError(), 'TYPE' => 'errormsg');
|
|
}
|
|
$smarty->assign('CONTENT', 'default.tpl');
|
|
?>
|