function deleteUser($user_id) { global $cfg; if (!IsSuperAdmin($user_id)) { DeleteThisUser($user_id); AuditAction($cfg["constants"]["admin"], _DELETE . " " . _USER . ": " . $user_id); } header("location: admin.php"); }
/** * deleteUser */ function admin_deleteUser() { global $cfg; $user_id = tfb_getRequestVar('user_id'); if (!IsSuperAdmin($user_id)) { DeleteThisUser($user_id); AuditAction($cfg["constants"]["admin"], $cfg['_DELETE'] . " " . $cfg['_USER'] . ": " . $user_id); } @header("location: admin.php"); exit; }