📄 index.php
字号:
<?phpinclude("wish.php");function myreaddir($dir) { $handle=opendir($dir); $i=0; while($file=readdir($handle)) { if (($file!=".")and($file!="..")) { $list[$i]=$file; $i=$i+1; } } closedir($handle); return $list; }$oldlist=myreaddir($datadir);sort($oldlist);if ($keyword=="") { $list=$oldlist; $posts=count($list); $firsttable="资料库上共有<font color=\"red\">$posts</font>篇文章 <a href=\"post.php\" target=\"_blank\">添加</a> <a href=\"javascript:window.external.AddFavorite('$php_self_url','$name')\">收藏</a> "; }else { $keyword=htmlspecialchars("$keyword"); $keyword=str_replace("\n","<br>","$keyword"); $keyword=StripSlashes("$keyword"); $ii=0; for ($i=0;$i<sizeof($oldlist);$i=$i+1) { $readfile=join("",file("$datadir/".$oldlist[$i])); $modifyfile=str_replace("$keyword",$keyword.$keyword,$readfile); if (strlen($readfile)!=strlen($modifyfile)) { $list[$ii]=$oldlist[$i]; $ii=$ii+1; } } $posts=count($list); $firsttable="服务器里共查找到<font color=\"red\">$posts</font>篇文章^o^. <a href=\"index.php\">返回首页</a> "; }?><html><head><title> <?php echo "$name"; ?></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><STYLE type=text/css>BODY {SCROLLBAR-FACE-COLOR: #ffffff; FONT-SIZE: 9pt; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #cccccc; COLOR: #666666; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #51bfe0; SCROLLBAR-TRACK-COLOR: #ffffff; FONT-FAMILY: "Verdana";SCROLLBAR-DARKSHADOW-COLOR: #ffffff; background-attachment: fixed; background-image: url(images/gl-check1wc.gif); background-repeat: no-repeat; background-position: left bottom; background-color: #FFFFFF}A { COLOR: #666666; TEXT-DECORATION: none}A:hover { COLOR: #51bfe0; BORDER-BOTTOM: 2pt dotted;background-color:#ffffff}TABLE { FONT-SIZE: 10pt; FONT-FAMILY: "Verdana";letter-spacing : 1pt ;line-height: 15pt;color:#333333}.font{FILTER: dropshadow(color=#cccccc, offx=1, offy=1, positive=2); FONT-FAMILY: "Arial"; FONT-SIZE: 10pt; width:100%; COLOR: #00FF00}.td{ font-size:9pt;font-family:Arial;}</STYLE></head><body bgcolor="#FFFFFF" topmargin="2"> <table width="95%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right"> <table border="0" width="100%" cellspacing="1"> <tr> <td width="100%"> <p align="center"><b><blink><font color="#000000" size="2">喜欢与不喜欢是不需要理由的.HTML是通用的.<br> 同样,也有些事情是不需要理由的,也找不出理由. 有任何问题请{<a href="http://www.btts.org/job" target="_blank">留言</a>}或{<a href="mailto:wish@xaboy.cn" target="_blank">发E-mail</a>}给我^o^.</font></blink></b></td> </tr> </table> </td> </tr> </table><center> <table border="1" cellspacing="0" bordercolorlight="#51bfe0" bordercolordark="#FFFFFF" width="75%"> <tr> <td class=font align="center"><font color="#000000"><b>文 章 标 题</b></font></td> <td class=font align="center" nowrap><font color="#000000"><b> 作 者 </b></font></td> <td class=font align="center" nowrap><font color="#000000"><b> 发 表 日 期 </b></font></td> <td class=font align="center" nowrap><font color="#000000"><b> 人 气 </b></font></td> </tr><?php if (!isset($page)) { $page=1; } for ($i=$posts-($number+1)*($page-1);$i>$posts-($number+1)*$page;$i=$i-1) { if ($list[$i]!="") { $file=explode("|hyenpkjvlg|",join("",file("$datadir/".$list[$i]))); echo " <tr>\n <td> <img src=images/hana.gif> <a href=\"show.php?filename=$list[$i]\" target=\"_blank\">$file[0]</a></td>\n <td align=\"center\">$file[1]</td>\n <td align=\"center\">$file[2]</td>\n <td align=\"center\">$file[3]</td>\n </tr>\n"; } }?></table> <table border="0" cellspacing="0" width="75%" bordercolorlight="#51bfe0" bordercolordark="#FFFFFF"> <tr> <td align="right"> <?php echo "$firsttable"; ?> </td> </tr> </table> <p><?php for ($i=1;$i<=ceil($posts/$number);$i=$i+1) { echo "[<a href=\"?page=$i\">$i</a>]"; } ?></p> <form action="index.php" method="post"><table> <tr> <td><input type="text" name="keyword" style="border: 1 dashed #51bfe0;background-color:transparent " size="27"></td> <td> <input type="image" src="images/search.gif" width="27" height="11">找资料啦~ </td> </tr></table></form> <br> <table width="50%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><a href="http://wish.xaboy.cn"><b>▃◣http://wish.xaboy.cn鱼鱼的个人文章.</b></a></td> </tr> </table> <table class=td width="50%" border="0" cellspacing="0" cellpadding="0"> </table></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -