diff -r 2cd8c1649ba9 -r 58094faf794d delete_user.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/delete_user.php Tue Apr 10 22:40:43 2007 +0000 @@ -0,0 +1,111 @@ + trancer nl> | +// | Sjeemz sjeemz nl> | +// +--------------------------------------------------------------------+ + +// +// $Id: delete_user.php,v 1.9 2003/01/01 22:33:46 azurazu Exp $ +// + +require_once("inc/toolkit.inc.php"); + +$id = ($_POST["id"]) ? $_POST["id"] : $_GET["id"]; + +if(isset($id)) +{ + if($_POST["confirm"] == '1') + { + $domain = is_array($_POST["domain"]) ? $_POST["domain"] : $domain = array(); + $delete = is_array($_POST["delete"]) ? $_POST["delete"] : $delete = array(); + + if(count($domain) > 0) + { + foreach ($domain as $dom => $newowner) + { + if (!in_array($dom, $delete)) + { + add_owner($dom, $newowner); + } + } + } + if(count($delete) > 0) + { + foreach ($delete as $del) + { + delete_domain($del); + } + } + + delete_user($id); + clean_page($BASE_URL . $BASE_PATH . "users.php"); + } + include_once("inc/header.inc.php"); + ?>

Delete user ""

+
+ 0) + { + ?>This user has access to the following domain(s):
+ + +
DeleteNameNew owner
"> NAME="delete[]" VALUE="">
getOne("select count(id) from zones where owner=$id")) != 0) + { + $message .= " This user has access to $numrows domain(s), by deleting him you will also delete these domains"; + } + + ?> +


+ + +
+