* @version 1.0 * @package Asiareservations. */ require_once ('connect.php'); /** * Check here user submits the currency form from Header. */ if (!empty($_POST['selectedCurrencyH'])) { // set the currencyCode in the session. $_SESSION['currencyCode'] = $_POST['selectedCurrencyH']; } /** * Set the Default 'THB' currency when there is no currency in the session. */ if (empty($_SESSION['currencyCode'])) { $_SESSION['currencyCode'] = 'THB'; } require_once ('includes/currency.php'); if ($_GET['action']=="viewHotel") { include ('php/viewHotelRedirect.php'); exit(); } else if($_GET['action']=="logout") { include ('logout.php'); exit(); } /** * Check the booking request send to the API. */ if($_GET['action']=="confirmation") { if ($_SESSION['sendToAPI']) { header("Location: http://www.asiareservations.net"); exit(); } } else { unset($_SESSION['sendToAPI']); } /** * Generate top image randomly. */ $randomBg = str_pad(rand (1, 4), 2, '0', STR_PAD_LEFT); ?>