Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes to records.php to make new SOA serial numbers work

  • Loading branch information...
commit 66392a0e266ec2536deb962a043731275e75466e 1 parent a905b2b
@shupp authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/records.php
View
9 src/records.php
@@ -220,6 +220,11 @@
$smarty->assign('tldemail', $soa_array['tldemail']);
$smarty->assign('tldhost', $soa_array['tldhost']);
$smarty->assign('edit_soa_url', "$base_url&mode=records&record_mode=edit_soa&domain=$domain");
+ if(strlen($soa_array['serial']) == 0 ) {
+ $smarty->assign('serial', '(using djbdns default)');
+ } else {
+ $smarty->assign('serial', $soa_array['serial']);
+ }
$smarty->assign('refresh', $soa_array['refresh']);
$smarty->assign('retry', $soa_array['retry']);
$smarty->assign('expire', $soa_array['expire']);
@@ -428,13 +433,13 @@
// Build array
$array['host'] = $_REQUEST['contactaddr'].':'.$_REQUEST['primary_name_server'];
- $array['val'] = $_REQUEST['refresh'].':'.$_REQUEST['retry'].':'.$_REQUEST['expire'].':'.$_REQUEST['minimum'];
+ $array['val'] = $_REQUEST['refresh'].':'.$_REQUEST['retry'].':'.$_REQUEST['expire'].':'.$_REQUEST['minimum'].':'.$_REQUEST['serial'];
$return = parse_soa($array);
// Update table
$host = $return['tldemail'].':'.$return['tldhost'];
- $val = $return['refresh'].':'.$return['retry'].':'.$return['expire'].':'.$return['minimum'];
+ $val = $return['refresh'].':'.$return['retry'].':'.$return['expire'].':'.$return['minimum'].':'.$return['serial'];
$q = "update records set host='$host',
val='$val',
ttl='".$_REQUEST['ttl']."' where type='S' and
Please sign in to comment.
Something went wrong with that request. Please try again.