";
$accfoldername = substr($tempname, 0, strpos($tempname, '/') );
$nameminus = strlen($accfoldername)-strlen("shop001");
$_SESSION['lang']=substr($_SERVER['SCRIPT_NAME'],14+$nameminus,2);
echo glob(dirname($_SERVER['PHP_SELF']),"inc_");
if ($_SESSION['lang'] =="" || empty($_SESSION['lang']) ) {
$_SESSION['lang']="en";
}
if ($curr !="" ) {
$_SESSION['curr']=$curr;
} else {
if ( empty($_SESSION['curr']) || $_SESSION['curr']=="" )
$_SESSION['curr']='USD';
}
if ($priceunitselect!="") $_SESSION['curr']=$priceunitselect;
if ($_SESSION['curr']=="" && $priceunitselect=="" ) $_SESSION['curr']='USD';
echo '
';
$sqls1 = "SELECT * FROM eshopdata where framepage='".pathinfo(__FILE__, PATHINFO_FILENAME).".php' and functionid>100 and functionid <200 ORDER BY sorting ASC,posting asc, `functionid` ASC";
$rss1 = $db->query($sqls1);
while($rows1 = $db->fetch_array($rss1)) {
$en_status=$rows1["en_status"];
$tc_status=$rows1["tc_status"];
$sc_status=$rows1["sc_status"];
if ( $rows1["functionid"]==101 ) $mess101 = $rows1["{$_SESSION['lang']}_show"];
if ( ($rows1["functionid"]==102) && ($en_status==1 ) ) $mess102a = $rows1["en_show"];
if ( ($rows1["functionid"]==102) && ($tc_status==1 ) ) $mess102b = $rows1["tc_show"];
if ( ($rows1["functionid"]==102) && ($sc_status==1 ) ) $mess102c = $rows1["sc_show"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $htmlstyle = $rows1["framestyle"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html1 = $rows1["framehtml1"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html2 = $rows1["framehtml2"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html3 = $rows1["framehtml3"];
if ( ($rows1["functionid"]==102) && ($rows1["{$_SESSION['lang']}_status"]==1 ) ) $html4 = $rows1["framehtml4"];
}
echo '
';
?>
=$mess101?>
// echo substr($_SERVER['SCRIPT_NAME'],17,2);
if (substr($_SERVER['SCRIPT_NAME'],14+$nameminus,2)=="tc") { echo '貨幣'; }
if (substr($_SERVER['SCRIPT_NAME'],14+$nameminus,2)=="sc") { echo '货币'; }
if (substr($_SERVER['SCRIPT_NAME'],14+$nameminus,2)=="en") { echo 'Currency'; }
// $loadpage=substr($_SERVER['SCRIPT_NAME'],17);
// echo $curr."@".$_SESSION['curr'].substr($_SERVER['SCRIPT_NAME'],17);
if (substr($_SERVER['SCRIPT_NAME'],17)=="product_summary.php")
$temp = substr($_SERVER['SCRIPT_NAME'],17).'?curr='.$cur;
else $temp = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
?>