📄 remote_search.php
字号:
<?include "include/db.php";include "include/general.php";include "include/resource_functions.php";# Spider.php - provide a spiderable set of pages. Designed for the Google Appliance but should work with other# search engines / appliances.$password=getvalescaped("password",""); if ($password!=$spider_password) {exit ("Incorrect password.");}$ref=getvalescaped("ref","");$higher=getvalescaped("higher","");$lower=getvalescaped("lower","");if (($ref=="") && ($lower=="")) { # Index page ?><html><head><title>Spider Index</title></head><body><h1>Spider Index</h1><? $max=get_max_resource_ref(); for ($n=1;$n<=$max;$n+=1000) { $upper=$n+999;if ($upper>$max) {$upper=$max;} ?><p><a href="spider.php?password=<?=$password?>&lower=<?=$n?>&higher=<?=$upper?>"><?=$n?> to <?=$upper?></a></p><? } ?></body></html><? }if ($lower!="") { # Resource list ?><html><head><title>Spider Index</title></head><body><h1>Spider Index</h1> <p> <? $list=get_resource_ref_range($lower,$higher); for ($n=1;$n<count($list);$n++) { ?> <a href="spider.php?password=<?=$password?>&ref=<?=$list[$n]?>"><?=$list[$n]?></a> <? } ?></p></body></html><? } if ($ref!="") { # Resource view $resource=get_resource_data($ref);$resourcedata=get_resource_field_data($ref); if ($resource["has_image"]==1) { $thumbnail=get_resource_path($ref,"col",false,$resource["preview_extension"]); } else { $thumbnail="gfx/type" . $resource["resource_type"] . "_col.gif"; } ?><html><head> <meta name="country" content="<?=TidyList($resource["country"])?>"> <meta name="date" content="<?=$resource["creation_date"]?>"> <meta name="thumbnail" content="<?=$baseurl?>/<?=$thumbnail?>"> <meta http-equiv="refresh" content="0;url=<?=$baseurl?>/view.php?ref=<?=$ref?>"> <title><?=trim($resource["title"])?></title></head> <body style="color:white;background-color:white;"><h1><?=trim($resource["title"])?></h1> <? for ($n=1;$n<count($resourcedata);$n++) { $value=trim($resourcedata[$n]["value"]); if (substr($value,0,1)==",") {$value=TidyList($value);} if ($value!="") { ?><p><?=$value?></p><? } ?> <? } ?></p></body></html><? }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -