📄 newsearch.php
字号:
<HTML>
<HEAD>
</HEAD>
<BODY bgcolor="#FFFFFF">
<CENTER>
<BR>
<font face=Verdana size=5><b>Risultati della ricerca</b>
<hr width="70%">
<TABLE BORDER="1px" bordercolor="#000000" width=70% CELLPADDING=2 CELLSPACING=0>
<TR><TD bgcolor="#00CCFF"><font face=Verdana size=1><b>La ricerca da te iniziata ha prodotto i seguenti risultati:</b></font></TD></TR>
<?Php
error_reporting(0);
$timex=time();
$timey=0;
$bgchange="FFFFFC";
$fchek=0;
$command[0]="0";
$dirtest="false";
#subfolder search options setup starts here
if($where=="index"){
$dirtest="true";
$linkdir="";
$handle=opendir('.');
} elseif($where=="php"){
$linkdir="phpapps/";
chdir('./phpapps');
$handle=opendir('.');
}elseif($where=="other"){
$linkdir="otherscripts/";
chdir('./otherscripts');
$handle=opendir('.');
}elseif($where=="news"){
$linkdir="news/";
chdir('./news');
$handle=opendir('.');
} else {
$dirtest="true";
$linkdir="";
$handle=opendir('.');
}
#thats it, nothing else should be changed do not edit below this line.
while (($file = readdir($handle))!==false){
if (eregi("[a-zA-Z0-p_-]*.html",$file) or eregi("[a-zA-Z0-p_-]*.htm",$file)or eregi("[a-zA-Z0-p_-]*.php",$file)or eregi("[a-zA-Z0-p_-]*.txt",$file)){
$fchek=$fchek+1;
$sizer=filesize($file);
$sizer=($sizer/1000);
$sizer=round($sizer,1);
$file=trim($file);
$file=chop($file);
$filed=file($file);
$fileold=$file;
$count = count($filed);
$i = $count;
$zt = 0;
$clt=0;
$found=0;
$stringer=0;
for($j=$zt;$j<$i;$j++){
$string=$filed[$j];
$stringer=$filed[$j];
$num = "regPLACE hold";
$string=strtolower($string);
$stringer=strtolower($stringer);
$whatdoreplace=strtolower($whatdoreplace);
$string = ereg_replace($whatdoreplace, $num, $string);
if($string!=$stringer){
$found=$found+1;
$abby=$found;
$show[$found]=$stringer;
}
}
$dircount=count($file);
echo "<FONT SIZE=-1>";
if($found>0){
$command[0]=($command[0]+10);
if(eregi("[a-zA-Z0-p_-]*.txt",$file)){
$fileold=$file;
$file="index.php";
if($dirtest=="true"){
$file=$fileold;
}
}
if($file=="index.html"){
if($bgchange=="EEEEEE"){
$bgchange="FFFFFF";
echo "</TD></TR><TR><TD BGCOLOR=$bgchange><BR><A HREF=\"$linkdir$file\" target=_new>file</A><BR>$data <font face=Verdana size=1>Size: $sizer Kb</font><BR><BR><font face=Verdana size=2>Questa pagina contiene <FONT COLOR=RED><B>$found</B></FONT> volte la parola <FONT COLOR=RED><B>$whatdoreplace</B></FONT>:</font> <UL>";
} else {
$bgchange="EEEEEE";
echo "</TD></TR><TR><TD BGCOLOR=$bgchange><BR><A HREF=\"$linkdir$file\" target=_new class=cont>$fileold</A> <font face=Verdana size=1>Size: $sizer Kb</font><BR><BR><font size=2 class=testo>Questa pagina contiene <FONT COLOR=RED><B>$found</B></FONT> volte la parola <FONT COLOR=RED><B>$whatdoreplace</B></FONT>:</font> <UL>";
}
} elseif($bgchange=="EEEEEE"){
$bgchange="FFFFFF";
echo "</TD></TR><TR><TD BGCOLOR=$bgchange><BR><A HREF=\"$linkdir$file\">$fileold</A> <font face=Verdana size=1>Size: $sizer Kb</font><BR><BR><font size=2>Questa pagina contiene <FONT COLOR=RED><B>$found</B></FONT> volte la parola <FONT COLOR=RED><B>$whatdoreplace</B></FONT>:</font> <UL>";
} else {
$bgchange="EEEEEE";
echo "</TD></TR><TR><TD BGCOLOR=$bgchange><BR><A HREF=\"$linkdir$file\">$fileold</A> <font face=Verdana size=1>Size: $sizer Kb</font><BR><BR><font size=2>Questa pagina contiene <B><FONT COLOR=RED>$found</FONT></B> volte la parola <FONT COLOR=RED><B>$whatdoreplace</B></FONT>:</font> <UL>";
}
$file=$fileold;
for($new=1;$new<=$found;$new++){
$show[$new]=strip_tags($show[$new]);
$show[$new] = ereg_replace($whatdoreplace,"<FONT COLOR=RED><B>$whatdoreplace</FONT></B>",$show[$new]);
echo "<FONT SIZE=-1>";
print "<LI>$show[$new]";
}
echo "</UL></FONT></TD></TR>";
}
}
}
if($command[0]==0){
echo "<BR></TD></TR><TR><TD bgcolor=000000><CENTER><B><FONT FACE=VERDANA SIZE=5 color=red><b>Nessuna parola trovata!</b></font>";
}
echo "<BR></TD></TR><TR><TD BGCOLOR=00CCFF><LEFT><font face=Veradna size=1><b>Ricerca effettuata su $fchek pagine e in circa ";
$timey=time();
$timea=($timey-$timex);
echo " $timea secondi.</b>";
?>
</TD></TR></TABLE><BR>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -