admin/add_kynews.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php 
include("admin.php");
include("fckeditor.php");
$sBasePath=$_SERVER['PHP_SELF'];
$sBasePath=dirname($sBasepath);
$ed= new FCKeditor('content');
$ed->BasePath=$sBasePath;
if($_POST['fenlei']&&$_POST['content']){
mysql_query("INSERT INTO `".$ad."news` (`id` ,`title` ,`fenlei` ,`fenlei1` ,`text` ,`content` ,`laiyuan` ,`yuedu` ,`time` )
VALUES (NULL , '{$_POST['title']}', '{$_POST['fenlei']}', '{$_POST['fenlei1']}', '', '{$_POST['content']}', '{$_POST['laiyuan']}', '', NOW( ) );");
  echo"<script language=javascript>  
alert( \"添加信息成功!\"  );
location.href = \"add_news.php\"
</script>";
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>科目管理</title>
<link href="main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>

<body>
<p>&nbsp;</p>
<form name="PosForm" method="post" action="" style="margin:0">
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" class="td_title">&nbsp;考研频道添加</td>
		</tr>
		<tr>
			<td height="23" class="td_content"><p>资讯分类:
			    <select name="fenlei1" id="fenlei1">
			      <option value="院校信息">院校信息</option>
			      <option value="考研新闻">考研新闻</option>
			      <option value="考研指南">考研指南</option>
			      <option value="复习指导">复习指导</option>
			      <option value="英语学习">英语学习</option>
                </select> 
			    &nbsp;&nbsp;
			    <input name="fenlei" type="hidden" id="fenlei" value="考研频道">
			    <br><br>资讯标题:
			    <input name="title" type="text" id="title" size="50">
			  <br>
              <br>
资讯内容:<?php $ed->Create(); ?>
			
<br><br>
			    <input name="Submit" type="submit" class="input_1" value="确定添加">          
          </p></td>
		</tr>
	</table>
	<br>
</form>
</body>
后面还有 1 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。