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

📄 post.php

📁 集成了投票调查、流量统计、文件上传、留言版、论坛、软件下载、文章赏析、通讯录、网上购物 等板块 管理账户为peilei 密码为800901
💻 PHP
字号:
<?
// 注意,HTML代码不要使用“ " ” ,尽量使用 “ '”
//printLoginForm 'Part 1
//新风格专用风格模板
//版权所有 Bob Shen 2003
$po[0]="<script language=\"JavaScript1.2\">
<!--

helpstat = false;
stprompt = true;
basic = false;
clckcnt = 0;
var postmaxchars = $max_post_length;
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.FORM.submit();}}
}
function clckcntr() {
clckcnt++;
if(clckcnt > 1) {
	if(clckcnt > 2) { return false; }
	alert('$print_form[19]');
	return false;
}
return true;
}

function thelp(swtch){
if (swtch == 1){
	basic = false;
	stprompt = false;
	helpstat = true;
	} else if (swtch == 0) {
		helpstat = false;
		stprompt = false;
		basic = true;
	} else if (swtch == 2) {
		helpstat = false;
		basic = false;
		stprompt = true;
	}
}

function AddText(NewCode) {
document.FORM.articlecontent.value+=NewCode
}
function validate(theform) {
	if (theform.articletitle.value==\"\" || theform.articlecontent.value==\"\") {
		alert(\"$print_form[20]\");
		clckcnt=0;
		return false; }
	if (postmaxchars != 0) {
		if (theform.articlecontent.value.length > $max_post_length) {
			alert(\"$print_form[21] $max_post_length $print_form[22] \"+theform.articlecontent.value.length+\"$print_form[23]\");
			clckcnt=0;
			return false; }
		else { return true; }
	} else { return true; }
}
function checklength(theform) {
	if (postmaxchars != 0) { message = \"$print_form[24] $max_post_length $print_form[23]\"; }
	else { message = \"\"; }
	alert(\"$print_form[25] \"+theform.articlecontent.value.length+\" $print_form[23]\"+message);
}

//-->
</script>
<table width=$tablewidth border=0 cellspacing=0 bgcolor=$bordercolor cellpadding=0 align=center>
<script>
function DoTitle(addTitle) { 
var revisedTitle; 
var currentTitle = document.FORM.articletitle.value; 
revisedTitle = currentTitle+addTitle; 
document.FORM.articletitle.value=revisedTitle; 
document.FORM.articletitle.focus(); 
return; }
function DoComments(addTitle) { 
var revisedTitle; 
var currentTitle = document.FORM.articlecontent.value; revisedTitle = currentTitle+addTitle; document.FORM.articlecontent.value=revisedTitle; document.FORM.articlecontent.focus(); 
return; 
}</script>
<form name=\"FORM\" method=POST action=\"post.php\" onSubmit=\"return validate(this)\" enctype=\"multipart/form-data\">
<tr><td>
<table cellspacing=1 cellpadding=4 width=100% border=0>
<tr bgcolor=\"$titlecolor\" background=\"$tile_back\"> 
<td bgcolor=\"$titlecolor\" background=\"$tile_back\" colspan=3><b class=title>&nbsp$status</b>
</td>
</tr>
<tr bgcolor=$article_color1> 
<td valign=top width=25%><b>$print_form[26]</b></td>
<td valign=top width=50%>
              <SELECT name=font 
            onchange=DoTitle(this.options[this.selectedIndex].value)>
                <OPTION 
              selected value=\"\">$print_form[27]</OPTION>
                <OPTION value=$print_form[28]>$print_form[28]</OPTION>
                <OPTION value=$print_form[29]>$print_form[29]</OPTION>
                <OPTION value=$print_form[30]>$print_form[30]</OPTION>
                <OPTION value=$print_form[31]>$print_form[31]</OPTION>
                <OPTION value=$print_form[32]>$print_form[32]</OPTION>
                <OPTION value=$print_form[33]>$print_form[33]</OPTION>
                <OPTION value=$print_form[34]>$print_form[34]</OPTION>
                <OPTION value=$print_form[35]>$print_form[35]</OPTION>
                <OPTION value=$print_form[36]>$print_form[36]</OPTION>
                <OPTION value=$print_form[37]>$print_form[37]</OPTION>
                <OPTION value=$print_form[38]>$print_form[38]</OPTION>
                <OPTION value=$print_form[39]>$print_form[39]</OPTION>
              </SELECT>
<input value='$articletitle' maxlength=45 size=45 name=articletitle style=\"background-color:#FEFEFF; border: 1 double #B4B4B4\" onMouseOver = \"this.style.backgroundColor = '#E5F0FF'\" onMouseOut = \"this.style.backgroundColor = ''\">
</td>
<td align=center rowspan=2 bgcolor=$article_color1 width=25%>
<table cellspacing=0 cellpadding=3 border=0>
<tr>
<td align=center>
<table cellspacing=0 cellpadding=0 width=80 bgcolor=$bordercolor border=0><tr><td height=1></td></tr></table>
<table cellspacing=0 cellpadding=3 width=80 border=1 bordercolor=$bordercolor>
<tr bgcolor=$subcolor> 
<td align=middle><b>$thistimeshow</b></td>
</tr>
</table>
</td>
</tr>
<tr> 
<td align=middle>
<table cellspacing=0 cellpadding=0 width=80 bgcolor=$bordercolor border=0><tr><td height=1></td></tr></table>
<table cellspacing=0 cellpadding=3 width=80 border=1 bordercolor=$bordercolor>
<tr bgcolor=\"$subcolor\"> 
<td align=center> 
$thisdatashow
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor=$article_color2>
<td><b>$print_form[40]</b></td>
<td>
$infoones
</td>
</tr>$loginshows
<tr bgcolor=$article_color1> 
<td valign=top width=125> 
<b>$print_form[44]</b><br><br>
$echotwosysye
<b class=cau><a href=\"javascript:openScript('bmbcode.php',700,500)\"><font face=\"Courier New, Courier\">BMB Code</font></a></b> $print_form[45]<br>
$print_form[46] <a href=\"javascript:openScript('bmbcode.php',700,500)\"><b>$print_form[47]</b></a> $print_form[48]
<br><font face=verdana>$showsinfotwo</font>
	<script>function replac(){
if ((helpstat)||(basic)) {alert(\"$print_form[49]\");}
else {txt2=prompt(\"$print_form[50]\",\"\");
if (txt2 != null) {
if (txt2 != \"\") {txt=prompt(\"$print_form[51]\",txt2)}else {replac()}
var Otext = txt2; var Itext = txt; document.FORM.articlecontent.value = eval('FORM.articlecontent.value.replace(/'+Otext+'/'+'g'+',\"'+Itext+'\")')}}}
</script>
<br><br>$wemotinfoshow<br>
<B><a href=faq.php#emoticon>$print_form[52]</a>
</td>
<td colspan=2 align=left>

<!-- Panel bar -->
<table cellspacing=0 width=500 cellpadding=0 bgcolor=$bordercolor>
  <tr><td>
   <table cellspacing=1 cellpadding=3 width=100%>
    <tr><td bgcolor=$article_color2>
     <b>辅助面板:</b> [ <a href='editor/panel1.php' target=fontpanel><font color=000000>字体属性面板</font></a> -
     <a href='editor/panel2.php' target=fontpanel><font color=000000>字体特效面板</font></a> -
     <a href='editor/panel3.php' target=fontpanel><font color=000000>ASCII图案生成面板</font></a> ] - 点击切换<br>
     <hr size=1>
     <iframe name='fontpanel' frameborder=0 src='editor/panel2.php' width=100% height=30></iframe>
    </td></tr>
  </table>
 </td></tr>
</table>
<img src='' height=5><br>
<!-- Panel bar end -->

<textarea onkeydown=ctlent() name=\"articlecontent\" rows=12 cols=85 style=\"background-color:#F0F0f3; border: 1 double #B4B4B4\">$articlecontent</textarea>
<br>
<b>$print_form[53]</b><select name=\"helpmode\" onChange=\"thelp(document.FORM.helpmode.options[document.FORM.helpmode.selectedIndex].value)\">
<option value=2>$print_form[54]
<option value=1>$print_form[55]
<option value=0>$print_form[56]
</select> -- $print_form[57] &nbsp;
<a href=\"javascript:checklength(document.FORM);\">$print_form[58]</a>
<INPUT class=input3 type=checkbox CHECKED value=yes name=actioneot id=\"open_11\"><label for=\"open_11\">$print_form[59]</label> 
<SELECT onchange=DoComments(this.options[this.selectedIndex].value)>
<OPTION value=\"\" selected>$print_form[60]</OPTION>
$actinfoshows</SELECT>
</td>
</tr>

<tr bgcolor=$article_color1> 
<td colspan=3> 
<table width=100% border=0 cellspacing=1 cellpadding=2>
<tr> 
<td><b>$print_form[61]</b></td>
</tr>
$wdbemote
</table>
</td>
</tr>
<tr bgcolor=$article_color1> 
<td colspan=3> 
<table width=100% border=0 cellspacing=1 cellpadding=2>
<tr> 
<td align=center><b>$print_form[64]</b></td>

</tr>
<td ><input type=checkbox name=\"usesignature\" value=\"checkbox\" checked id=\"open_2\"><label for=\"open_2\">$print_form[65]</label> &nbsp;&nbsp;&nbsp;<input type=checkbox name=\"openbmbcode\" value=\"checkbox\" id=\"open_3\"><label for=\"open_3\">$print_form[66]</label>&nbsp;&nbsp;&nbsp;<input type=checkbox name=\"openbmbemot\" value=\"checkbox\" id=\"open_4\"><label for=\"open_4\">$print_form[67]</label>&nbsp;&nbsp;&nbsp;$output2info
$outputinfo<a href=javascript:replac()><b>$print_form[68]</b></a></td></table>
</td>
</tr>
<tr bgcolor=$article_color2>
	<td valign=top><font face=\"verdana, arial\">{$print_form[69]}[$print_form[70]{$leftuploadnum}]:</font><br>
	<font face=\"verdana,arial\">$print_form[71] $max_upload_size $print_form[72]</font><br>
	<font face=\"verdana,arial\">$print_form[73] $max_upload_post $print_form[74]</font></td>
	<td colspan=2 align=center><font face=\"verdana,arial\">
	$uploadfileshow
	$showtype $showaaash</font>

</td>
</tr>
<tr bgcolor=$article_color1 align=center>
<td colspan=3> 
<input onclick=\"return clckcntr();\" type=submit value=\"$print_form[75]\" style=\"height:20px;background-color:#f3f3f3;border:1 solid black\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\">
 &nbsp;&nbsp; 
 <input type=hidden value=2 name=step>
<input type=hidden value=\"$action\" name=action>
<input type=hidden value=\"$forumid\" name=forumid>
$echoinfotwo
 <input type=submit name=\"preview\" value=\"$print_form[76]\" style=\"height:20px;background-color:#f3f3f3;border:1 solid black\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\">
  </td>
 </tr>
 <tr bgcolor=\"$titlecolor\" background=\"$tile_back\"> 
  <td bgcolor=\"$titlecolor\" background=\"$tile_back\" colspan=3>$print_form[77]</td>
 </tr>
</table></td></tr></form>
</table><br>
	
		
";

$po[1]=<<<EOT

<table width=$tablewidth border=0 cellspacing=0 bgcolor=$bordercolor cellpadding=0 align=center>
<tr><td>
<table cellspacing=1 cellpadding=4 width=100% border=0>
<tr bgcolor="$titlecolor" background="$tile_back"> 
<td bgcolor="$titlecolor" background="$tile_back" colspan=3><b class=title>&nbsp $print_form[76]</b>
</td>
</tr>
<tr bgcolor=$article_color1> 
<td valign=top width=25%>$previewshow</td>
</tr></table></table><br>
EOT;

⌨️ 快捷键说明

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