diff -r 2cd8c1649ba9 -r 58094faf794d edit.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/edit.php Tue Apr 10 22:40:43 2007 +0000 @@ -0,0 +1,279 @@ + trancer nl> | +// | Sjeemz sjeemz nl> | +// +--------------------------------------------------------------------+ + +// +// $Id: edit.php,v 1.12 2003/05/10 20:10:47 azurazu Exp $ +// + +require_once("inc/toolkit.inc.php"); + +// Assigning records to user: Check for records owned by user + +if (isset($_POST["action"]) && $_POST["action"]=="record-user") { + foreach ($_POST["rowid"] as $x_user => $x_value){ + $x_userid = $db->getOne("SELECT id FROM record_owners WHERE user_id = '".$_POST["userid"]."' AND record_id='".$x_value."'"); + if (empty($x_userid)) { + $db->query("INSERT INTO record_owners SET user_id = '".$_POST["userid"]."',record_id='".$x_value."'"); + } + } +} + +$server_types = array("MASTER", "SLAVE", "NATIVE"); + +if(isset($_POST['type_change']) && in_array($_POST['newtype'], $server_types)) +{ + change_domain_type($_POST['newtype'], $_GET['id']); +} +if(isset($_POST["newowner"]) && is_numeric($_POST["domain"]) && is_numeric($_POST["newowner"])) +{ + add_owner($_POST["domain"], $_POST["newowner"]); +} + +if(isset($_POST["del_user"]) && is_numeric($_POST["del_user"]) && level(5)) +{ + delete_owner($_GET["id"], $_POST["del_user"]); +} + +include_once("inc/header.inc.php"); +?> +

Edit domain ""

+ +

This domain isnt owned by anyone yet, please assign someone

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Add an owner: + "> + + + +
 
+ Current listed owners: +
+ + + "> + +
 
Type of this domain:
Change type: + + + +
+
+ +DNS Admin >> + +

Number of records: + + + +

+ +
?id=" method="post"> + + + + + + + Sub-Owners"; } ?> + + + + + + + + + + + + + + + + + + +
 NameTypeContentPriorityTTL
+ ">[ edit record ] + ">[ delete record ] + + + + + +query("SELECT r.user_id,u.username FROM record_owners as r, users as u WHERE r.record_id='".$r['id']."' AND u.id=r.user_id"); +echo ""; +?> +
No records for this domain
+ + +
+ +arrow + + + +
+ + +

+ + +'" VALUE="Add record"> + + +  '" VALUE="Delete zone">