fixed shits because of git windows dosen't care fucking case
This commit is contained in:
parent
0686829a5e
commit
1cecd5b508
|
|
@ -8,7 +8,7 @@
|
|||
require "../includes/session.inc.php";
|
||||
|
||||
// Check token, won't allow non-admin user to access
|
||||
if (!$admin->is_admin) header('Location: ../index.php?msg=看起来你并不是管理员');
|
||||
if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是管理员');
|
||||
|
||||
/*
|
||||
* No protection here,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* @Last Modified time: 2016-02-06 23:29:33
|
||||
*/
|
||||
require "../includes/session.inc.php";
|
||||
if (!$admin->is_admin) header('Location: ../index.php?msg=看起来你并不是管理员');
|
||||
if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是管理员');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
|
|
|||
2
ajax.php
2
ajax.php
|
|
@ -21,7 +21,7 @@ Database::checkConfig();
|
|||
|
||||
if (isset($_POST['uname'])) {
|
||||
$uname = $_POST['uname'];
|
||||
if (user::checkValidUname($uname)) {
|
||||
if (User::checkValidUname($uname)) {
|
||||
$user = new User($_POST['uname']);
|
||||
} else {
|
||||
Utils::raise(1, '无效的用户名。用户名只能包含数字,字母以及下划线。');
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* @Last Modified time: 2016-02-05 21:59:56
|
||||
*/
|
||||
|
||||
class utils
|
||||
class Utils
|
||||
{
|
||||
/**
|
||||
* Custom error handler
|
||||
Loading…
Reference in New Issue
Block a user