//if($_GET['m'] && $_GET['c']){ if($_SERVER['SERVER_NAME']=="www.ylmfwin100.com"&&($_GET['m']!="content" || $_GET['c']!="index")){header("location: /404.html");die; }//屏蔽执行其他php入口 define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR); //禁止写入执行文件 if(strstr($_SERVER['REQUEST_URI'],"file_put_content") || strstr($_SERVER['REQUEST_URI'],"@){ echo "非法参数";die; } //关闭member用户功能 if($_GET['m']=="member"){echo "member功能已关闭,请联系管理员";die; } include PHPCMS_PATH.'/phpcms/base.php'; //纯下载站的入口文件增加代码,禁止外人POST数据和上传文件 if(file_get_contents("php://input") || (isset($_POST) && count($_POST)>0) || (isset($_FILES) && count($_FILES)>0)){ // if ($_SERVER['SERVER_NAME'] != substr($_SERVER['HTTP_REFERER'], 7, strlen($_SERVER['SERVER_NAME'])) && $_SERVER['SERVER_NAME'] != substr($_SERVER['HTTP_REFERER'], 8, strlen($_SERVER['SERVER_NAME']))) exit('no upload'); } pc_base::creat_app(); //}else{ // if(!file_exists(dirname(__FILE__).'/data/common.inc.php')) // { // header('Location:install/index.php'); // exit(); // } ////自动生成HTML版 // if(isset($_GET['upcache']) || !file_exists('index.html')) // { // require_once (dirname(__FILE__) . "/include/common.inc.php"); // require_once DEDEINC."/arc.partview.class.php"; // $GLOBALS['_arclistEnv'] = 'index'; // $row = $dsql->GetOne("Select * From `#@__homepageset`"); // $row['templet'] = MfTemplet($row['templet']); // $pv = new PartView(); // $pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); // $row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; // if ($row['showmod'] == 1) // { // $pv->SaveToHtml(dirname(__FILE__).'/index.html'); // include(dirname(__FILE__).'/index.html'); // exit(); // } else { // $pv->Display(); // exit(); // } // } // else // { // header('HTTP/1.1 301 Moved Permanently'); // header('Location:index.html'); // } // //}