book.php

(开头部分) 17KB

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

<?php session_start(); 

if($_GET['book']){
if($_POST['check']==$_SESSION['check_pic']){
	include("db.php");
$ip=$_SERVER['REMOTE_ADDR'];
mysql_query("INSERT INTO `".$ad."book` (`id` ,`name` ,`content` ,`ip` ,`time` ,`text` 
)VALUES (NULL , '{$_POST['name']}', '{$_POST['content']}', '{$ip}', NOW( ) , '');");

  echo"<script language=javascript>  
alert( \"恭喜你,留言成功!\"  );
location.href = \"book.php\"
</script>";
	}
	else 
die("<script language=javascript>  
alert( \"验证码错误,请重新输入验证码!\"  );
location.href = \"book.php\"
</script>");

	}
	
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>亿网家教网-留言</title>
<Meta name="keywords" content="亿网家教 亿网家教网 亿网家教中心 亿网数学家教 亿网英语家教 亿网钢琴家教 亿网大学生家教 亿网家教兼职">
<Meta name="description" content="亿网家教网引领亿网家教中介不断规范亿网家教服务,为广大学员提供亿网语文家教、亿网数学家教、亿网英语家教、亿网钢琴家教、亿网音乐家教等各学科的兼职家教老师和专职家庭教师服务,以及为亿网小学教师、亿网中学教师和亿网大学生家教提供家教兼职信息。">

<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="images/logo.ico" rel="shortcut icon" type="image/x-icon" /></head>
<script language="javascript">
function ShowPage()
{
	formpage.submit();
}
function check()
{
	if (document.form2.name.value==""){
	alert('姓名不能为空!');
	document.form2.name.focus();
	return false;
}
if (document.form2.content.value==""){
	alert('内容不能为空!');
	document.form2.content.focus();
	return false;
}
	if (document.form2.content.value.length>255){
		alert("对不起,内容不能超过255个字符");
		document.form2.content.focus();
	return false;
	}

if (document.form2.check.value==""){
	alert('验证码不能为空!');
	document.form2.check.focus();
	return false;
}
后面还有 436 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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