音乐聚合搜索 - 壹搜网为您找到"

模型评测平台

"相关结果
// ==================== 原有业务逻辑保持不变 ==================== $ip = get_ip(); if(strpos($ip,'121.42.0.')>-1){//判断是不是阿里云绿网监控IP,屏蔽掉 header('HTTP/1.1 404 Not Found'); header("status: 404 Not Found"); exit; } $listnum = array('①','②','③','④','⑤','⑥','⑦','⑧','⑨','⑩'); $myurl = myurl(); if(isset($_GET['q'])){ $q = hd_clearStr($_GET['q']); }else if(isset($_POST['q'])){ $q = hd_clearStr($_POST['q']); } if(strlen($q)<1){ header("location: ".SYSPATH); exit; } if(isset($_GET['cr']) && strlen($_GET['cr'])>1){ $q = iconv($_GET['cr'],"utf-8",$q); $gourl = yisosourl($q); header("location: $gourl"); exit; } $ref = $_SERVER['HTTP_REFERER']; if(strpos($ref,'m.baidu.com') && strpos($q,'%')>-1){ $q = urldecode(urldecode($q)); $gourl = yisosourl($q); header("location: $gourl"); exit; } if(isset($_GET['re']) || isset($_POST['re'])){ $q = htmlspecialchars_decode($q); $gourl = yisosourl($q); header("location: $gourl"); exit; } if(isset($_GET['p'])){ $p=$_GET['p']; if($p>50){ $p=50; } if(REWRITE==1 && strpos(URLRULE2,'{qe}')>-1 && strpos($myurl,'q=')<1 && strpos($myurl,'more=1')<1){ $q = qdecode($q); } }else{ $p=1; if(REWRITE==1 && strpos(URLRULE1,'{qe}')>-1 && strpos($myurl,'q=')<1 && strpos($myurl,'more=1')<1){ $q = qdecode($q); } } $killword = file_get_contents(ROOT_PATH.'/data/yiso.killword.txt'); if(strpos($killword,"\r\n")>-1){ $killword = trim($killword,"\r\n"); $killwordlist = explode("\r\n",$killword); }else{ $killword = trim($killword,"\n"); $killwordlist = explode("\n",$killword); } $kill = 0; // 初始化 kill 变量 foreach($killwordlist as $k=>$v){ $b404 = 0; if(substr($v,0,1)=='~'){ $v = ltrim($v,'~'); $b404 = 1; } if(substr($v,0,1)=='|'){ $v = ltrim($v,'|'); if($q == $v){ $listcount=0; $kill=1; $list['count']=0;$list['pnum']=0; if($b404==1){back404();} break; } }else if(strlen($v)>2){ if(strpos($q,$v)>-1 || $q == $v){ $listcount=0; $kill=1; $list['count']=0;$list['pnum']=0; if($b404==1){back404();} break; } } } $s = urlencode($q); // ========== 数据获取:优先使用自建 SearXNG 实例 ========== $list = kantan_get_self_results($q, $p, $yiso['cachetime']); $listcount = isset($list['data']) ? count($list['data']) : 0; // 如果自建实例失败或无结果,降级到谷歌 if ($listcount < 1 && function_exists('yiso_get_google')) { $list = yiso_get_google($q, $p, $yiso['cachetime'], CX); $listcount = count($list['data'] ?? []); } // 如果仍然无结果,尝试公共 Kantan 实例 if ($listcount < 1 && function_exists('kantan_get_results')) { $kantan_result = kantan_get_results($q, $p, $yiso['cachetime']); if (isset($kantan_result['data']) && count($kantan_result['data']) > 0) { $list = $kantan_result; $listcount = count($list['data']); } } // 最后尝试百度/好搜备选 if ($listcount < 1 && $yiso['baidu_bak'] == 1) { $list = yiso_get_newbaidu($q, $p, $yiso['cachetime']); $listcount = count($list['data'] ?? []); if ($listcount < 1) { $list = yiso_get_haosou($q, $p, $yiso['cachetime']); $listcount = count($list['data'] ?? []); } } // 确保 $list['data'] 存在 if (!isset($list['data']) || !is_array($list['data'])) { $list['data'] = array(); } $listcount = count($list['data']); // ===================================================== // 生成描述信息,增加安全性 $description = $q.'相关信息'; if(isset($list['data'][1]['title'])) { $description .= ','.strip_tags($list['data'][1]['title']); } if(isset($list['data'][2]['des'])) { $description .= strip_tags($list['data'][2]['des']); } $description = strip_tags($description); $description = str_replace('"','',$description); // ========== 生成高亮用的关键词数组 ========== $keywords = array(); if (!empty($q)) { $whole = preg_replace('/\s+/u', '', $q); if (!empty($whole)) { $keywords[] = preg_quote($whole, '/'); } $parts = preg_split('/\s+/u', $q, -1, PREG_SPLIT_NO_EMPTY); foreach ($parts as $kw) { $kw = trim($kw); if ($kw !== '') { $keywords[] = preg_quote($kw, '/'); } } $keywords = array_unique($keywords); } $keyword_pattern = !empty($keywords) ? '/(' . implode('|', $keywords) . ')/ui' : null; // ========================================== /** * 将秒数格式化为 时:分:秒 或 分:秒 */ function format_duration($seconds) { if (!$seconds) return ''; $seconds = intval($seconds); $hours = floor($seconds / 3600); $minutes = floor(($seconds % 3600) / 60); $secs = $seconds % 60; if ($hours > 0) { return sprintf("%d:%02d:%02d", $hours, $minutes, $secs); } else { return sprintf("%02d:%02d", $minutes, $secs); } } ?> 模型评测平台_第14页 - 音乐聚合搜索 - 壹搜网
音乐聚合搜索 - 壹搜网为您找到"

模型评测平台

"相关结果

Fatal error: Cannot redeclare plusecho() (previously declared in /www/sites/s.dhw.me/index/mp3/inc/plus.php:12) in /www/sites/s.dhw.me/index/mp3/inc/plus.php on line 12