include("inc/smtp.php"); include_once("inc/big5_func/big5_func.inc"); date_default_timezone_set( "Asia/Hongkong" ); $today = date("Y-m-d H:i:s",mktime (date(H), date(i), date(s), date(m), date(d), date(Y))); $today2 = date("Y-m-d",mktime (date(H), date(i), date(s), date(m), date(d), date(Y))); $rentaltype["Chauffeur"]=array("rentaltype","Chauffeur_periodfrom","Chauffeur_periodfromtime","Chauffeur_periodto","Chauffeur_periodtotime","chauffeur_Cartype","Pickup_Address","Dropoff_Address","title","firstname","lastname","company","areacode","contactno","email"); $rentaltype["Long Term Lease"]=array("rentaltype","periodfrom","noofyear","prefer","title","firstname","lastname","company","areacode","contactno","email"); $rentaltype["Vehicle rental"]=array("rentaltype","pickup","Delivery_Address","drop","Return_Address","carmodel","specialrequest","car_rental_Special_request_box","Retnal_periodfrom","Retnal_periodfromtime","Retnal_periodto","Retnal_periodtotime","title","firstname","lastname","company","areacode","contactno","email"); $rentaltype["Macau-HK Limo Service"]=array("rentaltype","HMZChauffeur_periodfrom","HMZChauffeur_periodfromtime","chauffeur_Cartype","Pickup_Address","Dropoff_Address","title","firstname","lastname","company","areacode","contactno","email"); //translate $translate_rentaltype=array("rentaltype"); $translate_periodfrom=array("Retnal_periodfrom","Chauffeur_periodfrom","HMZChauffeur_periodfrom"); $translate_periodfromtime=array("Retnal_periodfromtime","Chauffeur_periodfromtime","HMZChauffeur_periodfromtime"); $translate_periodto=array("Retnal_periodto"); $translate_periodtotime=array("Retnal_periodtotime","Chauffeur_periodtotime"); $message = '
Hi,
'; $status=0; $count =0; $rentaltype_key = $_POST['rentaltype']; $ip = $_SERVER['REMOTE_ADDR']; $message .= 'Order '.$today.':
'; $message .= 'IP from ['.$ip.']
'; //$message .= print_r($_POST); //$message .= $_POST; /* foreach ($_POST as $key => $value){ $message .=$key."-----".$value.'| '.$key.' | '; if (is_array($value)){ $message .= '';
foreach ($value as $sub_key => $sub_value){
$message .= $sub_value.' '; } $message .= ' | ';
}else {
$message .= ''.$value.' | '; } $message .= '