From 7d4fdb7f83e4c24f02dcde6363ce95cd6eddb243 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 19 Jul 2010 07:30:39 -0400
Subject: [PATCH] Implemented: FS#1253 - Set SRV priority
---
interface/web/dns/form/dns_srv.tform.php | 2 --
interface/web/dns/lib/lang/en_dns_srv.lng | 1 +
interface/web/dns/templates/dns_srv_edit.htm | 4 ++++
interface/lib/classes/remoting.inc.php | 2 +-
interface/lib/classes/remoting_lib.inc.php | 10 +++++-----
server/conf/bind_pri.domain.master | 2 +-
6 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 738f967..6c08b51 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -2060,7 +2060,7 @@
$app->uses('remoting_lib');
//* load the user profile of the client
- $app->remoting_lib->loadUserProfile($client_id);
+ $app->remoting_lib->loadUserProfile(0);
//* Load the form definition
$app->remoting_lib->loadFormDef($formdef_file);
diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php
index da5c228..1fb0a11 100644
--- a/interface/lib/classes/remoting_lib.inc.php
+++ b/interface/lib/classes/remoting_lib.inc.php
@@ -696,6 +696,10 @@
function datalogSave($action,$primary_id, $record_old, $record_new) {
global $app,$conf;
+
+ $app->db->datalogSave($this->formDef['db_table'], $action, $this->formDef['db_table_idx'], $primary_id, $record_old, $record_new);
+ return true;
+ /*
if(stristr($this->formDef['db_table'],'.')) {
$escape = '';
@@ -752,11 +756,6 @@
}
}
- /*
- echo "<pre>";
- print_r($diffrec_full);
- echo "</pre>";
- */
// Insert the server_id, if the record has a server_id
$server_id = (isset($record_old["server_id"]) && $record_old["server_id"] > 0)?$record_old["server_id"]:0;
@@ -776,6 +775,7 @@
}
return true;
+ */
}
diff --git a/interface/web/dns/form/dns_srv.tform.php b/interface/web/dns/form/dns_srv.tform.php
index a5e0004..0de4616 100644
--- a/interface/web/dns/form/dns_srv.tform.php
+++ b/interface/web/dns/form/dns_srv.tform.php
@@ -108,7 +108,6 @@
'width' => '30',
'maxlength' => '255'
),
- /*
'aux' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
@@ -117,7 +116,6 @@
'width' => '10',
'maxlength' => '10'
),
- */
'ttl' => array (
'datatype' => 'INTEGER',
'formtype' => 'TEXT',
diff --git a/interface/web/dns/lib/lang/en_dns_srv.lng b/interface/web/dns/lib/lang/en_dns_srv.lng
index d0dcd1e..ccd9eeb 100644
--- a/interface/web/dns/lib/lang/en_dns_srv.lng
+++ b/interface/web/dns/lib/lang/en_dns_srv.lng
@@ -6,6 +6,7 @@
$wb["data_txt"] = 'Server Record';
$wb["ttl_txt"] = 'TTL';
$wb["active_txt"] = 'Active';
+$wb["aux_txt"] = 'Priority';
$wb["limit_dns_record_txt"] = 'The max. number of DNS records for your account is reached.';
$wb["no_zone_perm"] = 'You do not have the permission to add a record to this DNS zone.';
$wb["name_error_empty"] = 'The hostname is empty.';
diff --git a/interface/web/dns/templates/dns_srv_edit.htm b/interface/web/dns/templates/dns_srv_edit.htm
index f76ab18..7f86aa6 100644
--- a/interface/web/dns/templates/dns_srv_edit.htm
+++ b/interface/web/dns/templates/dns_srv_edit.htm
@@ -13,6 +13,10 @@
<label for="data">{tmpl_var name='data_txt'}</label>
<input name="data" id="data" value="{tmpl_var name='data'}" size="30" maxlength="255" type="text" class="textInput" />
</div>
+ <div class="ctrlHolder">
+ <label for="aux">{tmpl_var name='aux_txt'}</label>
+ <input name="aux" id="aux" value="{tmpl_var name='aux'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" />
+ </div>
<div class="ctrlHolder">
<label for="ttl">{tmpl_var name='ttl_txt'}</label>
<input name="ttl" id="ttl" value="{tmpl_var name='ttl'}" size="10" maxlength="10" type="text" class="textInput" />
diff --git a/server/conf/bind_pri.domain.master b/server/conf/bind_pri.domain.master
index faa42f3..491d590 100644
--- a/server/conf/bind_pri.domain.master
+++ b/server/conf/bind_pri.domain.master
@@ -39,7 +39,7 @@
{tmpl_var name='name'} RP {tmpl_var name='data'}
</tmpl_if>
<tmpl_if name="type" op='==' value='SRV'>
-{tmpl_var name='name'} SRV 0 {tmpl_var name='data'}
+{tmpl_var name='name'} SRV {tmpl_var name='aux'} {tmpl_var name='data'}
</tmpl_if>
<tmpl_if name="type" op='==' value='TXT'>
{tmpl_var name='name'} TXT {tmpl_var name='data'}
--
Gitblit v1.9.1