From f1418832a07950b64b6c38c8fec5cf7342e89469 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Mon, 30 Jul 2007 21:11:09 +0000 Subject: [PATCH] Fixes in the listview plugin_listviewfirst version of the dns module. --- interface/lib/classes/plugin_listview.inc.php | 206 ++++++++--------- interface/lib/classes/tform_actions.inc.php | 26 +-- interface/web/dns/dns_a_edit.php | 72 ++++++ interface/web/dns/dns_a_list.php | 27 +++ interface/web/dns/dns_alias_edit.php | 72 ++++++ interface/web/dns/dns_cname_edit.php | 72 ++++++ interface/web/dns/dns_hinfo_edit.php | 72 ++++++ interface/web/dns/dns_mx_edit.php | 72 ++++++ interface/web/dns/dns_ns_edit.php | 72 ++++++ interface/web/dns/dns_ptr_edit.php | 72 ++++++ interface/web/dns/dns_rp_edit.php | 72 ++++++ interface/web/dns/dns_rr_del.php | 54 +++++ interface/web/dns/dns_soa_edit.php | 70 ++++++ interface/web/dns/dns_soa_list.php | 27 +++ interface/web/dns/dns_srv_edit.php | 72 ++++++ interface/web/dns/dns_txt_edit.php | 72 ++++++ interface/web/dns/form/dns_a.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_alias.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_cname.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_hinfo.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_mx.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_ns.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_ptr.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_rp.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_soa.tform.php | 212 ++++++++++++++++++ interface/web/dns/form/dns_srv.tform.php | 145 ++++++++++++ interface/web/dns/form/dns_txt.tform.php | 145 ++++++++++++ interface/web/dns/lib/admin.conf.php | 2 + interface/web/dns/lib/lang/en_dns_a.lng | 11 + interface/web/dns/lib/lang/en_dns_a_list.lng | 15 ++ interface/web/dns/lib/lang/en_dns_alias.lng | 11 + interface/web/dns/lib/lang/en_dns_cname.lng | 11 + interface/web/dns/lib/lang/en_dns_hinfo.lng | 11 + interface/web/dns/lib/lang/en_dns_mx.lng | 11 + interface/web/dns/lib/lang/en_dns_ns.lng | 11 + interface/web/dns/lib/lang/en_dns_ptr.lng | 11 + interface/web/dns/lib/lang/en_dns_rp.lng | 11 + interface/web/dns/lib/lang/en_dns_soa.lng | 16 ++ .../web/dns/lib/lang/en_dns_soa_list.lng | 15 ++ interface/web/dns/lib/lang/en_dns_srv.lng | 11 + interface/web/dns/lib/lang/en_dns_txt.lng | 11 + interface/web/dns/lib/module.conf.php | 26 +++ interface/web/dns/list/dns_a.list.php | 109 +++++++++ interface/web/dns/list/dns_soa.list.php | 112 +++++++++ interface/web/dns/templates/dns_a_edit.htm | 30 +++ interface/web/dns/templates/dns_a_list.htm | 36 +++ .../web/dns/templates/dns_alias_edit.htm | 30 +++ .../web/dns/templates/dns_cname_edit.htm | 30 +++ .../web/dns/templates/dns_hinfo_edit.htm | 30 +++ interface/web/dns/templates/dns_mx_edit.htm | 30 +++ interface/web/dns/templates/dns_ns_edit.htm | 30 +++ interface/web/dns/templates/dns_ptr_edit.htm | 30 +++ .../web/dns/templates/dns_records_edit.htm | 10 + interface/web/dns/templates/dns_rp_edit.htm | 30 +++ interface/web/dns/templates/dns_soa_edit.htm | 61 +++++ interface/web/dns/templates/dns_soa_list.htm | 34 +++ interface/web/dns/templates/dns_srv_edit.htm | 30 +++ interface/web/dns/templates/dns_txt_edit.htm | 30 +++ interface/web/dns_old/lib/module.conf.php | 12 +- 59 files changed, 3529 insertions(+), 121 deletions(-) create mode 100644 interface/web/dns/dns_a_edit.php create mode 100644 interface/web/dns/dns_a_list.php create mode 100644 interface/web/dns/dns_alias_edit.php create mode 100644 interface/web/dns/dns_cname_edit.php create mode 100644 interface/web/dns/dns_hinfo_edit.php create mode 100644 interface/web/dns/dns_mx_edit.php create mode 100644 interface/web/dns/dns_ns_edit.php create mode 100644 interface/web/dns/dns_ptr_edit.php create mode 100644 interface/web/dns/dns_rp_edit.php create mode 100644 interface/web/dns/dns_rr_del.php create mode 100644 interface/web/dns/dns_soa_edit.php create mode 100644 interface/web/dns/dns_soa_list.php create mode 100644 interface/web/dns/dns_srv_edit.php create mode 100644 interface/web/dns/dns_txt_edit.php create mode 100644 interface/web/dns/form/dns_a.tform.php create mode 100644 interface/web/dns/form/dns_alias.tform.php create mode 100644 interface/web/dns/form/dns_cname.tform.php create mode 100644 interface/web/dns/form/dns_hinfo.tform.php create mode 100644 interface/web/dns/form/dns_mx.tform.php create mode 100644 interface/web/dns/form/dns_ns.tform.php create mode 100644 interface/web/dns/form/dns_ptr.tform.php create mode 100644 interface/web/dns/form/dns_rp.tform.php create mode 100644 interface/web/dns/form/dns_soa.tform.php create mode 100644 interface/web/dns/form/dns_srv.tform.php create mode 100644 interface/web/dns/form/dns_txt.tform.php create mode 100644 interface/web/dns/lib/admin.conf.php create mode 100644 interface/web/dns/lib/lang/en_dns_a.lng create mode 100644 interface/web/dns/lib/lang/en_dns_a_list.lng create mode 100644 interface/web/dns/lib/lang/en_dns_alias.lng create mode 100644 interface/web/dns/lib/lang/en_dns_cname.lng create mode 100644 interface/web/dns/lib/lang/en_dns_hinfo.lng create mode 100644 interface/web/dns/lib/lang/en_dns_mx.lng create mode 100644 interface/web/dns/lib/lang/en_dns_ns.lng create mode 100644 interface/web/dns/lib/lang/en_dns_ptr.lng create mode 100644 interface/web/dns/lib/lang/en_dns_rp.lng create mode 100644 interface/web/dns/lib/lang/en_dns_soa.lng create mode 100644 interface/web/dns/lib/lang/en_dns_soa_list.lng create mode 100644 interface/web/dns/lib/lang/en_dns_srv.lng create mode 100644 interface/web/dns/lib/lang/en_dns_txt.lng create mode 100644 interface/web/dns/lib/module.conf.php create mode 100644 interface/web/dns/list/dns_a.list.php create mode 100644 interface/web/dns/list/dns_soa.list.php create mode 100644 interface/web/dns/templates/dns_a_edit.htm create mode 100644 interface/web/dns/templates/dns_a_list.htm create mode 100644 interface/web/dns/templates/dns_alias_edit.htm create mode 100644 interface/web/dns/templates/dns_cname_edit.htm create mode 100644 interface/web/dns/templates/dns_hinfo_edit.htm create mode 100644 interface/web/dns/templates/dns_mx_edit.htm create mode 100644 interface/web/dns/templates/dns_ns_edit.htm create mode 100644 interface/web/dns/templates/dns_ptr_edit.htm create mode 100644 interface/web/dns/templates/dns_records_edit.htm create mode 100644 interface/web/dns/templates/dns_rp_edit.htm create mode 100644 interface/web/dns/templates/dns_soa_edit.htm create mode 100644 interface/web/dns/templates/dns_soa_list.htm create mode 100644 interface/web/dns/templates/dns_srv_edit.htm create mode 100644 interface/web/dns/templates/dns_txt_edit.htm diff --git a/interface/lib/classes/plugin_listview.inc.php b/interface/lib/classes/plugin_listview.inc.php index 32fe3014b..762e5a721 100644 --- a/interface/lib/classes/plugin_listview.inc.php +++ b/interface/lib/classes/plugin_listview.inc.php @@ -1,103 +1,105 @@ -uses('listform'); - $app->listform->loadListDef($this->options["listdef"]); - - //$app->listform->SQLExtWhere = "type = 'alias'"; - - $listTpl = new tpl; - $listTpl->newTemplate('templates/'.$app->listform->listDef["name"].'_list.htm'); - - //die(print_r($app->tform_actions)); - - // Changing some of the list values to reflect that the list is called within a tform page - $app->listform->listDef["file"] = $app->tform->formDef["action"]; - // $app->listform->listDef["page_params"] = "&id=".$app->tform_actions->id."&next_tab=".$_SESSION["s"]["form"]["tab"]; - $app->listform->listDef["page_params"] = "&id=".$_REQUEST["id"]."&next_tab=".$_SESSION["s"]["form"]["tab"]; - - - // Generate the SQL for searching - if($app->listform->listDef["auth"] != 'no') { - if($_SESSION["s"]["user"]["typ"] == "admin") { - $sql_where = ""; - } else { - $sql_where = $app->tform->getAuthSQL('r')." and"; - } - } - - if($this->options["sqlextwhere"] != '') { - $sql_where .= " ".$this->options["sqlextwhere"]." and"; - } - - $sql_where = $app->listform->getSearchSQL($sql_where); - $listTpl->setVar($app->listform->searchValues); - - // Generate SQL for paging - $limit_sql = $app->listform->getPagingSQL($sql_where); - $listTpl->setVar("paging",$app->listform->pagingHTML); - - - - // Get the data - $records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $limit_sql"); - - $bgcolor = "#FFFFFF"; - if(is_array($records)) { - $idx_key = $app->listform->listDef["table_idx"]; - foreach($records as $rec) { - - $rec = $app->listform->decode($rec); - - // Change of color - $bgcolor = ($bgcolor == "#FFFFFF")?"#EEEEEE":"#FFFFFF"; - $rec["bgcolor"] = $bgcolor; - - // substitute value for select fields - foreach($app->listform->listDef["item"] as $field) { - $key = $field["field"]; - if($field['formtype'] == "SELECT") { - $rec[$key] = $field['value'][$rec[$key]]; - } - } - - // The variable "id" contains always the index field - $rec["id"] = $rec[$idx_key]; - - $records_new[] = $rec; - } - } - - $listTpl->setLoop('records',$records_new); - - // Loading language field - $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng"; - include($lng_file); - $listTpl->setVar($wb); - - // Setting Returnto information in the session - $list_name = $app->listform->listDef["name"]; - $_SESSION["s"]["list"][$list_name]["parent_id"] = $app->tform_actions->id; - $_SESSION["s"]["list"][$list_name]["parent_name"] = $app->tform->formDef["name"]; - $_SESSION["s"]["list"][$list_name]["parent_tab"] = $_SESSION["s"]["form"]["tab"]; - $_SESSION["s"]["list"][$list_name]["parent_script"] = $app->tform->formDef["action"]; - $_SESSION["s"]["form"]["return_to"] = $list_name; - - return $listTpl->grab(); - - } -} - +uses('listform'); + $app->listform->loadListDef($this->options["listdef"]); + + //$app->listform->SQLExtWhere = "type = 'alias'"; + + $listTpl = new tpl; + $listTpl->newTemplate('templates/'.$app->listform->listDef["name"].'_list.htm'); + + //die(print_r($app->tform_actions)); + + // Changing some of the list values to reflect that the list is called within a tform page + $app->listform->listDef["file"] = $app->tform->formDef["action"]; + // $app->listform->listDef["page_params"] = "&id=".$app->tform_actions->id."&next_tab=".$_SESSION["s"]["form"]["tab"]; + $app->listform->listDef["page_params"] = "&id=".$this->form->id."&next_tab=".$_SESSION["s"]["form"]["tab"]; + $listTpl->setVar('parent_id',$this->form->id); + + // Generate the SQL for searching + if($app->listform->listDef["auth"] != 'no') { + if($_SESSION["s"]["user"]["typ"] == "admin") { + $sql_where = ""; + } else { + $sql_where = $app->tform->getAuthSQL('r')." and"; + } + } + + if($this->options["sqlextwhere"] != '') { + $sql_where .= " ".$this->options["sqlextwhere"]." and"; + } + + $sql_where = $app->listform->getSearchSQL($sql_where); + $listTpl->setVar($app->listform->searchValues); + + // Generate SQL for paging + $limit_sql = $app->listform->getPagingSQL($sql_where); + $listTpl->setVar("paging",$app->listform->pagingHTML); + + + + // Get the data + $records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $limit_sql"); + + $bgcolor = "#FFFFFF"; + if(is_array($records)) { + $idx_key = $app->listform->listDef["table_idx"]; + foreach($records as $rec) { + + $rec = $app->listform->decode($rec); + + // Change of color + $bgcolor = ($bgcolor == "#FFFFFF")?"#EEEEEE":"#FFFFFF"; + $rec["bgcolor"] = $bgcolor; + + // substitute value for select fields + foreach($app->listform->listDef["item"] as $field) { + $key = $field["field"]; + if($field['formtype'] == "SELECT") { + $rec[$key] = $field['value'][$rec[$key]]; + } + } + + // The variable "id" contains always the index field + $rec["id"] = $rec[$idx_key]; + + $records_new[] = $rec; + } + } + + $listTpl->setLoop('records',$records_new); + + // Loading language field + $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng"; + include($lng_file); + $listTpl->setVar($wb); + + // Setting Returnto information in the session + $list_name = $app->listform->listDef["name"]; + // $_SESSION["s"]["list"][$list_name]["parent_id"] = $app->tform_actions->id; + $_SESSION["s"]["list"][$list_name]["parent_id"] = $this->form->id; + $_SESSION["s"]["list"][$list_name]["parent_name"] = $app->tform->formDef["name"]; + $_SESSION["s"]["list"][$list_name]["parent_tab"] = $_SESSION["s"]["form"]["tab"]; + $_SESSION["s"]["list"][$list_name]["parent_script"] = $app->tform->formDef["action"]; + $_SESSION["s"]["form"]["return_to"] = $list_name; + //die(print_r($_SESSION["s"]["list"][$list_name])); + + return $listTpl->grab(); + + } +} + ?> \ No newline at end of file diff --git a/interface/lib/classes/tform_actions.inc.php b/interface/lib/classes/tform_actions.inc.php index 711fa5f90..131752ddf 100644 --- a/interface/lib/classes/tform_actions.inc.php +++ b/interface/lib/classes/tform_actions.inc.php @@ -141,19 +141,19 @@ class tform_actions { $_SESSION["s"]["form"]["return_to"] = ''; session_write_close(); header($redirect); - // When a returnto variable is set - } elseif ($_SESSION["s"]["form"]["return_to_url"] != '') { - $redirect = $_SESSION["s"]["form"]["return_to_url"]; - $_SESSION["s"]["form"]["return_to_url"] = ''; - session_write_close(); - header("Location: ".$redirect); - exit; - // Use the default list of the form - } else { - header("Location: ".$app->tform->formDef['list_default']); - } - exit; - } else { + // When a returnto variable is set + } elseif ($_SESSION["s"]["form"]["return_to_url"] != '') { + $redirect = $_SESSION["s"]["form"]["return_to_url"]; + $_SESSION["s"]["form"]["return_to_url"] = ''; + session_write_close(); + header("Location: ".$redirect); + exit; + // Use the default list of the form + } else { + header("Location: ".$app->tform->formDef['list_default']); + } + exit; + } else { $this->onShow(); } } else { diff --git a/interface/web/dns/dns_a_edit.php b/interface/web/dns/dns_a_edit.php new file mode 100644 index 000000000..03609bd34 --- /dev/null +++ b/interface/web/dns/dns_a_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_a_list.php b/interface/web/dns/dns_a_list.php new file mode 100644 index 000000000..6899b3ad9 --- /dev/null +++ b/interface/web/dns/dns_a_list.php @@ -0,0 +1,27 @@ +uses('listform_actions'); +$app->listform_actions->SQLExtWhere = "type = 'A'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_alias_edit.php b/interface/web/dns/dns_alias_edit.php new file mode 100644 index 000000000..8f8e0ecc4 --- /dev/null +++ b/interface/web/dns/dns_alias_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_cname_edit.php b/interface/web/dns/dns_cname_edit.php new file mode 100644 index 000000000..a9a6c3260 --- /dev/null +++ b/interface/web/dns/dns_cname_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_hinfo_edit.php b/interface/web/dns/dns_hinfo_edit.php new file mode 100644 index 000000000..891069e84 --- /dev/null +++ b/interface/web/dns/dns_hinfo_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_mx_edit.php b/interface/web/dns/dns_mx_edit.php new file mode 100644 index 000000000..0dc6b9182 --- /dev/null +++ b/interface/web/dns/dns_mx_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_ns_edit.php b/interface/web/dns/dns_ns_edit.php new file mode 100644 index 000000000..a7889ae2b --- /dev/null +++ b/interface/web/dns/dns_ns_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_ptr_edit.php b/interface/web/dns/dns_ptr_edit.php new file mode 100644 index 000000000..e353c7ad0 --- /dev/null +++ b/interface/web/dns/dns_ptr_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_rp_edit.php b/interface/web/dns/dns_rp_edit.php new file mode 100644 index 000000000..1ed15825b --- /dev/null +++ b/interface/web/dns/dns_rp_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_rr_del.php b/interface/web/dns/dns_rr_del.php new file mode 100644 index 000000000..d996c915b --- /dev/null +++ b/interface/web/dns/dns_rr_del.php @@ -0,0 +1,54 @@ +uses("tform_actions"); +$app->tform_actions->onDelete(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_soa_edit.php b/interface/web/dns/dns_soa_edit.php new file mode 100644 index 000000000..1a7bfa5e2 --- /dev/null +++ b/interface/web/dns/dns_soa_edit.php @@ -0,0 +1,70 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Set the serial + $this->dataRecord["serial"] = time(); + + parent::onSubmit(); + } + +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_soa_list.php b/interface/web/dns/dns_soa_list.php new file mode 100644 index 000000000..3f608a4d9 --- /dev/null +++ b/interface/web/dns/dns_soa_list.php @@ -0,0 +1,27 @@ +uses('listform_actions'); +// $app->listform_actions->SQLExtWhere = "access = 'REJECT'"; + +$app->listform_actions->onLoad(); + + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_srv_edit.php b/interface/web/dns/dns_srv_edit.php new file mode 100644 index 000000000..a98733db4 --- /dev/null +++ b/interface/web/dns/dns_srv_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/dns_txt_edit.php b/interface/web/dns/dns_txt_edit.php new file mode 100644 index 000000000..2d3ec8098 --- /dev/null +++ b/interface/web/dns/dns_txt_edit.php @@ -0,0 +1,72 @@ +uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onSubmit() { + global $app, $conf; + + // Get the parent soa record of the domain + $soa = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = '".intval($_POST["zone"])."' AND ".$app->tform->getAuthSQL('r')); + + // Set the server ID of the rr record to the same server ID as the parent record. + $this->dataRecord["server_id"] = $soa["server_id"]; + + parent::onSubmit(); + } +} + +$page = new page_action; +$page->onLoad(); + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_a.tform.php b/interface/web/dns/form/dns_a.tform.php new file mode 100644 index 000000000..43fa0e0b6 --- /dev/null +++ b/interface/web/dns/form/dns_a.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS A", + 'width' => 100, + 'template' => "templates/dns_a_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_alias.tform.php b/interface/web/dns/form/dns_alias.tform.php new file mode 100644 index 000000000..0302f7e4e --- /dev/null +++ b/interface/web/dns/form/dns_alias.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS A", + 'width' => 100, + 'template' => "templates/dns_alias_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_cname.tform.php b/interface/web/dns/form/dns_cname.tform.php new file mode 100644 index 000000000..e48605f8d --- /dev/null +++ b/interface/web/dns/form/dns_cname.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS CNAME", + 'width' => 100, + 'template' => "templates/dns_cname_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_hinfo.tform.php b/interface/web/dns/form/dns_hinfo.tform.php new file mode 100644 index 000000000..b2b30b629 --- /dev/null +++ b/interface/web/dns/form/dns_hinfo.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS hinfo", + 'width' => 100, + 'template' => "templates/dns_hinfo_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_mx.tform.php b/interface/web/dns/form/dns_mx.tform.php new file mode 100644 index 000000000..1f7382c2b --- /dev/null +++ b/interface/web/dns/form/dns_mx.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS mx", + 'width' => 100, + 'template' => "templates/dns_mx_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_ns.tform.php b/interface/web/dns/form/dns_ns.tform.php new file mode 100644 index 000000000..a845dc6e1 --- /dev/null +++ b/interface/web/dns/form/dns_ns.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS ns", + 'width' => 100, + 'template' => "templates/dns_ns_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_ptr.tform.php b/interface/web/dns/form/dns_ptr.tform.php new file mode 100644 index 000000000..7b193cf24 --- /dev/null +++ b/interface/web/dns/form/dns_ptr.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS ptr", + 'width' => 100, + 'template' => "templates/dns_ptr_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_rp.tform.php b/interface/web/dns/form/dns_rp.tform.php new file mode 100644 index 000000000..81a5c2fc6 --- /dev/null +++ b/interface/web/dns/form/dns_rp.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS rp", + 'width' => 100, + 'template' => "templates/dns_rp_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_soa.tform.php b/interface/web/dns/form/dns_soa.tform.php new file mode 100644 index 000000000..b149fec45 --- /dev/null +++ b/interface/web/dns/form/dns_soa.tform.php @@ -0,0 +1,212 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns_soa'] = array ( + 'title' => "DNS Zone", + 'width' => 100, + 'template' => "templates/dns_soa_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE dns_server = 1 AND {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'server_id_error_empty'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'origin' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'origin_error_empty'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'origin_error_unique'), + 2 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/', + 'errmsg'=> 'origin_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'ns' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', + 'errmsg'=> 'ns_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'mbox' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'mbox_error_empty'), + 1 => array ( 'type' => 'ISEMAIL', + 'errmsg'=> 'mbox_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'serial' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'refresh' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '28800', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'retry' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '7200', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'expire' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '604800', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'minimum' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'xfer' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + +$form["tabs"]['dns_records'] = array ( + 'title' => "Records", + 'width' => 100, + 'template' => "templates/dns_records_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + + ################################## + # ENDE Datatable fields + ################################## + ), + 'plugins' => array ( + 'dns_records' => array ( + 'class' => 'plugin_listview', + 'options' => array( + 'listdef' => 'list/dns_a.list.php', + 'sqlextwhere' => "zone = ".intval($_REQUEST['id']) + ) + ) + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_srv.tform.php b/interface/web/dns/form/dns_srv.tform.php new file mode 100644 index 000000000..188c10fa4 --- /dev/null +++ b/interface/web/dns/form/dns_srv.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS srv", + 'width' => 100, + 'template' => "templates/dns_srv_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/form/dns_txt.tform.php b/interface/web/dns/form/dns_txt.tform.php new file mode 100644 index 000000000..b18d84af2 --- /dev/null +++ b/interface/web/dns/form/dns_txt.tform.php @@ -0,0 +1,145 @@ + 0 id must match with id of current user +$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user +$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete +$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete + +$form["tabs"]['dns'] = array ( + 'title' => "DNS txt", + 'width' => 100, + 'template' => "templates/dns_txt_edit.htm", + 'fields' => array ( + ################################## + # Begin Datatable fields + ################################## + 'server_id' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'zone' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => intval($_REQUEST["zone"]), + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'name_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{1,64}$/', + 'errmsg'=> 'name_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'type' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => 'A', + 'value' => '', + 'width' => '5', + 'maxlength' => '5' + ), + 'data' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', + 'errmsg'=> 'data_error_empty'), + 1 => array ( 'type' => 'REGEX', + 'regex' => '/^[0-9\.]{10,15}$/', + 'errmsg'=> 'data_error_regex'), + ), + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + /* + 'aux' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '0', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + */ + 'ttl' => array ( + 'datatype' => 'INTEGER', + 'formtype' => 'TEXT', + 'default' => '86400', + 'value' => '', + 'width' => '10', + 'maxlength' => '10' + ), + 'active' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'Y', + 'value' => array(0 => 'N',1 => 'Y') + ), + ################################## + # ENDE Datatable fields + ################################## + ) +); + + + +?> \ No newline at end of file diff --git a/interface/web/dns/lib/admin.conf.php b/interface/web/dns/lib/admin.conf.php new file mode 100644 index 000000000..a45d44034 --- /dev/null +++ b/interface/web/dns/lib/admin.conf.php @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_a.lng b/interface/web/dns/lib/lang/en_dns_a.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_a.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_a_list.lng b/interface/web/dns/lib/lang/en_dns_a_list.lng new file mode 100644 index 000000000..cabd47889 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_a_list.lng @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_alias.lng b/interface/web/dns/lib/lang/en_dns_alias.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_alias.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_cname.lng b/interface/web/dns/lib/lang/en_dns_cname.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_cname.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_hinfo.lng b/interface/web/dns/lib/lang/en_dns_hinfo.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_hinfo.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_mx.lng b/interface/web/dns/lib/lang/en_dns_mx.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_mx.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_ns.lng b/interface/web/dns/lib/lang/en_dns_ns.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_ns.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_ptr.lng b/interface/web/dns/lib/lang/en_dns_ptr.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_ptr.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_rp.lng b/interface/web/dns/lib/lang/en_dns_rp.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_rp.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_soa.lng b/interface/web/dns/lib/lang/en_dns_soa.lng new file mode 100644 index 000000000..4955dff1a --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_soa.lng @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_soa_list.lng b/interface/web/dns/lib/lang/en_dns_soa_list.lng new file mode 100644 index 000000000..17f0ba7eb --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_soa_list.lng @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_srv.lng b/interface/web/dns/lib/lang/en_dns_srv.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_srv.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/lang/en_dns_txt.lng b/interface/web/dns/lib/lang/en_dns_txt.lng new file mode 100644 index 000000000..ca96ae584 --- /dev/null +++ b/interface/web/dns/lib/lang/en_dns_txt.lng @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/interface/web/dns/lib/module.conf.php b/interface/web/dns/lib/module.conf.php new file mode 100644 index 000000000..36eaa6f80 --- /dev/null +++ b/interface/web/dns/lib/module.conf.php @@ -0,0 +1,26 @@ + "Zones", + 'target' => 'content', + 'link' => 'dns/dns_soa_list.php'); + +$items[] = array( 'title' => "A-Records", + 'target' => 'content', + 'link' => 'dns/dns_a_list.php'); + + +$module["nav"][] = array( 'title' => 'DNS', + 'open' => 1, + 'items' => $items); +?> \ No newline at end of file diff --git a/interface/web/dns/list/dns_a.list.php b/interface/web/dns/list/dns_a.list.php new file mode 100644 index 000000000..7c9511a4b --- /dev/null +++ b/interface/web/dns/list/dns_a.list.php @@ -0,0 +1,109 @@ + "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "Yes",'N' => "No")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "zone", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT id,origin FROM dns_soa WHERE {AUTHSQL} ORDER BY origin', + 'keyfield'=> 'id', + 'valuefield'=> 'origin' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "name", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "type", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('A'=>'A','ALIAS'=>'ALIAS','CNAME'=>'CNAME','HINFO'=>'HINFO','MX'=>'MX','NS'=>'NS','PTR'=>'PTR','RP'=>'RP','SRV'=>'SRV','TXT'=>'TXT')); + + +?> \ No newline at end of file diff --git a/interface/web/dns/list/dns_soa.list.php b/interface/web/dns/list/dns_soa.list.php new file mode 100644 index 000000000..e983c962b --- /dev/null +++ b/interface/web/dns/list/dns_soa.list.php @@ -0,0 +1,112 @@ + "active", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "=", + 'prefix' => "", + 'suffix' => "", + 'width' => "", + 'value' => array('Y' => "Yes",'N' => "No")); + + +$liste["item"][] = array( 'field' => "server_id", + 'datatype' => "VARCHAR", + 'formtype' => "SELECT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'width' => "", + 'value' => ""); + +$liste["item"][] = array( 'field' => "origin", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "ns", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + +$liste["item"][] = array( 'field' => "mbox", + 'datatype' => "VARCHAR", + 'formtype' => "TEXT", + 'op' => "like", + 'prefix' => "%", + 'suffix' => "%", + 'width' => "", + 'value' => ""); + + + + + + + + + +?> \ No newline at end of file diff --git a/interface/web/dns/templates/dns_a_edit.htm b/interface/web/dns/templates/dns_a_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_a_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_a_list.htm b/interface/web/dns/templates/dns_a_list.htm new file mode 100644 index 000000000..c661f2e8d --- /dev/null +++ b/interface/web/dns/templates/dns_a_list.htm @@ -0,0 +1,36 @@ +Add:
+
+
+
+
+
+
+
+
+
+

