This repository was archived by the owner on May 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +36
-2
lines changed
Expand file tree Collapse file tree 10 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 99$ admin = new AdminController ();
1010Session::init ();
1111
12+ if (!Session::isLogged ()) {
13+ Util::redirect ('/auth/login.php ' );
14+ }
1215// Fetch user data
1316$ userList = $ admin ->getUserArray ();
1417$ bannedUserList = $ admin ->getbannedArray ();
Original file line number Diff line number Diff line change 99$ admin = new AdminController ();
1010Session::init ();
1111
12+ if (!Session::isLogged ()) {
13+ Util::redirect ('/auth/login.php ' );
14+ }
15+
1216// Get session username
1317$ username = Session::get ("username " );
1418
Original file line number Diff line number Diff line change 88$ admin = new AdminController ();
99Session::init ();
1010
11+ if (!Session::isLogged ()) {
12+ Util::redirect ('/auth/login.php ' );
13+ }
14+
1115// Get session username and user list
1216$ username = Session::get ("username " );
1317$ userList = $ admin ->getUserArray ();
Original file line number Diff line number Diff line change 1010
1111Session::init ();
1212
13- Util::adminCheck ();
13+ if (!Session::isLogged ()) {
14+ Util::redirect ('/auth/login.php ' );
15+ }
1416
1517$ username = Session::get ("username " );
1618$ uid = Session::get ("uid " );
1719
1820$ sub = $ user ->getSubStatus ();
1921
2022Util::banCheck ();
23+ Util::checktoken ();
24+ Util::suppCheck ();
2125Util::head ("Admin Panel " );
2226
2327// Handle POST request
Original file line number Diff line number Diff line change 88$ admin = new AdminController ();
99Session::init ();
1010
11+ if (!Session::isLogged ()) {
12+ Util::redirect ('/auth/login.php ' );
13+ }
14+
1115// Security checks and page setup
1216Util::banCheck ();
1317Util::checktoken ();
Original file line number Diff line number Diff line change 88$ admin = new AdminController ();
99
1010Session::init ();
11+ if (!Session::isLogged ()) {
12+ Util::redirect ('/auth/login.php ' );
13+ }
1114
1215$ userList = $ admin ->getUserArray ();
1316$ username = Session::get ('username ' );
Original file line number Diff line number Diff line change 88$ admin = new AdminController ();
99
1010Session::init ();
11+ if (!Session::isLogged ()) {
12+ Util::redirect ('/auth/login.php ' );
13+ }
1114
1215$ username = Session::get ("username " );
1316
Original file line number Diff line number Diff line change 88$ admin = new AdminController ();
99Session::init ();
1010
11+ if (!Session::isLogged ()) {
12+ Util::redirect ('/auth/login.php ' );
13+ }
1114// Get session username and user list
1215$ username = Session::get ("username " );
1316$ userList = $ admin ->getUserArray ();
Original file line number Diff line number Diff line change 44
55Session::init ();
66
7+ if (!Session::isLogged ()) {
8+ Util::redirect ('/auth/login.php ' );
9+ }
10+
711$ user = new UserController ();
812$ user ->logoutUser ();
913
Original file line number Diff line number Diff line change 88
99
1010Session::init ();
11-
11+ if (!Session::isLogged ()) {
12+ Util::redirect ('/auth/login.php ' );
13+ }
1214
1315$ username = Session::get ("username " );
1416$ uid = Session::get ("uid " );
You can’t perform that action at this time.
0 commit comments