fixed shits because of git windows dosen't care fucking case

This commit is contained in:
printempw 2016-02-07 09:41:04 +08:00
parent 0686829a5e
commit 1cecd5b508
6 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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>

View File

@ -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, '无效的用户名。用户名只能包含数字,字母以及下划线。');

View File

@ -6,7 +6,7 @@
* @Last Modified time: 2016-02-05 21:59:56
*/
class utils
class Utils
{
/**
* Custom error handler