array('ClientDateSelector', IBEX_BW_PLUGIN_DIR . '/includes/widgets/accommodation/date-selector'), 'calendar' => array('ClientCalendar', IBEX_BW_PLUGIN_DIR . '/includes/widgets/accommodation/mini-calendar'), 'agent' => array('ClientAgentSelector', IBEX_BW_PLUGIN_DIR . '/includes/widgets/accommodation/date-selector'), ); $objectType = (isset($_GET['type']) && isset($objectTypes[$_GET['type']])) ? $objectTypes[$_GET['type']] : $objectTypes['date']; // Get the css based on the object type $theTemplate = isset($_GET['template']) ? htmlentities($_GET['template']) : 'theme-default'; $css = @file_get_contents($objectType[1] . '/' . preg_replace('/([^a-zA-Z0-9\-])/', '', $theTemplate) . '.css'); $mode = isset($_GET['mode']) ? $_GET['mode'] : null; $layoutFormat = ($mode == 'horizontal') ? 'Horizontal' : 'Vertical'; $bookingText = isset($_GET['text']) ? htmlentities($_GET['text']) : null; $target = isset($_GET['target']) ? htmlentities($_GET['target']) : null; // Add any extra params if required $httpAgent = plugins_url('scripts/ibex-message-agent.html' , dirname(__FILE__)); $pid = isset($_GET['pid']) ? htmlentities($_GET['pid']) : false; header(':', true, 200); ?>