editpwd.php
来自「make project on java」· PHP 代码 · 共 31 行
PHP
31 行
<?php
include"../cache/config.inc.php";
include"begin.php";
adminlogin();
if (isset($_GET["edit"])) {
$reurl = "editpwd.php";
if (!$_POST["fidselect2"]) {
echoerror(6);
}
if ($_POST["fidselect2"] != $_POST["fidselect3"]) {
echoerror(7);
}
$passwordmd5 = md5($_POST['fidselect']);
$pwd = substr($passwordmd5, 0, 13) . substr($passwordmd5, -3);
if ($pwd == $password) {
$passwordmd5 = md5($_POST['fidselect2']);
$pwd = substr($passwordmd5, 0, 13) . substr($passwordmd5, -3);
mysql_query("update {$db_prefix}groupuser set password='$pwd' where username='$username' && groupid='$usergroupid'", $myconn);
echoioy(21);
} else {
echoerror(8);
}
}
require_once './template/header.htm';
require_once './template/editpwd.htm';
require_once './template/footer.htm';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?