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

📄 box.php

📁 1.上传所有文件到你的空间。 2.把数据库文件FORUM.sql导入数据库。 3.修改config.php 和 data文件夹属性为0777。 4.后台管理地址:/admin/login.php
💻 PHP
字号:
<?
session_start();
require "fun.php";
require "config.php";
require "header.php";
?>
<head>
	<title>发布种子--<?=$sys_site_name?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <style type="text/css">
    </style>
</head>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f8f8f8">
  <tr>
    <td height="20"><blockquote>

    </blockquote>      <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td height="500" valign="top"><blockquote>
      <?
if($_SESSION['login_status']=="common1"){
$user_name=$_SESSION['username'];
if ($post)
		{
if (empty($parent))
			{
				$parent = 0;
			}
			write_card($title, $content, $writer, $parent, $adda);
		}		
$sort_data=file("$sys_data_dir/fl.php");
$num=count($sort_data);
if (empty($action))
{
//读取分类信息到表单
  
  	for($a=0;$a<=$num;$a++)
  	{
  		if($sort_data[$a]=="")break;
		$det=explode("|",$sort_data[$a]);
		$sort_info=$sort_info."<option value=\"$det[1]\">$det[0]</option>\n";
 	 }	}	
		?>
<script language="JavaScript">
	function check(obj)
	{
		var checkok = true;
		if (obj.title.value == "")
		{
			alert ("请检查您的标题,不可以为空!");
			obj.title.focus();
			return false;
		}
		if (obj.userfile.value == "")
		{
			alert ("请检查您的种子地址,不可以为空!");
			obj.userfile.focus();
			return false;
		}
		if (obj.content.value == "")
		{
			alert ("请检查您的电影简介,不可以为空!");
			obj.title.focus();
			return false;
		}
		return checkok;
	}
</script>

<html>
<head>
	<title><?=$sys_site_name?>---我要发布种子</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="admin/template/css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
.STYLE2 {
	color: #000000;
	font-weight: bold;
}
-->
    </style>
</head>
<body bgcolor="#FFFFFF">
	
		<table width="240" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFCCFF">
		<tbody>
			<tr>
				<td>
					<table border="1" cellSpacing="0"  width="100%" bgcolor="#eeeecc">
					<tr>
						<td valign="top">
							<form name="frmwrite" method="post" enctype="multipart/form-data" action="ok.php" onSubmit="return check(document.frmwrite)">
							 	 <table bgcolor="#dff0e7" border="0" cellSpacing="0" align="center" width="100%"  >
										<input type="hidden" name="writer" value="<?=$user_name;?>">
										<td colspan="2" align="center" bgcolor="#FF66FF">
										  <span class="STYLE2">发布种子</span>										</td>
									</tr>
									<tr>
										<td align="center" colSpan="2">
											<table border="0" width="100%" cellSpacing="0" >
												<tr>
													<td bgcolor="#FFCCFF">
														<strong>电影名称:</strong>
												  <input type="text" maxLength="100" name="title" size="50">												  </td>
												</tr>

												<tr>
													<td bgcolor="#FFCCFF">	<strong>电影分类:</strong>													  
													  <select name="fl">

									<?=$sort_info;?>
								</select>										</td>
												</tr>


												<tr>

													<td bgcolor="#FFCCFF">

										
                                                      <strong>上传种子:</strong>
                                                  <input type="file" id="userfile" name="userfile" size="39">												  </td>
												</tr>

									<tr>

													<td bgcolor="#FFCCFF">

												

												

														<div align="left">

															<strong>电影简介:</strong>插入图片请用 [img]图片地址[/img]													</div>
  													
<br>
														<textarea cols="60" name="content" rows="10" ></textarea></td>
												</tr>

												<tr>

													<td bgcolor="#FFCCFF">

														<p align="center">&nbsp;														</p>

														<p align="center">

															<input type="submit" value="发送" name="post">

															<input type="reset" value="取消重写">
													</p>													</td>
												</tr>
											</table>

										</td>

									</tr>

								</table>

						</td>

					</tr>

				</table>

			</td>

		</tr>

		</tbody>

</table>



	</center>



</body>

</html>
<?php

}
else
{
	echo "您还没有登录,请您先登录,<a href=login.php>点这里进入登录页面</a>";
}
require "footer.php";?>

⌨️ 快捷键说明

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