
if ($login_error) { ?>
| =htmlspecialchars($login_error)?> |
} ?>
require_once ('../inc/customer/includes.php'); $page_title = 'ENTO Customer Login'; if ($session->customer_logged()) { redirect('index.php'); } $login = trimstr(@$_REQUEST['login'], 200); $password = trimstr(@$_REQUEST['password'], 50); $login_error = NULL; if (is_set($login) && is_set($password)) { try { $customer_id = $customer->getId($login, $password); if ($customer_id) { if ($customer->isActive($customer_id)) { $session->log_in_customer($customer_id); redirect('index.php'); } else { throw new Exception(CUSTOMER_ACCOUNT_DISABLED); } } else { throw new Exception(CUSTOMER_LOGIN_ERROR); } } catch (Exception $e) { $login_error = $e->getMessage(); } } header("Location:login.cfm"); // require ('../inc/customer/templates/header.php'); ?>