Marius Cramer
2013-11-14 b1a6a5a3991cec5cd08873b01376e45d0b247f18
interface/web/dns/dns_srv_edit.php
@@ -38,8 +38,8 @@
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once '../../lib/config.inc.php';
require_once '../../lib/app.inc.php';
//* Check permissions for module
$app->auth->check_module_permissions('dns');
@@ -78,17 +78,9 @@
      // Split the 3 parts of the SRV Record apart
      $split = explode(' ', $this->dataRecord['data']);
      // Weight
      $this->dataRecord['weight'] = $split[0];
      // Port
      $this->dataRecord['port'] = $split[1];
      // Target
      $this->dataRecord['target'] = $split[2];
      // Bind the new datarecord to the template
      $app->tpl->setVar($this->dataRecord);
      $app->tpl->setVar('weight', $split[0]);
      $app->tpl->setVar('port', $split[1]);
      $app->tpl->setVar('target', $split[2]);
      parent::onShowEnd();
   }
@@ -159,6 +151,7 @@
      $serial = $app->validate_dns->increase_serial($soa["serial"]);
      $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id);
   }
}
$page = new page_action;