yhzhgl.php

(开头部分) 3KB

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

<?php
session_start();
if($_SESSION['cx']!="超级管理员")
{
	echo "<script>javascript:alert('对不起,您没有该权限');history.back();</script>";
	exit;
}
include_once 'conn.php';
	$addnew=$_POST["addnew"];
	if($addnew=="1")
	{
	$username=$_POST['username'];
	$pwd=$_POST['pwd1'];
	$cx=$_POST['cx'];
	$sql="select * from allusers where username='$username' and pwd='$pwd'";
		$query=mysql_query($sql);
		$rowscount=mysql_num_rows($query);
		if($rowscount>0)
			{	
					echo "<script language='javascript'>alert('该用户名已经存在,请换其他用户名!');history.back();</script>";
			}
			else
			{
					$sql="insert into allusers(username,pwd,cx) values('$username','$pwd','$cx')";
					mysql_query($sql); 
					echo "<script language='javascript'>alert('操作成功!');location.href='yhzhgl.php';</script>";
			}
	 }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<p>添加新管理员:</p>
<script language="javascript">
	function check()
	{
		if(document.form1.username.value=="")
		{
			alert("请输入用户名");
			document.form1.username.focus();
			return false;
		}
		if(document.form1.pwd1.value=="")
		{
			alert("请输入密码");
			document.form1.pwd1.focus();
			return false;
		}
		if(document.form1.pwd2.value=="")
		{
			alert("请输入确认密码");
			document.form1.pwd2.focus();
			return false;
		}
后面还有 86 行代码,购买后查看完整代码

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

AI 解读 AI

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

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