<?php require_once '../includes/prepend.inc.php'; $strError = ""; if ($_GET['menu_id']) { if ($_POST && is_numeric($_POST['user_account_id'])) { require __DATA_CLASSES__ . '/UserAccount.class.php'; $intUserAccountId = $_POST['user_account_id']; $objUserAccount = false; if (QApplication::$TracmorSettings->PortablePinRequired && $_POST['portable_user_pin']) { $strPortableUserPin = $_POST['portable_user_pin']; $objUserAccount = UserAccount::LoadByUserAccountIdPortableUserPin($intUserAccountId, $strPortableUserPin); if (!$objUserAccount) { // authenticate error $strError = "That User ID and PIN did not authenticate. Please try again."; } } else { $strError = "You must enter a PIN. Please try again."; } if (!QApplication::$TracmorSettings->PortablePinRequired) { $objUserAccount = UserAccount::LoadByUserAccountId($intUserAccountId); if (!$objUserAccount) { // authenticate error $strError = "That is not a valid User ID. Please try again."; } } if ($objUserAccount) { $_SESSION['intUserAccountId'] = $objUserAccount->UserAccountId; // Authenticate user and redirect to proper transaction page based on menu_id switch ($_GET['menu_id']) { case 1: