require_once('includes/utils.php');
require_once('includes/html-templating.php');
require_once('includes/navbar.php');
+
+if (function_exists('pre_html')) pre_html();
?>
<!DOCTYPE html>
<html>
return empty($errors) ? $record['id'] : false;
}
+function pre_html() {
+ session_start();
+}
+
function page_title() {
return 'Login';
}
$uid = validate_login($errors, $_POST);
if ($uid) {
esc('Login successful!.');
- die();
+ $_SESSION['user'] = $uid;
+ return;
}
$params['email_address'] = $_POST['email_address'];
}?>