⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show.php

📁 请在wish.php中修改文章系统的题目和管理员密码,默认密码为: wish 在此文件中修改文章系统的一些基本参数
💻 PHP
字号:
<?php
include("wish.php");
function wdbconvert ($post,$allow=array('pic'=>1,'flash'=>1,'fontsize'=>1)) {

	$post=str_replace("<p>","<br><br>",$post);
	$post=str_replace("<br>"," <br>",$post);
	$post=str_replace("[u]","<u>",$post);
	$post=str_replace("[/u]","</u>",$post);
	$post=str_replace("[b]","<b>",$post);
	$post=str_replace("[/b]","</b>",$post);
	$post=str_replace("[i]","<i>",$post);
	$post=str_replace("[/i]","</i>",$post);
	$post=str_replace("[br]","<br>",$post);
	$post=str_replace("[list]","<ul>",$post);
	$post=str_replace("[/list]","</ul>",$post);
	$post=str_replace("[olist]","<ol>",$post);
	$post=str_replace("[/olist]","</ol>",$post);
	$post=str_replace("[*]","<li>",$post);
	$post=str_replace("[hr]","<hr width=40% align=left>",$post);
	$post=str_replace("[sup]","<sup>",$post);
	$post=str_replace("[/sup]","</sup>",$post);
	$post=str_replace('[url=&quot;','[url="',$post);
	$post=str_replace('&quot;]','"]',$post);

	$pattern=array(
		"/\[font=([^\[]*)\](.+?)\[\/font\]/is",
		"/\[color=([#0-9a-z]{1,10})\](.+?)\[\/color\]/is",
		"/\[email=([^\[]*)\](.+?)\[\/email\]/is",
		"/\[email\]([^\[]*)\[\/email\]/is",
		"/\[url=([^\[]*)\](.+?)\[\/url\]/is",
		"/\[url\]www\.([^\[]*)\[\/url\]/is",
		"/\[url\]([^\[]*)\[\/url\]/is",
		"/\[quote\]\s*(.*?)\s*\[\/quote\]/is",
		"/(\[fly\])(.+?)(\[\/fly\])/is",
		"/(\[move\])(.+?)(\[\/move\])/is",
		"/(\[align=)(left|center|right)(\])(.+?)(\[\/align\])/is",
		"/(\[shadow=)(\S+?)(\,)(.+?)(\,)(.+?)(\])(.+?)(\[\/shadow\])/is",
		"/(\[glow=)(\S+?)(\,)(.+?)(\,)(.+?)(\])(.+?)(\[\/glow\])/is",
		"/\[code\](.+?)\[\/code\]/is"
		);
	
	$replacement=array(
		"<font face=\"\\1\">\\2</font>",
		"<font color=\"\\1\">\\2</font>",
		"<a href=\"mailto:\\1\">\\2</a>",
		"<a href=\"mailto:\\1\">\\1</a>",
		"<a href=\"\\1\" target=_blank>\\2</a>",
		"<a href=\"http://www.\\1\" target=_blank>\\1</a>",
		"<a href=\"\\1\" target=_blank>\\1</a>",
		"<table cellpadding=0 cellspacing=0 border=0 WIDTH=94% bgcolor=#000000 align=center><tr><td><table width=100% cellpadding=5 cellspacing=1 border=0><TR><TD BGCOLOR=#EFF3F9>\\1</table></table>",
		"<marquee width=90% behavior=alternate scrollamount=3>\\2</marquee>",
		"<MARQUEE scrollamount=3>\\2</MARQUEE>",
		"<DIV Align=\\2>\\4</DIV>",
		"<table width=\\2 style=\"filter:shadow(color=\\4, direction=\\6 ,strength=2)\">\\8</table>",
		"<table width=\\2 style=\"filter:glow(color=\\4, strength=\\6)\">\\8</table>",
		"<table border=0 width=95% align=center cellpadding=2 bgcolor=DDDDDF><tr><td><pre><font face='Courier New'>\\1</font></pre></td></tr></table>",
		);
	
	$post=preg_replace($pattern,$replacement,$post);

	if ($allow['pic']) {
	    $post=preg_replace("/\[img\]\s*(\S+?)\s*\[\/img\]/is","<img src=\\1 border=0>",$post);
		}
	if ($allow['flash']) {
	    $post=preg_replace("/(\[swf\])\s*(\S+?\.swf)\s*(\[\/swf\])/is","<PARAM NAME=PLAY VALUE=TRUE><PARAM NAME=LOOP VALUE=TRUE><PARAM NAME=QUALITY VALUE=HIGH><embed src=\"\\2\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\"></embed>",$post);
	    $post=preg_replace("/(\[FLASH=)(\S+?)(\,)(\S+?)(\])(\S+?)(\[\/FLASH\])/is","<OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" WIDTH=\\2 HEIGHT=\\4><PARAM NAME=MOVIE VALUE=\\6><PARAM NAME=PLAY VALUE=TRUE><PARAM NAME=LOOP VALUE=TRUE><PARAM NAME=QUALITY VALUE=HIGH><EMBED SRC=\\6 WIDTH=\\2 HEIGHT=\\4 PLAY=TRUE LOOP=TRUE QUALITY=HIGH></EMBED></OBJECT>",$post);
		}
	if ($allow['fontsize']) {
	    $post=eregi_replace("\\[size=([^\\[]*)\\]","<font size=\\1>",$post);
	    $post=str_replace("[/size]","</font>",$post);
		}

	return $post;
	}

if (!is_file("$datadir/$filename")) { 
	die ("<script>alert(\"非法提交数据!--→后果很严重,鱼鱼很生气^o^.\");history.back();</script>");
	}
if (strpos($filename,"/"))
echo '<script>alert("非法提交数据!--→后果很严重,鱼鱼很生气^o^.");history.back();</script>';


$file=explode("|hyenpkjvlg|",join("",file("$datadir/$filename")));

$count=str_replace("$file[0]|hyenpkjvlg|$file[1]|hyenpkjvlg|$file[2]|hyenpkjvlg|$file[3]","$file[0]|hyenpkjvlg|$file[1]|hyenpkjvlg|$file[2]|hyenpkjvlg|".($file[3]+1),join("",file("$datadir/$filename")));
$countfp=fopen("$datadir/$filename","w");
fwrite($countfp,$count);
fclose($countfp);
?>
<html>
<head>
<title>鱼鱼的个人文章 --→「 <?php echo "$file[0]"; ?>
」</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
BODY { cursor:url('../image/cur1.ani');SCROLLBAR-FACE-COLOR: #ffffff; FONT-SIZE: 9pt; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #cccccc; COLOR: #666666; SCROLLBAR-3DLIGHT-COLOR: #cccccc; SCROLLBAR-ARROW-COLOR: #cccccc; SCROLLBAR-TRACK-COLOR: #ffffff; FONT-FAMILY: "Verdana", "MS UI Gothic"; SCROLLBAR-DARKSHADOW-COLOR: #ffffff
; background-attachment: fixed; background-image: url(images/2akafuku1.gif); background-repeat: no-repeat; background-position: right 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=2, offy=2, positive=2); FONT-FAMILY: "Arial"; FONT-SIZE: 11pt; width:100%; COLOR: #999999}
</STYLE>
</head>
<body style="background-attachment : fixed" leftmargin="0" topmargin="20">
<center>
<p align="center"> 
  <p>
  <table border="1" borderColorDark="#ffffff" borderColorLight="#51bfe0" cellSpacing="0" width="70%" cellpadding="10">
    <tr>
      <td align="center">
        <table border="0" cellPadding="0" cellSpacing="0" width="100%">
          <tr>
        <td class=font align="middle"><p><br><?php echo "$file[0]"; ?></td>
      </tr>
      <tr>
        <td align="middle"><br>作者:<font color="red"><?php echo "$file[1]"; ?></font></td>
      </tr>
      <tr>
        <td><br><?php echo wdbconvert("$file[4]"); ?></td>
      </tr>
      <tr>
        <td align="middle"><hr color="#93EAFF" SIZE="1" width="100%">
        <p>
        <a href="javascript:window.external.AddFavorite('<?php echo "$php_self_url?filename=$filename"; ?>','<?php echo "$file[0]"; ?>')">收藏此文章</a>     <a href="javascript:window.print()">打印此文章</a>     <a href="post.php?filename=<?php echo "$filename"; ?>">编辑此文章</a>     <a href="del.php?filename=<?php echo "$filename"; ?>">删除此文章</a>
        <p>
        </td>
      </tr>
    </table>
      </td>
  </tr>
</table>
<p align="center"><a href="javascript:self.close();">『关闭窗口』</a>
</center>
</br><td align="center"><a href="http://wish.xaboy.cn"><b>▃◣http://wish.xaboy.cn鱼鱼的个人文章.</b></a></td>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -