Esempio n. 1
0
     // Updates user from above form....
     /* This function accepts an array in the following format
     $userarray[0] = $userid
     $userarray[1] = $fullname
     $userarray[2] = $roleid
     */
     $user = new BaseUser();
     $userarray = array(filterSql($_POST['usr_id']), filterSql($_POST['fullname']), filterSql($_POST['roleID']));
     $user->updateUser($userarray);
     base_header("Location: base_useradmin.php?action=list");
     break;
 case "disableuser":
     // disable user -- Kevin
     $userid = filterSql($_GET['userid']);
     $BUser = new BaseUser();
     $BUser->disableUser($userid);
     base_header("Location: base_useradmin.php?action=list");
     break;
 case "enableuser":
     // enable user -- Kevin
     $userid = filterSql($_GET['userid']);
     $BUser = new BaseUser();
     $BUser->enableUser($userid);
     base_header("Location: base_useradmin.php?action=list");
     break;
 case "deleteuser":
     // Deletes user
     $userid = filterSql($_GET['userid']);
     $BUser = new BaseUser();
     $BUser->deleteUser($userid);
     base_header("Location: base_useradmin.php?action=list");