FS#3526 - Add option to disable BIND zone check (the intention for the feature request was more to hide log-messages and not to disable the named-checkzone-call)
| | |
| | | bind_zonefiles_dir=/etc/bind |
| | | named_conf_path=/etc/bind/named.conf |
| | | named_conf_local_path=/etc/bind/named.conf.local |
| | | disable_bind_log=n |
| | | |
| | | [fastcgi] |
| | | fastcgi_starter_path=/var/www/php-fcgi-scripts/[system_user]/ |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | 'disable_bind_log' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | | |
| | |
| | | $wb['php_ini_check_minutes_info_txt'] = '0 = keine Prüfung'; |
| | | $wb['php_handler_txt'] = 'Standard-PHP-Handler'; |
| | | $wb['enable_spdy_txt'] = 'Stellt SPDY zur Verfügung'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['xmpp_port_https_txt'] = 'HTTPS'; |
| | | $wb['xmpp_port_pastebin_txt'] = 'Pastebin'; |
| | | $wb['xmpp_port_bosh_txt'] = 'BOSH'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | | |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Neispravan crontab direktorij.'; |
| | | $wb['cron_wget_error_regex'] = 'Neispravna cron wget putanja.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | | |
| | | |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | $wb['crontab_dir_error_regex'] = 'Invalid crontab directory.'; |
| | | $wb['cron_wget_error_regex'] = 'Invalid cron wget path.'; |
| | | $wb['network_filesystem_txt'] = 'Network Filesystem'; |
| | | $wb["disable_bind_log_txt"] = "Disable bind9 messages for Loglevel WARN"; |
| | | ?> |
| | |
| | | <div class="form-group"> |
| | | <label for="named_conf_local_path" class="col-sm-3 control-label">{tmpl_var name='named_conf_local_path_txt'}</label> |
| | | <div class="col-sm-9"><input type="text" name="named_conf_local_path" id="named_conf_local_path" value="{tmpl_var name='named_conf_local_path'}" class="form-control" /></div></div> |
| | | |
| | | <div class="form-group"> |
| | | <label for="disable_bind_log" class="col-sm-3 control-label">{tmpl_var name='disable_bind_log_txt'}</label> |
| | | <div class="col-sm-9">{tmpl_var name='disable_bind_log'}</div></div> |
| | | |
| | | <input type="hidden" name="id" value="{tmpl_var name='id'}"> |
| | | |
| | |
| | | if($return_status === 0) { |
| | | $app->log("Writing BIND domain file: ".$filename, LOGLEVEL_DEBUG); |
| | | } else { |
| | | if($dns_config['disable_bind_log'] === 'y') { |
| | | $app->log("Writing BIND domain file failed: ".$filename." ".implode(' ', $out), LOGLEVEL_DEBUG); |
| | | } else { |
| | | $app->log("Writing BIND domain file failed: ".$filename." ".implode(' ', $out), LOGLEVEL_WARN); |
| | | } |
| | | rename($filename, $filename.'.err'); |
| | | } |
| | | unset($tpl); |