+ + + + + + + + + + + + + + + + + + + + + + + + +
 
{tmpl_var name="active"}{tmpl_var name="type"}{tmpl_var name="name"}[{tmpl_var name='delete_txt'}]
\ No newline at end of file diff --git a/interface/web/dns/templates/dns_alias_edit.htm b/interface/web/dns/templates/dns_alias_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_alias_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_cname_edit.htm b/interface/web/dns/templates/dns_cname_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_cname_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_hinfo_edit.htm b/interface/web/dns/templates/dns_hinfo_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_hinfo_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_mx_edit.htm b/interface/web/dns/templates/dns_mx_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_mx_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_ns_edit.htm b/interface/web/dns/templates/dns_ns_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_ns_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_ptr_edit.htm b/interface/web/dns/templates/dns_ptr_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_ptr_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_records_edit.htm b/interface/web/dns/templates/dns_records_edit.htm new file mode 100644 index 000000000..8b18ab3b5 --- /dev/null +++ b/interface/web/dns/templates/dns_records_edit.htm @@ -0,0 +1,10 @@ + + + + + + + + +
{tmpl_var name='dns_records'}
  
+ \ No newline at end of file diff --git a/interface/web/dns/templates/dns_rp_edit.htm b/interface/web/dns/templates/dns_rp_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_rp_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_soa_edit.htm b/interface/web/dns/templates/dns_soa_edit.htm new file mode 100644 index 000000000..c78e69260 --- /dev/null +++ b/interface/web/dns/templates/dns_soa_edit.htm @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='server_id_txt'}: + +
{tmpl_var name='origin_txt'}: e.g. mydomain.com.
{tmpl_var name='ns_txt'}: e.g. ns1.mydomain.com.
{tmpl_var name='mbox_txt'}: e.g. postmaster.mydomain.com.
{tmpl_var name='refresh_txt'}: Seconds
{tmpl_var name='retry_txt'}: Seconds
{tmpl_var name='expire_txt'}: Seconds
{tmpl_var name='minimum_txt'}: Seconds
{tmpl_var name='ttl_txt'}: Seconds
{tmpl_var name='xfer_txt'}: Allow zone transfers to this IP
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ \ No newline at end of file diff --git a/interface/web/dns/templates/dns_soa_list.htm b/interface/web/dns/templates/dns_soa_list.htm new file mode 100644 index 000000000..58ea33015 --- /dev/null +++ b/interface/web/dns/templates/dns_soa_list.htm @@ -0,0 +1,34 @@ +

