03_pass.php
来自「php 報修系統」· PHP 代码 · 共 24 行
PHP
24 行
<?php
include("../config.php");
include("../function.php");
session_start();
if($power_man!=$root)
header("location:err.php");
$power=$cdel.','.$cdis.','.$udel.','.$udis;
$link=mysql_pconnect($host,$user,$password)||die("can not link mysql");
$sql="select * from $table_auth where account='".$account."'";
$result=mysql_db_query($db,$sql);
$rows=mysql_fetch_array($result);
if($rows[name]){
header("location:03.php?alert=-1");
}else{
$sql="insert into $table_auth(name,account,passwd,power) values('".$name."','".$account."','".$password_one."','".$power."')";
mysql_db_query($db,$sql)||die("can not run sql");
header("location:03.php?alert=1");
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?