Example #1
0
             unset($info['password']);
         }
     }
     include "view/header.php";
     include "view/admin_info.php";
     include "view/footer.php";
     break;
 default:
     if (!empty($_GET['m']) && !empty($_GET['i'])) {
         switch ($_GET['m']) {
             case "deadmin":
                 $user->adminDeprivilegeAccount($_GET['i']);
                 header("Location: index.php?a=home");
                 break;
             case "admin":
                 $user->adminPrivilegeAccount($_GET['i']);
                 header("Location: index.php?a=home");
                 break;
             case "unlock":
                 $user->adminUnlockAccount($_GET['i']);
                 header("Location: index.php?a=home");
                 break;
             case "lock":
                 $user->adminLockAccount($_GET['i']);
                 header("Location: index.php?a=home");
                 break;
             case "del":
                 $user->adminDeleteAccount($_GET['i']);
                 header("Location: index.php?a=home");
                 break;
         }