$strDir = $arrGCache['cache_root'] . '/' . $arrTemp[2] . '-' . $arrModule[1] . '/' . $intID . $arrGWeb['file_suffix']; $boolCache = true; } if (!empty($arrTemp[4]) && is_numeric($arrTemp[4])) { $intID = $arrTemp[4]; $strDir = $arrGCache['cache_root'] . '/' . $arrTemp[2] . '-' . $arrTemp[3] . '/' . $intID . $arrGWeb['file_suffix']; $boolCache = true; } } } } } header("HTTP/1.1 200 OK"); $objDoc = new HTML_TO_DOC(); $strUrl = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $arrTemp[2] . '/detail.php?type=doc&id=' . $intID; $objDoc->createDocFromURL($strUrl, $strDir, true); //header("location:$strDir"); } } elseif (strpos($strMyUrl, '.pdf')) { //静态PDF文件处理 } //非静态文件直接跳转到网站首页 if (v === 'v') { exit; } if (!$boolCache) { if ($strMyUrl != '/') { $arrUrl = parse_url($strMyUrl); header("HTTP/1.1 301 Moved Permanently"); // 面向搜索引擎的友好模式 if (is_dir(__WEB_ROOT . $arrUrl['path'])) {