1 Star 0 Fork 16

kali/极速云聊

forked from JSR代码喵/极速云聊 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pwd.php 3.76 KB
一键复制 编辑 原始数据 按行查看 历史
再遇雌鹿 提交于 2023-02-23 11:53 . update pwd.php.
<?php
include './includes/common.php';
if($_SESSION['islogin']==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
$ltsid=$_GET['ltsid'];
$ltsid=intval($ltsid);
$sql="select * from Chat where id = ".$ltsid;
$result = mysqli_query($conn,$sql);
$row = mysqli_fetch_assoc($result);
if($row['id']==''){
sysmsg('聊天室ID不存在');
}
$sql="select * from User where user = '".$_SESSION['user']."'";
$rs=mysqli_query($conn,$sql);
$res = mysqli_fetch_assoc($rs);
$_SESSION['id'] = $res['id'];
$_SESSION['name'] = $res['name'];
$_SESSION['money'] = $res['money'];
$_SESSION['admin'] = $res['admin'];
$_SESSION['qq'] = $res['qq'];
$_SESSION['zt'] = $res['zt'];
$_SESSION['lts'] = $res['lts'];
$_SESSION['ylts'] = $res['ylts'];
if($res["zt"]=='1'){
exit(sysmsg('当前帐户已被封禁<br/>详情请咨询QQ:'.$admin['qq']."<br/>请后续规范使用!"));
}
?>
<html>
<head>
<meta charset="utf-8">
<title>
密码验证
</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="./assets/css/index.css" media="all">
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="./assets/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="./assets/js/index.js"></script>
</head>
<body>
<div class="x-nav">
<span class="layui-breadcrumb">
<a href="list.php">首页</a>
<a>
<cite>密码验证</cite></a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div class="layui-tab-content" >
<div class="layui-tab-item layui-show">
<form class="am-form am-form-horizontal" action="/api/pwd.php?ltsid=<?php echo $ltsid ?>" method="post" name="loghitoke">
<div class="layui-form-item">
<label class="layui-form-label">
<span class='x-red'></span>聊天室ID
</label>
<div class="layui-input-block">
<input type="text" placeholder="<?php echo $ltsid ?>" class="layui-input" readonly/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">
<span class='x-red'>*</span>密码
</label>
<div class="layui-input-block">
<input type="text" name="pwd" placeholder=""
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<button class="layui-btn" type="submit">
验证
</button>
</div>
</form>
<div style="height:100px;"></div>
</div>
<script src="./assets/lib/layui/layui.js" charset="utf-8"></script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/otyu/phpchat.git
git@gitee.com:otyu/phpchat.git
otyu
phpchat
极速云聊
master

搜索帮助