<?php
$da = date("YmdHis");
$de = date("Y-m-d");
$ti = "Php去重与长度降序";
$tt = "Php待处理内容一行一个";
$code = trim($_POST['name']);
function paixu($mara,$dbs=""){
$nev =array(); $tv="|";
$dbs = str_replace("$","",$dbs);
foreach($mara as $vv){
$ve = strlen($vv);
if(!stristr($tv,"|{$vv}|") && !stristr($dbs,"|{$vv}|")){
$nev[$vv]=$ve;
$tv.=$vv."|";
}
}
arsort($nev);
$tc = "|";
foreach($nev as $v1=>$k1){
$tc.=$v1."|";
}
return $tc;
}
if (strlen($code)>10){
$codex = explode("\r\n",$code);
$coden = paixu($codex,"");
$coden = str_replace("|","\r\n",$coden);
}
?>
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title><?php echo $ti; ?></title>
<meta name="author" content="yujianyue, admin@ewuyi.net">
<meta name="copyright" content="www.12391.net">
<style>
*{margin:0;padding:0;font-size:14px;line-height:150%;font-family:"microsoft yahei",SimHei;}
body,html{height:100%;text-align:center;overflow:hidden;background-color:#d0d0d0;}
.html{height:100%;width:100%;position:relative;overflow-y:auto;overflow-x:hidden;}
strong{color:red;}
span{color:green;}
a{color:blue;text-decoration:none;}
a:hover {text-decoration:none;color:green;}
.r {text-align:right;width:30%;}
.l {text-align:left;color:green;}
h3 {color:green;font-size:18px;}
.simg{width:50%;min-width:88px;max-width:188px;}
#divs{margin:0 auto;min-height:98%;position:relative;box-sizing:border-box;}
.divs{width:100%;max-width:1200px;min-width:300px;background-color:#F0F0F0;}
strong{color:red;}
.head{position:fixed;top:0px;margin:0 auto;width:100%;max-width:1200px;min-width:300px;z-index:10;display:block;}
#head{line-height:180%;background-color:#0180CF;font-size:16px;line-height:40px;color:white;}
.back{position:absolute;right:9px;top:0px;line-height:40px;}
.d {border:1px white solid;line-height:150%;color:white;font-size:12px;padding:3px 5px;}
.d:hover {text-decoration:none;background-color:white;color:#0180CF; }
#main{margin:2px auto;padding:30px 1px;width:100%;}
form{margin:24px 0;text-align:left;}
.so_box{margin:10px auto;height:40px;line-height:40px;background-color:white;width:92%;border:1px #CACACA solid;margin-top:12px;position:relative}
.so_bax{margin:10px auto;height:360px;line-height:120%;background-color:white;width:92%;border:1px #CACACA solid;margin-top:12px;position:relative}
.so_box .txts{margin:0px auto;height:31px;outline: none;line-height:31px;width:88%;padding-left:10px;border:0px;color:#333333;background-color:#FFFFFF;overflow:hidden;}
.so_box .buts{margin:0 auto;height:40px;line-height:40px;width:100%;padding-left:10px;border:0px;color:#333333;background:#0180CF url(line_bg.jpg) repeat-x;border-radius:25px;}
.so_box .more{position:absolute;position:absolute; top:8px; right:10px;}
.so_box .more img{ height:24px;}
textarea{width:100%;height:100%;}
@media screen and (max-width: 666px) {
table{border:0;border-top:0px solid #0180CF;}
table thead {display:none;}
table tr{margin-bottom:18px;display:block;border-top:2px solid #0180CF;}
table tr{border-bottom:1px solid #0180CF;}
table td {display:block;text-align:right;font-size:13px;}
table td {border-left:1px dotted #0180CF;border-bottom: 1px dotted #ccc;}
table td:last-child {border-bottom:0;}
table td:before {content:attr(data-label);float:left;text-transform:uppercase;}
table td:before {color:blue;}
}
.table{margin:0 auto;font-size:10px;width:92%;height:300px;}
table{border-left:1px solid #a2c6d3;border-top:3px solid #0180CF; margin:0 auto;font-size:12px;width:92%;}
table td{border-right:1px solid #a2c6d3;border-bottom:1px solid #a2c6d3;padding:5px;word-wrap:break-word;word-break:break-all;}
.tt{background:#e5f2fa;line-height:18px;FONT-SIZE:12px;max-width:596px;}
.select select{width:100%;padding:5px;border:1px #CACACA solid;height:40px;-webkit-appearance:none;}
.select option{height:40px;}
.select{margin:0 auto;width:92%;height:40px;overflow:hidden;}
.so_but{margin:15px auto;width:92%;text-align:center;margin-top:12px;border:0px;}
.so_bus{margin:15px auto;width:92%;text-align:left;margin-top:12px;border:0px;}
.so_but .buts{line-height:200%;padding:5px 25px;background:#0180CF url(line_bg.jpg) repeat-x;border-radius:25px;color:white;border:0px;}
#boto{margin:0 auto;width:100%;max-width:1200px;min-width:300px;position:fixed;bottom:0px;display:block;}
.boto{background-color:#ADADAD;color:#000;text-shadow: 0 1px 1px #fff;line-height:180%;}
</style>
<script language="javascript">
var $=function(node){
return document.getElementById(node);
}
function $(objId){
return document.getElementById(objId);
}
function st(ids,Num){
if ($(ids).value == "" || $(ids).value == $("tishi"+Num).innerHTML){
$('t2').style.borderColor='red';
}else{
$('t2').style.borderColor='green';
}
}
function sta(Num) {
if(Num == 2 || Num == 0){
if($("name")!=null){
if ($("name").value=="" || $(ids).value == $("tishi"+Num).innerHTML){
$('t2').style.borderColor='red';
return false;
}else{
$('t2').style.borderColor='green';
}
}
}
if(Num == "0"){
//return false;
}
}
</script>
</head>
<body>
<div class="html">
<div class="divs" id="divs">
<div id="head" class="head" onclick="location.href='?t=<?php echo $da; ?>';">
<?php echo $ti; ?>
<div class="back" id="pageback">
<a href="?t=<?php echo $da; ?>" class="d">更多</a>
</div>
</div>
<div class="main" id="main">
<?php
if(strlen($coden)>0){
?>
<div class="so_bax" id="t2">
<textarea name="name" class="txts" id="name">
<?php echo Trim($coden); ?>
</textarea>
</div>
<div class="so_but">
<input type="button" class="buts" value="返回继续" name="print" onclick="location.href='?t=<?php echo $da; ?>';">
</div>
<?php
}else{
?>
<form name="queryForm" method="post" action="?t=<?php echo $da; ?>" onsubmit="return sta(0);">
<div class="so_bax" id="t2">
<textarea name="name" class="txts" id="name" placeholder="<?php echo $tt; ?>" onfocus="st('name',2);" onBlur="sta(2)" >
Sogou web spider
facebookexternalhit
Diffbot
YandexBot
Nimbostratus-Bot
rogerbot
CCBot
KomodiaBot
ThinkBot
Twitterbot
YunSecurityBot
MagiBot
opensiteexplorer
Googlebot
Bytespider
Applebot
TestBot
bingbot
MauiBot
FeedDemon
SemrushBot
Bytespider
Indy Library
Alexa
AskTbFXTV
AhrefsBot
CrawlDaddy
CoolpadWebkit
semrushbot
alphaseobot
semrush
Feedly
UniversalFeedParser
webmeup-crawler
ApacheBench
Swiftbot
ZmEu
oBot
jaunty
Python-urllib
lightDeckReports Bot
YYSpider
DigExt
MJ12bot
heritrix
EasouSpider
Ezooms
</textarea>
</div>
<div class="so_but">
<input type="submit" name="button" class="buts" id="sub" value="去重与长度降序" />
<input type="button" class="buts" value="刷新本页" name="print" onclick="location.reload();">
</div>
<div class="so_bus" id="tishi">
<!---你的其他说明在这里添加:开始-->
<h3>功能说明:</h3>
去重与长度降序。。
<!--你的其他说明在这里添加:结束-->
</div>
<div id="tishi2" style="display:none;"><?php echo $tt; ?></div>
</form>
<?php
}
?>
</div>
<div class="boto" id="boto">
©2018 <a href="http://add.12391.net?t=<?php echo $da; ?>" target="_blank">就来试试吧</a>
</div>
</div>
</div>
</body>
</html>
|