<?php require_once '../class_lib.php'; require_once 'StudentAdmin.php'; require_once 'functions.php'; $admin = new StudentAdmin(); if ($admin->activateLogin()) { //Redirect to appropriate page if not ClassRep switch ($admin->getAdminType()) { case Admin::CLASS_REP: //Do nothing break; case Admin::WEBMASTER: header("location: ../webmaster"); break; case Admin::TREASURER: header("location: ../treasurer"); break; case Admin::LIBRARIAN: header("location: ../librarian"); break; case Admin::CLASS_REP: header("location: ../class_rep"); break; default: $admin->logoutAdmin(); break; } //Set page number $page = filter_input(INPUT_GET, "p"); if (empty($page)) {
<?php require_once '../class_lib.php'; require_once './TreasurerAdmin.php'; require_once './functions.php'; $admin = new StudentAdmin(); if ($admin->activateLogin()) { //Redirect to appropriate page if not ClassRep switch ($admin->getAdminType()) { case Admin::TREASURER: //Do nothing break; case Admin::CLASS_REP: header("location: ../class_rep"); break; case Admin::WEBMASTER: header("location: ../webmaster"); break; case Admin::LIBRARIAN: header("location: ../librarian"); break; case Admin::CLASS_REP: header("location: ../class_rep"); break; default: $admin->logoutAdmin(); break; } } else { //Set page number $page = filter_input(INPUT_GET, "p");