Signed-off-by: gaoyuheng <gaoyuheng@yuheng.hl.cn>

This commit is contained in:
2025-04-04 21:54:50 +08:00
parent 094c3ea04d
commit a4f8ba4440
157 changed files with 7732 additions and 0 deletions

19
admin/regist.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
include_once("../common/init.php");
if ($_POST){
$row = db_get_row("select * from user where studentid='". $_POST["studentid"] ."'");
if ($row["id"]) {
goBakMsg("学号已存在");
die;
}
$data = array();
$data["studentid"] = "'". $_POST["studentid"] ."'";
$data["tel"] = "'". $_POST["tel"] ."'";
$data["password"] = "'". md5($_POST["password"]) ."'";
$data['stuname'] = "'".$_POST['stuname']."'";
$res = db_add("user", $data);
urlMsg("注册成功", "login.php");
die;
}
?>