fixed small incorrect case spelling
This commit is contained in:
parent
901e318124
commit
5219aa7017
|
|
@ -3,7 +3,7 @@
|
|||
* @Author: prpr
|
||||
* @Date: 2016-02-04 13:53:55
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-06 23:29:34
|
||||
* @Last Modified time: 2016-02-08 22:06:43
|
||||
*/
|
||||
require "../includes/session.inc.php";
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ if (isset($_GET['action'])) {
|
|||
Utils::raise(1, '你没有选择任何文件哦');
|
||||
}
|
||||
} else if ($action == "change") {
|
||||
if (user::checkValidPwd($_POST['passwd'])) {
|
||||
if (User::checkValidPwd($_POST['passwd'])) {
|
||||
$user->changePasswd($_POST['passwd']);
|
||||
$json['errno'] = 0;
|
||||
$json['msg'] = "成功更改了 ".$_GET['uname']." 的密码。";
|
||||
|
|
|
|||
4
ajax.php
4
ajax.php
|
|
@ -3,7 +3,7 @@
|
|||
* @Author: printempw
|
||||
* @Date: 2016-01-16 23:01:33
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-06 23:12:17
|
||||
* @Last Modified time: 2016-02-08 22:06:36
|
||||
*
|
||||
* - login, register, logout
|
||||
* - upload, change, delete
|
||||
|
|
@ -55,7 +55,7 @@ if ($action == "login") {
|
|||
} else if ($action == "register") {
|
||||
if (checkPost('register')) {
|
||||
if (!$user->is_registered) {
|
||||
if (user::checkValidPwd($_POST['passwd'])) {
|
||||
if (User::checkValidPwd($_POST['passwd'])) {
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user