소스 검색

Redirect to login instead

tags/rls1
kenn408k 7 년 전
부모
커밋
18f6c9f17a
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      classes/design.class.php

+ 1
- 1
classes/design.class.php 파일 보기

15
     public static function header($setup = array(), $level) { // Primary design function. This function is called on all pages, this is our header.
15
     public static function header($setup = array(), $level) { // Primary design function. This function is called on all pages, this is our header.
16
         if ($level > 0) {
16
         if ($level > 0) {
17
             if (!User::checkLevel($level)) {
17
             if (!User::checkLevel($level)) {
18
-                header('Location: ' . Config::$sys_url . '?page=error&r=level');
18
+                header('Location: ' . Config::$sys_url . '?page=login&r=level');
19
                 die("You are not authorized to view this page.");
19
                 die("You are not authorized to view this page.");
20
             }
20
             }
21
         }
21
         }

Loading…
취소
저장