示例#1
0
    if (!get_magic_quotes_gpc()) {
        $val = addslashes(trim($val));
    }
    if ($act == "display") {
        $val = stripslashes($val);
    }
    return $val;
}
$Adminbd = "Dear Admin,\n\n";
$bd = "Name: " . setGPC($_POST['name'], "display") . "\n";
$bd .= "Company Name: " . setGPC($_POST['company_name'], "display") . "\n";
$bd .= "Email Address: " . setGPC($_POST['email_address'], "display") . "  Ext: " . setGPC($TelExt, "display") . "\n";
$bd .= "Phone Number: " . setGPC($_POST['phone'], "display") . "\n\n";
$bd .= "Origin of Shipment: " . setGPC($_POST['origin_city'] . " | " . $_POST['origin_state'] . " | " . $_POST['origin_country'], "display") . "\n\n";
$bd .= "Destination of Shipment: " . setGPC($_POST['destin_city'] . " | " . $_POST['destin_state'] . " | " . $_POST['destin_country'], "display") . "\n";
$bd .= "Commodity: " . setGPC($_POST['commodity'], "display") . "\n";
$bd .= "Number of Cartons: " . setGPC($_POST['cartons'], "display") . "\n";
$bd .= "Weight in lbs.: " . setGPC($_POST['weight'], "display") . "\n";
$bd .= "Dimensions in Inches: " . setGPC("length:" . $_POST['length'] . " inches width:" . $_POST['width'] . " inches height:" . $_POST['height'] . " inches", "display") . "\n";
$bd .= "Method of Transportation : " . $_POST['Ocean'] . "\n";
$bd .= "Brief Description of Cargo: " . setGPC($_POST['description'], "display") . "\n";
$bd .= "Other Comments: " . setGPC($_POST['comments'], "display") . "\n";
$Adminbd = $Adminbd . $bd;
# admin email
$From_Display = "Admin";
$Subject = "Quote Request InterCustom.com ";
$From_Email = "*****@*****.**";
$Reply_To = "*****@*****.**";
$To = "*****@*****.**";
SendMail($From_Display, $From_Email, $Reply_To, $To, "", "", $Subject, $Adminbd, 0);
echo "<script language='javascript'>document.location='thanks.html';</script>";
示例#2
0
 public function clean()
 {
     setGPC('sessionid', '', -1);
     GilCache::del(self::$_sessionid);
 }