Archived
1
0
Disbranĉigi 0
Ĉi tiu deponejo arĥiviĝis je 2024-01-28. Vi povas vidi kaj elŝuti dosierojn, sed ne povas puŝi nek raporti problemojn nek tirpeti.
blagoblag/u/oust/private/user_delete.php
Jenga Phoenix a987549ce8 Who knows?
2019-03-05 08:33:32 -06:00

34 lines
856 B
PHP

<?php
/* This file is free software: you can redistribute it and/or modify
it under the terms of version 3 of the GNU Affero General Public
License as published by the Free Software Foundation.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details. */
$depth = "../../../";
include "../../../res/lib/load.php";
$id = scrub($_GET['id']);
// -------------------------------------
if (user_logged_in() != $id) {
auth_enforce(user_logged_in(),
array("wizard", "archmage"), "obliterate users");
}
input_enforce(array($id),
array("id"),
array("user_id"));
// -------------------------------------
user_delete($id);
root_redirect("u/list");
?>