/*
session_start();
if (!isset($pack))
{
$pack = 0;
$numset = 0;
$pos1 = "";
$pos2 = "";
$add1 = "";
$add2 = "";
$add3 = "";
$add4 = "";
$phone = "";
$maddr1 = "";
$maddr2 = "";
$maddr3 = "";
$name1 = "";
$name2 = "";
$comments = "";
$shippingOpt = 0;
}
session_register("pack");
session_register("numset");
session_register("pos1");
session_register("pos2");
session_register("add1");
session_register("add2");
session_register("add3");
session_register("add4");
session_register("phone1");
session_register("phone2");
session_register("phone3");
session_register("maddr");
session_register("name1");
session_register("name2");
session_register("comments");
session_register("shippingOpt");
*/
ini_set('mbstring.encoding_translation', '0');
ini_set('mbstring.http_input', 'pass');
mb_http_output('Shift_JIS');
mb_internal_encoding('Shift_JIS');
mb_regex_encoding('Shift_JIS');
mb_detect_order("ASCII, JIS, UTF-8, SJIS, EUC-JP");
function chrcheck($str)
{
$retstr = mb_eregi_replace ( ">", ">", $str );
$retstr = mb_eregi_replace ( "<", "<", $retstr );
$retstr = mb_eregi_replace ( "&", "&", $retstr );
$retstr = mb_eregi_replace ( "\"", "”", $retstr );
$retstr = mb_eregi_replace ( "'", "’", $retstr );
$retstr = mb_eregi_replace ( " ", " ", $retstr );
return $retstr;
}
function trimPostValues()
{
global $_POST, $postval;
foreach( $_POST as $key => $value)
{
$postval[$key] = trim(chrcheck(trim($value)));
// print $key.':'.$postval[$key] .'
';
}
}
define ('price',1050);
?>
el Diablo注文
|
|
|
(c)2006 SanktGallen Brewery, all rights reserved. |