1 Star 2 Fork 1

chen / IF.SVNAdmin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
userchangepass.php 815 Bytes
一键复制 编辑 原始数据 按行查看 历史
chen 提交于 2020-02-12 14:09 . 1、首次提交
<?php
include("include/config.inc.php");
$appEngine->forwardInvalidModule(!$appEngine->isUserEditActive());
$appEngine->checkUserAuthentication(true, ACL_MOD_USER, ACL_ACTION_CHANGEPASS);
$appTR->loadModule("userchangepass");
// Action handling.
// Form request to create the user
$create = check_request_var('changepass');
if ($create)
{
$appEngine->handleAction('change_password');
}
$encUsername = get_request_var("username");
$username = rawurldecode($encUsername);
$sessUser = $appEngine->getSessionUsername();
if ($sessUser != NULL)
{
if ($username == NULL)
{
$username = $sessUser;
}
if ($sessUser != $username)
{
$appEngine->checkUserAuthentication(true, ACL_MOD_USER, ACL_ACTION_CHANGEPASS_OTHER);
}
}
SetValue("Username", $username);
ProcessTemplate("user/userchangepassword.html.php");
?>
PHP
1
https://gitee.com/uxue/IF.SVNAdmin.git
git@gitee.com:uxue/IF.SVNAdmin.git
uxue
IF.SVNAdmin
IF.SVNAdmin
master

搜索帮助