<?php
include("../config.php");
function intercept_str($str,$start,$end,$option){
$strarr=explode($start,$str);
$tem=$strarr[1];
if(empty($end)){
return $tem;
}else{
$strarr=explode($end,$tem);
if($option==1){
return $strarr[0];
}
if($option==2){
return $start.$strarr[0];
}
if($option==3){
return $strarr[0].$end;
}else{
return $start.$strarr[0].$end;
}
}
}
function get_contents($url){
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 1000);
$file_contents = curl_exec($ch);
curl_close($ch);
return $file_contents;
}
function is_utf8($word)
{
if (preg_match("/^([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}){1}/",$word) == true || preg_match("/([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}){1}$/",$word) == true || preg_match("/([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}){2,}/",$word) == true)
{
return true;
}
else
{
return false;
}
}
if (empty($_GET["q"])){
echo "<script>window.location.href='../v.htm';</script>";
}
$q = $_GET['q'];
if (!is_utf8($q)){
$q=iconv("gb2312","utf-8",$q);
}
$q_gb=iconv("utf-8","gb2312",$q);
$s_gb=urlencode($q_gb);
if ( $_SERVER['HTTP_HOST'] )
{
$opts = array(
"http" => array( "method" => "GET", "timeout" => 60 )
);
$context = stream_context_create( $opts );
//header( "content-Type=text/html;charset=utf-8" );
$p = $_GET['p'];
if (isset($_GET['p'])){
$start=$_GET['s'];
$st='&s='.$_GET['s'];
$page = "&start=".$start.'&length=24&ty=0&keyfrom=video.page'.$p;
$pn = '&p='.$p;
}else {
$page = "";
$pn='';
$st='';
}
if ($_GET['keyfrom']=='video.all'){
$page = '&ty=0&keyfrom=video.all';
}
$s = urlencode( $q );
$title = $q;
$url = "http://video.youdao.com/search?q=".$s.$page;
$start = '<ul class="cf list video-results">';
$end = '<div style="margin-bottom:20px;margin-top:20px;">';
if($getcode=='1'){
$temp = file_get_contents( $url, false );
}
else{
$temp = get_contents( $url, false );
}
$qq=explode('tv-results',$temp);
if(count($qq)>1){
$thisv='tv';
$start = '<ul class="cf list tv-results">';//<div class="tv-index">
$end = '<form id="bs"';
}
$content = intercept_str( $temp, $start, $end, 0 );
$start1 = '<span class="fr">';
$end1 = "</span>";
$res = intercept_str( $temp, $start1, $end1, 0 );
$content = str_replace( '<div style="margin-bottom:20px;margin-top:20px;">', "", $content );
$content = str_replace( '/search?q=', "?q=", $content );
$content = str_replace( '<form id="bs"', "", $content );
$content = str_replace( '&start=', "&s=", $content );
$content = str_replace( 'length=24&ty=0&keyfrom=video.page', "p=", $content );
$content = str_replace( '&keyfrom=video.relatedQuery', "", $content );
$content = str_replace( '/play?docid=', "s/?id=", $content );
$content = str_replace( '&keyfrom=video.searchres', "", $content );
$content = str_replace( '&keyfrom=video.tag', "", $content );
$content = str_replace( '/pics/nothumb.jpg', "images/nothumb.jpg", $content );
if ($thisv=='tv'){
$content = str_replace( '/pics/searchthis.gif', "images/searchthis.gif", $content );
$res = str_replace( '/search?q=', "?q=", $res );
$res = str_replace( '&ty=0', "", $res );
preg_match_all('/\<div class\=\"indexes\"\>(.+?)\<\/div\>/is',$content,$match);
foreach ($match[1] as $v){
$content = str_replace( $v, "", $content );
$content = str_replace( '<div class="indexes"></div>', '', $content );
}
}
preg_match_all('/onclick\=(.+?)\"\>/is',$content,$match);
foreach ($match[1] as $v){
$content = str_replace( $v, "", $content );
$content = str_replace( "onclick=\">", ">", $content );
}
$ccc='';
if (strlen($content)<'100'){
$content='<div style="text-align:center;margin:20px;height:300px;">抱歉,搜索“<font color=red>'.$q.'</font>”失败,查询超时或者没有相关内容,<br/><br/>请<a href="#" onClick="window.location.reload()" style="text-decoration:none"><font color=red>【刷新】</font></a>试试,<br><br>或者更换关键字重新搜索。</div> ';
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $q; ?>-網民搜索-視頻-香港</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link type="text/css" href="../images/style.css" rel="stylesheet" />
<link type="text/css" href="images/vlist.css" rel="stylesheet" />
<meta name="keywords" content="9oso.com,網民視頻搜索" />
<meta name="description" content="網民視頻搜索是全球最大的中文視頻搜索引擎,擁有最多的中文視頻資源,提供用戶最完美的觀看體驗。在網民視頻搜索,您可以便捷地找到最新,最熱的互聯網視頻,更有豐富的..." />
<STYLE>
#mod_gg_sug{background:#f8f8f8;border:1px #ccc solid;display:none;overflow:hidden;position:absolute;left:220px;top:83px;*top:83px;width:376px;*width:378px;z-index:999;}
#mod_gg_sug_list{background:#fff;}
#mod_gg_sug_list li{height:21px;padding:0 3px;text-align:left;*zoom:1;}
#mod_gg_sug_list p{cursor:default;font-size:14px;float:left;font-family:Tahoma;line-height:20px;}
#mod_gg_sug_list span{color:green;float:right;padding-top:3px;}
#mod_gg_sug_btn{color:#03c;cursor:pointer;float:right;height:18px;line-height:18px;text-align:right;}
#mod_gg_sug_list li.active{background:#36c;color:#fff;}
.gb1 {margin-right:.5em}
.gb1 {zoom:1}
.gb2 {display:block;padding:.2em .5em}
.gb2 {text-decoration:none;border-bottom:none}
.gb3 {zoom:1}
.gb3 {text-decoration:none;border-bottom:none}
.gbd {border-top:1px solid #c9d7f1;font-size:1px}
.gbh {border-top:1px solid #c9d7f1;font-size:1px}
.gbh {height:0;position:absolute;top:50px;width:100%}
.gbm {border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;z-index:1001}
.link {color:#20c!important}
a.gb1 {color:#00c !important}
a.gb1 {color:#20c!important}
a.gb2 {color:#00c !important}
a.gb2 {color:#20c!important}
a.gb3 {color:#00c !important}
a.gb3 {color:#20c!important}
a.gb4 {color:#00c !important}
#gbar {font-size:13px;padding-top:1px !important}
#gbar {float:left;height:22px}
#gog {background:#fff}
#guser {font-size:13px;padding-top:1px !important}
#guser {padding-bottom:7px !important;text-align:right}
#guser {height:16px}
.gb11 {margin-right:.5em}
.gb11 {zoom:1}
.gb1113 {margin-right:.5em}
.gb1113 {zoom:1}
.gb1114 {margin-right:.5em}
.gb1114 {zoom:1}
.gb11143 {margin-right:.5em}
.gb11143 {zoom:1}
.gb111431 {margin-right:.5em}
.gb111431 {zoom:1}
.gb1114311 {margin-right:.5em}
.gb1114311 {zoom:1}
.gb1114312 {margin-right:.5em}
.gb1114312 {zoom:1}
.gb31 {zoom:1}
.gb31 {text-decoration:none;border-bottom:none}
.gbh1 {border-top:1px solid #c9d7f1;font-size:1px}
.gbh1 {height:0;position:absolute;top:141px;width:100%}
.gb111 {margin-right:.5em}
.gb111 {zoom:1}
.gb11131 {margin-right:.5em}
.gb11131 {zoom:1}
.gb11141 {margin-right:.5em}
.gb11141 {zoom:1}
.gb111432 {margin-right:.5em}
.gb111432 {zoom:1}
.gb1114313 {margin-right:.5em}
.gb1114313 {zoom:1}
.gb11143111 {margin-right:.5em}
.gb11143111 {zoom:1}
.gb11143121 {margin-right:.5em}
.gb11143121 {zoom:1}
.gb311 {zoom:1}
.gb311 {text-decoration:none;border-bottom:none}
.gbh2 {border-top:1px solid #c9d7f1;font-size:1px}
.gbh2 {height:0;position:absolute;top:75px;width:100%}
.gb112 {margin-ri
没有合适的资源?快使用搜索试试~ 我知道了~
网民搜索(9oso.com)搜索引擎源码.zip
共295个文件
jpg:104个
gif:95个
js:27个
0 下载量 182 浏览量
2023-03-18
19:49:22
上传
评论
收藏 1.55MB ZIP 举报
温馨提示
网民搜索(9oso.com)搜索引擎源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
网民搜索(9oso.com)搜索引擎源码.zip (295个子文件)
style.css 8KB
style.css 8KB
style.css 8KB
sub.css 5KB
sub.css 5KB
sub.css 5KB
vlist.css 5KB
vlist.css 5KB
vlist.css 5KB
style.css 5KB
style.css 5KB
style.css 5KB
index.css 2KB
index.css 2KB
index.css 2KB
mpbox.css 1KB
logo.gif 14KB
logo.gif 14KB
logo.gif 14KB
9oso.gif 14KB
9oso.gif 14KB
9oso.gif 14KB
logo.gif 9KB
i.gif 8KB
i.gif 8KB
i.gif 7KB
beijing.gif 7KB
beijing.gif 7KB
beijing.gif 7KB
logo.gif 3KB
logo.gif 3KB
logo.gif 3KB
logo-shipin.gif 3KB
logo-shipin.gif 3KB
logo-shipin.gif 3KB
none.gif 2KB
none.gif 2KB
none.gif 2KB
repost.gif 887B
post.gif 864B
co.gif 710B
co.gif 710B
co.gif 710B
searchthis.gif 608B
searchthis.gif 608B
searchthis.gif 608B
repeat.gif 576B
repeat.gif 576B
repeat.gif 576B
icon_bg.gif 529B
icon_bg.gif 529B
icon_bg.gif 529B
view.gif 375B
view.gif 375B
view.gif 375B
view.gif 375B
view.gif 375B
view.gif 375B
arr.gif 254B
arr.gif 254B
arr.gif 254B
hotword.gif 206B
hotword.gif 206B
hotword.gif 206B
hotword.gif 206B
hotword.gif 206B
hotword.gif 206B
others.gif 201B
others.gif 201B
others.gif 201B
others.gif 201B
others.gif 201B
others.gif 201B
10.gif 172B
10.gif 172B
10.gif 172B
8.gif 170B
8.gif 170B
8.gif 170B
6.gif 169B
6.gif 169B
6.gif 169B
7.gif 166B
9.gif 166B
7.gif 166B
9.gif 166B
9.gif 166B
7.gif 166B
5.gif 163B
3.gif 163B
3.gif 163B
5.gif 163B
3.gif 163B
5.gif 163B
2.gif 162B
2.gif 162B
2.gif 162B
4.gif 161B
4.gif 161B
4.gif 161B
共 295 条
- 1
- 2
- 3
资源评论
qq_38220914
- 粉丝: 600
- 资源: 4313
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功