📄 post.php
字号:
<?phpinclude("wish.php");function mygetdate() { $array_date=getdate(); if ($array_date[mon]<10) { $array_date[mon]="0".$array_date[mon]; } if ($array_date[mday]<10) { $array_date[mday]="0".$array_date[mday]; } if ($array_date[hours]<10) { $array_date[hours]="0".$array_date[hours]; } if ($array_date[minutes]<10) { $array_date[minutes]="0".$array_date[minutes]; } if ($array_date[seconds]<10) { $array_date[seconds]="0".$array_date[seconds]; } $date[filename]=$array_date[year].$array_date[mon].$array_date[mday].$array_date[hours].$array_date[minutes].$array_date[seconds].".txt"; $date[date]=$array_date[year]."-".$array_date[mon]."-".$array_date[mday].".".$array_date[hours].":".$array_date[minutes]; return $date; }/// if (!is_file("$datadir/$filename")) { $date=mygetdate(); $filename=$date[filename]; $file[0]=""; $file[1]="鱼鱼"; $file[2]="$date[date]"; $file[3]="0"; $file[4]=""; $cancel="javascript:self.close()"; $type="添加文章"; }else { $file=explode("|hyenpkjvlg|",str_replace("<br>","\n",str_replace(" "," ",join("",file("$datadir/$filename"))))); $cancel="javascript:history.back()"; $type="编辑文章"; }if ($action=="post") { if ($title!="" and $writer!="" and $content!="" and $password==$adminpsd) { $fp=fopen("$datadir/$filename","w+"); $newfile=$title."|hyenpkjvlg|".$writer."|hyenpkjvlg|".$otherinfo."|hyenpkjvlg|".$content; $newfile=htmlspecialchars("$newfile"); $newfile=str_replace("\n","<br>","$newfile"); $newfile=str_replace(" "," ","$newfile"); $newfile=StripSlashes("$newfile"); fwrite($fp,"$newfile"); fclose($fp); echo "<meta http-equiv='Refresh' content='0; URL=show.php?filename=$filename'>"; } else { echo "<script>alert(\"标题、作者、内容不能为空或者密码错误!\");history.back();</script>"; } }?><html><head><title>鱼鱼的个人文章 -→「添加文章」</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style>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", "MS UI Gothic"; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; background-attachment: fixed; background-color: #FFFFFF}A { COLOR: #666666; TEXT-DECORATION: none}A:hover { COLOR: #51bfe0; BORDER-BOTTOM: 2pt dotted;background-color:#ffffff;cursor:url('../image/cur2.ani')}TABLE { FONT-SIZE: 9pt; FONT-FAMILY: Verdana,letter-spacing : 1pt ;line-height: 15pt;color:#666666}.font{FILTER: dropshadow(color=#cccccc, offx=1, offy=1, positive=2); FONT-FAMILY: "Arial"; FONT-SIZE: 10pt; width:100%; COLOR: #999999}</STYLE></head><body style="background-attachment : fixed" bgcolor="#FFFFFF" topmargin="20" background="images/gl-check1wc.gif"><center> <p> <table border="1" cellspacing="0" width="70%" bordercolorlight="#51bfe0" bordercolordark="#FFFFFF"> <tr> <td align="center"><?php echo "$type"; ?></td> </tr></table><table border="1" width="70%" cellspacing="0" bordercolorlight="#51bfe0" bordercolordark="#FFFFFF" bordercolor="#FFFFFF"> <tr> <td align="center"> <form method="post" action="post.php?action=post&filename=<?php echo "$filename"; ?>&otherinfo=<?php echo $file[2]."|hyenpkjvlg|".$file[3]; ?>"> 文章标题:<input type="text" name="title" size="60" style="border: 1 dashed #51bfe0" value="<?php echo "$file[0]"; ?>"><br> 文章作者:<input type="text" name="writer" size="24" style="border: 1 dashed #51bfe0" value="<?php echo "$file[1]"; ?>"> 管理密码:<input type="password" name="password" size="24" style="border: 1 dashed #51bfe0"><br><br>文章内容(本程序支持<a href="images/wdbcode.htm" target="_blank">WDB</a>代码):<br> <textarea rows="20" name="content" cols="66" style="border: 1 dashed #51bfe0"><?php echo "$file[4]"; ?></textarea><br><br> <input type="submit" value="提 交" style="background-color:#FFFFFF; border:0"> <input type="reset" value="复 原" style="background-color:#FFFFFF; border:0"> <input type="reset" value="取 消" style="background-color:#FFFFFF; border:0" onclick="<?php echo "$cancel"; ?>"> </form> </td> </tr></table></br><td align="center"><a href="http://wish.xaboy.cn"><b>▃◣http://wish.xaboy.cn鱼鱼的个人文章.</b></a></td></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -