', '', $var); $var = str_replace('(','(',$var); $var = str_replace(')',')',$var); $var = str_replace('?','?',$var); } return $var; } } } $is_include = strrpos($_SERVER['PHP_SELF'], "include/")===false ?false:true; if(!$is_include){ foreach ($_POST as $key=>$value){ $_POST[$key] = web_safe_check($key,$value); } foreach ($_GET as $key=>$value){ $_GET[$key] = web_safe_check($key,$value); // echo $key.'=>'.$_GET[$key].'
'; } } function getWebName(){ $url = getcwd(); // echo $url.'
'; $url = str_replace("\webadmin","",$url); //echo $url.'
'; $url = str_replace("\include","",$url); $url = str_replace("\mobile","",$url); $url = str_replace("\merchants","",$url); $who_am_i= strrchr($url,DIRECTORY_SEPARATOR); //echo $who_am_i.'
'; return strtok($who_am_i,DIRECTORY_SEPARATOR); } $web = getWebName(); if ($web==""){ echo "ERROR"; }else{ // echo $web.'
'; } // echo $web.'
'; $_config_file = dirname(__FILE__).'/web/'.$web.'/config.php'; if(is_file($_config_file)){ require $_config_file; } $web = base64_encode($web); require 'webadmin/include/config_web.php'; //require 'include/lib.php'; if($nocounter===true){ }else{ require 'webadmin/include/counter.php'; } $CFG->heeder_js = array(); $CFG->header_css = array(); $CFG->footer_js = array(); $CFG->footer_script = array(); $jquery_ver = ''; } ?>header_css['shoppingQuery'] = $CFG->web_lib.'lib/shoppingQuery/css/model.css'; $template_id = $CFG->template_id; $colorcss_id = $CFG->colorcss_id; if($lang==''){ throw new Exception($CFG->langsetting['base']['page']['nodata']); } //頁面代號 $pageid="shoppingQuery"; $page_ext='shopping'; require("public_page_layoutset.php"); function print_body(){ global $CFG,$lang,$dao,$_menu_item,$pageid,$pageinclude,$page_d,$activeMenuItem; $shoppingset = initshoppingSetting(); if($shoppingset['queryorderview']=='Y'){ require_once($CFG->root_admin.'customized_columns/tools-div.php'); ?>

web.'API'] = 'shoppingQuery'; ## 這邊判斷是否有會員功能 $hasMember = has_fn('member'); if($hasMember){ $show_string = $CFG->langsetting['shopping']['queryorderview']['loginmember']; $show_link = $CFG->langsetting['shopping']['queryorderview']['loginmember_link']; if($show_link!=''){ $show_link = ''.$show_link.''; } $show_string = str_replace('{登入會員連結}',$show_link,$show_string); ?>