Till Brehm
2014-02-16 9a30ecdaed450020a055c06a59b9859f0a4928a3
Fixed: FS#2737 - Check xfer regex on dns slave zones and add the one of the primary zones
Changed cron_daily.php to avoid some php notices.
2 files modified
13 ■■■■■ changed files
interface/web/dns/form/dns_slave.tform.php 5 ●●●●● patch | view | raw | blame | history
server/cron_daily.php 8 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_slave.tform.php
@@ -121,6 +121,11 @@
        'xfer' => array (
            'datatype'      => 'VARCHAR',
            'formtype'      => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'ISIP',
                    'allowempty' => 'y',
                    'separator' => ',',
                    'errmsg'=> 'xfer_error_regex'),
            ),
            'default'       => '',
            'value'         => '',
            'width'         => '30',
server/cron_daily.php
@@ -808,10 +808,10 @@
            $domain = $rec['domain'];
            $username = $rec['system_user'];
            $rec['used'] = $monitor_data['user'][$username]['used'];
            $rec['soft'] = $monitor_data['user'][$username]['soft'];
            $rec['hard'] = $monitor_data['user'][$username]['hard'];
            $rec['files'] = $monitor_data['user'][$username]['files'];
            $rec['used'] = @$monitor_data['user'][$username]['used'];
            $rec['soft'] = @$monitor_data['user'][$username]['soft'];
            $rec['hard'] = @$monitor_data['user'][$username]['hard'];
            $rec['files'] = @$monitor_data['user'][$username]['files'];
            if (!is_numeric($rec['used'])){
                if ($rec['used'][0] > $rec['used'][1]){