+


+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 
{tmpl_var name="active"}{tmpl_var name="server_id"}{tmpl_var name="origin"}{tmpl_var name="ns"}{tmpl_var name="mbox"}[{tmpl_var name='delete_txt'}]
\ No newline at end of file diff --git a/interface/web/dns/templates/dns_srv_edit.htm b/interface/web/dns/templates/dns_srv_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_srv_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns/templates/dns_txt_edit.htm b/interface/web/dns/templates/dns_txt_edit.htm new file mode 100644 index 000000000..7b0adfd1b --- /dev/null +++ b/interface/web/dns/templates/dns_txt_edit.htm @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +
{tmpl_var name='name_txt'}:
{tmpl_var name='data_txt'}:
{tmpl_var name='ttl_txt'}:
{tmpl_var name='active_txt'}:{tmpl_var name='active'}
  
 
  +
+ +
+ + \ No newline at end of file diff --git a/interface/web/dns_old/lib/module.conf.php b/interface/web/dns_old/lib/module.conf.php index ea7d08dc0..741c76f87 100644 --- a/interface/web/dns_old/lib/module.conf.php +++ b/interface/web/dns_old/lib/module.conf.php @@ -1,10 +1,10 @@ - 'dns', - 'title' => 'DNS', + 'name' => 'dns_old', + 'title' => 'DNS OLD', 'template' => 'module.tpl.htm', 'navframe_page' => '', - 'startpage' => 'dns/soa_list.php', + 'startpage' => 'dns_old/soa_list.php', 'tab_width' => '', 'nav' => array ( @@ -18,10 +18,10 @@ $module = array ( array ( 'title' => 'SOA', 'target' => 'content', - 'link' => 'dns/soa_list.php', + 'link' => 'dns_old/soa_list.php', ), ), ), ), -) +) ?> \ No newline at end of file -- GitLab