首页    联系我们    
中文 English
爱生活爱上高尔夫 - 高尔夫走进生活·家庭
赞助商
der('Content-type: text/html; charset=utf-8'); exit('错误:HTML静态网页不存在,如初次使用系统,请登陆后台进行静态页面生成!
Filename : ' . $strfile . '
点陆登陆管理平台!'); } exit(); } if (empty($archive) || empty($action)) { include admin_ROOT . 'interface/public.php'; $mainlist = new mainpage(); if (method_exists($mainlist, 'in_index')) { $mainlist->in_index(); } else { exit('Access error!'); } } else { if (in_array($archive, array('article', 'forum', 'search', 'bbssearch', 'forummain', 'special', 'respond', 'public', 'scriptout', 'enquiry', 'enquirymain', 'form', 'formmain', 'ordermain', 'membermain', 'member', 'forum', 'order'))) { $action = 'in_' . $action; if (!file_exists(admin_ROOT . "interface/$archive.php")) { exit('Access error!'); } include admin_ROOT . "interface/$archive.php"; $mainlist = new mainpage(); if (method_exists($mainlist, $action)) { $mainlist->$action(); } else { exit('Access error!'); } } else { exit('Access error!'); } } function indexget($k, $var='R', $htmlcode=true, $rehtml=false) { switch ($var) { case 'G': $var = &$_GET; break; case 'P': $var = &$_POST; break; case 'C': $var = &$_COOKIE; break; case 'R': $var = &$_GET; if (empty($var[$k])) { $var = &$_POST; } break; } $putvalue = isset($var[$k]) ? indexdaddslashes($var[$k], 0) : NULL; return $htmlcode ? indexhtmldecode($putvalue) : $putvalue; } function indexdaddslashes($string, $force=0, $strip=FALSE) { if (!get_magic_quotes_gpc() || $force == 1) { if (is_array($string)) { foreach ($string as $key => $val) { $string[$key] = addslashes($strip ? stripslashes($val) : $val); } } else { $string = addslashes($strip ? stripslashes($string) : $string); } } return $string; } function indexhtmldecode($str) { if (empty($str)) return $str; if (!is_array($str)) { $str = htmlspecialchars(trim($str)); $str = str_ireplace("Xss", "", $str); } else { foreach ($str as $key => $val) { $str[$key] = htmlspecialchars($val); $str[$key] = indexhtmldecode($val); } } return $str; } ?>