From ebef63af727a7bea15a5eeef797b8e41c8f624ed Mon Sep 17 00:00:00 2001
From: Marius Burkard <m.burkard@pixcept.de>
Date: Tue, 09 Feb 2016 12:22:08 -0500
Subject: [PATCH] - changed windows line-breaks to unix line-breaks
---
interface/web/dashboard/lib/lang/el_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/fi_dashlet_invoice_client_settings.lng | 8
interface/web/sites/lib/lang/it_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/tr_web_directive_snippets.lng | 4
interface/web/dashboard/lib/lang/se_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/ru_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/cz_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/hu_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/pl_dashlet_invoice_client_settings.lng | 8
interface/web/sites/lib/lang/el_web_directive_snippets.lng | 4
interface/web/sites/templates/web_directive_snippets.htm | 26 +-
interface/web/dashboard/lib/lang/es_dashlet_invoice_client_settings.lng | 8
interface/web/client/lib/lang/en_client_message_template.lng | 20
interface/web/sites/lib/lang/sk_web_directive_snippets.lng | 4
interface/web/client/lib/lang/en_client_message_template_list.lng | 8
interface/web/dashboard/lib/lang/br_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/pt_dashlet_invoice_client_settings.lng | 8
interface/web/sites/lib/lang/br_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/cz_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/pl_web_directive_snippets.lng | 4
server/lib/classes/cron.d/550-bind_dnssec.inc.php | 178 +++++++-------
interface/web/sites/lib/lang/se_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/pt_web_directive_snippets.lng | 4
interface/web/dashboard/lib/lang/id_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/ja_dashlet_invoice_client_settings.lng | 8
interface/web/sites/lib/lang/en_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/ja_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/fi_web_directive_snippets.lng | 4
interface/web/dashboard/lib/lang/bg_dashlet_invoice_client_settings.lng | 8
interface/web/sites/lib/lang/hu_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/id_web_directive_snippets.lng | 4
interface/web/dashboard/lib/lang/tr_dashlet_invoice_client_settings.lng | 8
interface/web/dashboard/lib/lang/nl_dashlet_invoice_client_settings.lng | 8
interface/web/sites/lib/lang/es_web_directive_snippets.lng | 4
interface/web/dashboard/lib/lang/en_dashlet_invoice_client_settings.lng | 8
interface/web/sites/lib/lang/bg_web_directive_snippets.lng | 4
docs/autoinstall_samples/autoinstall.conf_sample.php | 102 ++++----
interface/lib/classes/plugin_directive_snippets.inc.php | 142 +++++-----
interface/web/sites/lib/lang/nl_web_directive_snippets.lng | 4
interface/web/sites/lib/lang/ru_web_directive_snippets.lng | 4
interface/web/dashboard/lib/lang/sk_dashlet_invoice_client_settings.lng | 8
interface/web/client/templates/message_template_list.htm | 12
interface/web/dashboard/lib/lang/it_dashlet_invoice_client_settings.lng | 8
43 files changed, 352 insertions(+), 352 deletions(-)
diff --git a/docs/autoinstall_samples/autoinstall.conf_sample.php b/docs/autoinstall_samples/autoinstall.conf_sample.php
index ccd36aa..187dc68 100644
--- a/docs/autoinstall_samples/autoinstall.conf_sample.php
+++ b/docs/autoinstall_samples/autoinstall.conf_sample.php
@@ -1,52 +1,52 @@
-<?php
-$autoinstall['language'] = 'en'; // de, en (default)
-$autoinstall['install_mode'] = 'standard'; // standard (default), expert
-
-$autoinstall['hostname'] = 'server1.example.com'; // default
-$autoinstall['mysql_hostname'] = 'localhost'; // default: localhost
-$autoinstall['mysql_root_user'] = 'root'; // default: root
-$autoinstall['mysql_root_password'] = 'howtoforge';
-$autoinstall['mysql_database'] = 'dbispconfig'; // default: dbispcongig
-$autoinstall['mysql_charset'] = 'utf8'; // default: utf8
-$autoinstall['http_server'] = 'nginx'; // apache (default), nginx
-$autoinstall['ispconfig_port'] = '8080'; // default: 8080
-$autoinstall['ispconfig_use_ssl'] = 'y'; // y (default), n
-
-/* SSL Settings */
-$autoinstall['ssl_cert_country'] = 'AU';
-$autoinstall['ssl_cert_state'] = 'Some-State';
-$autoinstall['ssl_cert_locality'] = 'Chicago';
-$autoinstall['ssl_cert_organisation'] = 'Internet Widgits Pty Ltd';
-$autoinstall['ssl_cert_organisation_unit'] = 'IT department';
-$autoinstall['ssl_cert_common_name'] = $autoinstall['hostname'];
-
-/* optional expert mode settings, needed only for expert mode */
-$autoinstall['mysql_ispconfig_user'] = 'ispconfig'; // default: ispconfig
-$autoinstall['mysql_ispconfig_password'] = md5(uniqid(rand()));
-$autoinstall['join_multiserver_setup'] = 'n'; // y, n (default)
-$autoinstall['mysql_master_hostname'] = 'master.example.com';
-$autoinstall['mysql_master_root_user'] = 'root';
-$autoinstall['mysql_master_root_password'] = 'howtoforge';
-$autoinstall['mysql_master_database'] = 'dbispconfig'; // default: dbispconfig
-$autoinstall['configure_mail'] = 'y'; // y (default), n
-$autoinstall['configure_jailkit'] = 'y'; // y (default), n
-$autoinstall['configure_ftp'] = 'y'; // y (default), n
-$autoinstall['configure_dns'] = 'y'; // y (default), n
-$autoinstall['configure_apache'] = 'y'; // y (default), n
-$autoinstall['configure_nginx'] = 'y'; // y (default), n
-$autoinstall['configure_firewall'] = 'y'; // y (default), n
-$autoinstall['install_ispconfig_web_interface'] = 'y'; // y (default), n
-
-/* optional update settings, needed only for updates */
-$autoupdate['do_backup'] = 'yes'; // yes (default), no
-$autoupdate['mysql_root_password'] = 'howtoforge';
-$autoupdate['mysql_master_hostname'] = 'master.example.com';
-$autoupdate['mysql_master_root_user'] = 'root';
-$autoupdate['mysql_master_root_password'] = 'howtoforge';
-$autoupdate['mysql_master_database'] = 'dbispconfig'; // default: dbispconfig
-$autoupdate['reconfigure_permissions_in_master_database'] = 'no'; // no (default), yes
-$autoupdate['reconfigure_services'] = 'yes'; // yes (default), no
-$autoupdate['ispconfig_port'] = '8080'; // default: 8080
-$autoupdate['create_new_ispconfig_ssl_cert'] = 'no'; // no (default), yes
-$autoupdate['reconfigure_crontab'] = 'yes'; // yes (default), no
+<?php
+$autoinstall['language'] = 'en'; // de, en (default)
+$autoinstall['install_mode'] = 'standard'; // standard (default), expert
+
+$autoinstall['hostname'] = 'server1.example.com'; // default
+$autoinstall['mysql_hostname'] = 'localhost'; // default: localhost
+$autoinstall['mysql_root_user'] = 'root'; // default: root
+$autoinstall['mysql_root_password'] = 'howtoforge';
+$autoinstall['mysql_database'] = 'dbispconfig'; // default: dbispcongig
+$autoinstall['mysql_charset'] = 'utf8'; // default: utf8
+$autoinstall['http_server'] = 'nginx'; // apache (default), nginx
+$autoinstall['ispconfig_port'] = '8080'; // default: 8080
+$autoinstall['ispconfig_use_ssl'] = 'y'; // y (default), n
+
+/* SSL Settings */
+$autoinstall['ssl_cert_country'] = 'AU';
+$autoinstall['ssl_cert_state'] = 'Some-State';
+$autoinstall['ssl_cert_locality'] = 'Chicago';
+$autoinstall['ssl_cert_organisation'] = 'Internet Widgits Pty Ltd';
+$autoinstall['ssl_cert_organisation_unit'] = 'IT department';
+$autoinstall['ssl_cert_common_name'] = $autoinstall['hostname'];
+
+/* optional expert mode settings, needed only for expert mode */
+$autoinstall['mysql_ispconfig_user'] = 'ispconfig'; // default: ispconfig
+$autoinstall['mysql_ispconfig_password'] = md5(uniqid(rand()));
+$autoinstall['join_multiserver_setup'] = 'n'; // y, n (default)
+$autoinstall['mysql_master_hostname'] = 'master.example.com';
+$autoinstall['mysql_master_root_user'] = 'root';
+$autoinstall['mysql_master_root_password'] = 'howtoforge';
+$autoinstall['mysql_master_database'] = 'dbispconfig'; // default: dbispconfig
+$autoinstall['configure_mail'] = 'y'; // y (default), n
+$autoinstall['configure_jailkit'] = 'y'; // y (default), n
+$autoinstall['configure_ftp'] = 'y'; // y (default), n
+$autoinstall['configure_dns'] = 'y'; // y (default), n
+$autoinstall['configure_apache'] = 'y'; // y (default), n
+$autoinstall['configure_nginx'] = 'y'; // y (default), n
+$autoinstall['configure_firewall'] = 'y'; // y (default), n
+$autoinstall['install_ispconfig_web_interface'] = 'y'; // y (default), n
+
+/* optional update settings, needed only for updates */
+$autoupdate['do_backup'] = 'yes'; // yes (default), no
+$autoupdate['mysql_root_password'] = 'howtoforge';
+$autoupdate['mysql_master_hostname'] = 'master.example.com';
+$autoupdate['mysql_master_root_user'] = 'root';
+$autoupdate['mysql_master_root_password'] = 'howtoforge';
+$autoupdate['mysql_master_database'] = 'dbispconfig'; // default: dbispconfig
+$autoupdate['reconfigure_permissions_in_master_database'] = 'no'; // no (default), yes
+$autoupdate['reconfigure_services'] = 'yes'; // yes (default), no
+$autoupdate['ispconfig_port'] = '8080'; // default: 8080
+$autoupdate['create_new_ispconfig_ssl_cert'] = 'no'; // no (default), yes
+$autoupdate['reconfigure_crontab'] = 'yes'; // yes (default), no
?>
\ No newline at end of file
diff --git a/interface/lib/classes/plugin_directive_snippets.inc.php b/interface/lib/classes/plugin_directive_snippets.inc.php
index dbc7d48..41138bc 100644
--- a/interface/lib/classes/plugin_directive_snippets.inc.php
+++ b/interface/lib/classes/plugin_directive_snippets.inc.php
@@ -1,72 +1,72 @@
-<?php
-
-
-class plugin_directive_snippets extends plugin_base
-{
- var $module;
- var $form;
- var $tab;
- var $record_id;
- var $formdef;
- var $options;
-
- public function onShow()
- {
- global $app;
-
- $listTpl = new tpl;
- $listTpl->newTemplate('templates/web_directive_snippets.htm');
-
- //* Loading language file
- $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_web_directive_snippets.lng";
-
- include $lng_file;
- $listTpl->setVar($wb);
-
- $message = '';
- $error = '';
-
- $server_type = $app->getconf->get_server_config($this->form->dataRecord['server_id'], 'web');
- $server_type = $server_type['server_type'];
- $records = $app->db->queryAllRecords("SELECT directive_snippets_id, name FROM directive_snippets WHERE customer_viewable = 'y' AND type = ? ORDER BY name ASC", $server_type);
-
- for ($i = 0, $c = count($records); $i < $c; $i++)
- {
- $records[$i]['is_selected'] = false;
-
- if ($this->form->dataRecord['directive_snippets_id'] === $records[$i]['directive_snippets_id'])
- $records[$i]['is_selected'] = true;
- }
-
- $listTpl->setLoop('records', $records);
-
- $list_name = 'directive_snippets_list';
- $_SESSION["s"]["list"][$list_name]["parent_id"] = $this->form->id;
- $_SESSION["s"]["list"][$list_name]["parent_name"] = $app->tform->formDef["name"];
- $_SESSION["s"]["list"][$list_name]["parent_tab"] = $_SESSION["s"]["form"]["tab"];
- $_SESSION["s"]["list"][$list_name]["parent_script"] = $app->tform->formDef["action"];
- $_SESSION["s"]["form"]["return_to"] = $list_name;
-
- return $listTpl->grab();
- }
-
- public function onUpdate()
- {
- global $app, $conf;
-
- if (isset($this->form->dataRecord['directive_snippets_id']) && $this->form->oldDataRecord['directive_snippets_id'] !== $this->form->dataRecord['directive_snippets_id']) {
- $app->db->query('UPDATE web_domain SET directive_snippets_id = ? WHERE domain_id = ?', $this->form->dataRecord['directive_snippets_id'], $this->form->id);
- }
- }
-
- public function onInsert()
- {
- global $app, $conf;
-
- if (isset($this->form->dataRecord['directive_snippets_id'])) {
- $app->db->query('UPDATE web_domain SET directive_snippets_id = ? WHERE domain_id = ?', $this->form->dataRecord['directive_snippets_id'], $this->form->id);
- }
- }
-
-}
+<?php
+
+
+class plugin_directive_snippets extends plugin_base
+{
+ var $module;
+ var $form;
+ var $tab;
+ var $record_id;
+ var $formdef;
+ var $options;
+
+ public function onShow()
+ {
+ global $app;
+
+ $listTpl = new tpl;
+ $listTpl->newTemplate('templates/web_directive_snippets.htm');
+
+ //* Loading language file
+ $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_web_directive_snippets.lng";
+
+ include $lng_file;
+ $listTpl->setVar($wb);
+
+ $message = '';
+ $error = '';
+
+ $server_type = $app->getconf->get_server_config($this->form->dataRecord['server_id'], 'web');
+ $server_type = $server_type['server_type'];
+ $records = $app->db->queryAllRecords("SELECT directive_snippets_id, name FROM directive_snippets WHERE customer_viewable = 'y' AND type = ? ORDER BY name ASC", $server_type);
+
+ for ($i = 0, $c = count($records); $i < $c; $i++)
+ {
+ $records[$i]['is_selected'] = false;
+
+ if ($this->form->dataRecord['directive_snippets_id'] === $records[$i]['directive_snippets_id'])
+ $records[$i]['is_selected'] = true;
+ }
+
+ $listTpl->setLoop('records', $records);
+
+ $list_name = 'directive_snippets_list';
+ $_SESSION["s"]["list"][$list_name]["parent_id"] = $this->form->id;
+ $_SESSION["s"]["list"][$list_name]["parent_name"] = $app->tform->formDef["name"];
+ $_SESSION["s"]["list"][$list_name]["parent_tab"] = $_SESSION["s"]["form"]["tab"];
+ $_SESSION["s"]["list"][$list_name]["parent_script"] = $app->tform->formDef["action"];
+ $_SESSION["s"]["form"]["return_to"] = $list_name;
+
+ return $listTpl->grab();
+ }
+
+ public function onUpdate()
+ {
+ global $app, $conf;
+
+ if (isset($this->form->dataRecord['directive_snippets_id']) && $this->form->oldDataRecord['directive_snippets_id'] !== $this->form->dataRecord['directive_snippets_id']) {
+ $app->db->query('UPDATE web_domain SET directive_snippets_id = ? WHERE domain_id = ?', $this->form->dataRecord['directive_snippets_id'], $this->form->id);
+ }
+ }
+
+ public function onInsert()
+ {
+ global $app, $conf;
+
+ if (isset($this->form->dataRecord['directive_snippets_id'])) {
+ $app->db->query('UPDATE web_domain SET directive_snippets_id = ? WHERE domain_id = ?', $this->form->dataRecord['directive_snippets_id'], $this->form->id);
+ }
+ }
+
+}
?>
\ No newline at end of file
diff --git a/interface/web/client/lib/lang/en_client_message_template.lng b/interface/web/client/lib/lang/en_client_message_template.lng
index e2ab2c7..42cd796 100644
--- a/interface/web/client/lib/lang/en_client_message_template.lng
+++ b/interface/web/client/lib/lang/en_client_message_template.lng
@@ -1,11 +1,11 @@
-<?php
-$wb["template_type_txt"] = 'Email type';
-$wb["template_name_txt"] = 'Template name';
-$wb["subject_txt"] = 'Subject';
-$wb["message_txt"] = 'Message';
-$wb['Email template'] = 'Email template';
-$wb['Settings'] = 'Setting';
-$wb['variables_txt'] = 'Variables';
-$wb['variables_description_txt'] = '(The username and password variables are only available in welcome emails.)';
-$wb['duplicate_welcome_error'] = 'There can be only one default welcome email template. Please edit the existing template instead of adding a new one.';
+<?php
+$wb["template_type_txt"] = 'Email type';
+$wb["template_name_txt"] = 'Template name';
+$wb["subject_txt"] = 'Subject';
+$wb["message_txt"] = 'Message';
+$wb['Email template'] = 'Email template';
+$wb['Settings'] = 'Setting';
+$wb['variables_txt'] = 'Variables';
+$wb['variables_description_txt'] = '(The username and password variables are only available in welcome emails.)';
+$wb['duplicate_welcome_error'] = 'There can be only one default welcome email template. Please edit the existing template instead of adding a new one.';
?>
\ No newline at end of file
diff --git a/interface/web/client/lib/lang/en_client_message_template_list.lng b/interface/web/client/lib/lang/en_client_message_template_list.lng
index 7a78bf0..41acc0c 100644
--- a/interface/web/client/lib/lang/en_client_message_template_list.lng
+++ b/interface/web/client/lib/lang/en_client_message_template_list.lng
@@ -1,5 +1,5 @@
-<?php
-$wb["list_head_txt"] = 'Email templates';
-$wb["template_type_txt"] = 'Message for';
-$wb["template_name_txt"] = 'Template name';
+<?php
+$wb["list_head_txt"] = 'Email templates';
+$wb["template_type_txt"] = 'Message for';
+$wb["template_name_txt"] = 'Template name';
?>
\ No newline at end of file
diff --git a/interface/web/client/templates/message_template_list.htm b/interface/web/client/templates/message_template_list.htm
index 98f3284..5efaf5f 100644
--- a/interface/web/client/templates/message_template_list.htm
+++ b/interface/web/client/templates/message_template_list.htm
@@ -11,21 +11,21 @@
<table class="table">
<thead class="dark form-group-sm">
<tr>
- <th data-column="template_type"><tmpl_var name="template_type_txt"></th>
- <th data-column="template_name"><tmpl_var name="template_name_txt"></th>
+ <th data-column="template_type"><tmpl_var name="template_type_txt"></th>
+ <th data-column="template_name"><tmpl_var name="template_name_txt"></th>
<th class="text-right"> </th>
</tr>
<tr>
- <td><select class="form-control" name="search_template_type" onChange="ISPConfig.submitForm('pageForm','billing/invoice_message_template_list.php');">{tmpl_var name='search_template_type'}</select></td>
- <td><input class="form-control" type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" /></td>
+ <td><select class="form-control" name="search_template_type" onChange="ISPConfig.submitForm('pageForm','billing/invoice_message_template_list.php');">{tmpl_var name='search_template_type'}</select></td>
+ <td><input class="form-control" type="text" name="search_template_name" value="{tmpl_var name='search_template_name'}" /></td>
<td class="text-right"><div class="buttons"><button type="button" class="btn btn-default formbutton-default formbutton-narrow" name="Filter" id="Filter" value="{tmpl_var name="filter_txt"}" data-submit-form="pageForm" data-form-action="billing/invoice_message_template_list.php"><span class="icon icon-filter"></span></button></div></td>
</tr>
</thead>
<tbody>
<tmpl_loop name="records">
<tr>
- <td><a href="#" data-load-content="billing/invoice_message_template_edit.php?id={tmpl_var name='id'}">{tmpl_var name="template_type"}</a></td>
- <td><a href="#" data-load-content="billing/invoice_message_template_edit.php?id={tmpl_var name='id'}">{tmpl_var name="template_name"}</a></td>
+ <td><a href="#" data-load-content="billing/invoice_message_template_edit.php?id={tmpl_var name='id'}">{tmpl_var name="template_type"}</a></td>
+ <td><a href="#" data-load-content="billing/invoice_message_template_edit.php?id={tmpl_var name='id'}">{tmpl_var name="template_name"}</a></td>
<td class="text-right">
<div class="buttons icons16">
<a class="btn btn-default formbutton-danger formbutton-narrow" href="javascript: ISPConfig.confirm_action('billing/invoice_message_template_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span class="icon icon-delete"></span></a>
diff --git a/interface/web/dashboard/lib/lang/bg_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/bg_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/bg_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/bg_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/br_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/br_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/br_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/br_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/cz_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/cz_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/cz_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/cz_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/el_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/el_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/el_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/el_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/en_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/en_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/en_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/en_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/es_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/es_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/es_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/es_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/fi_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/fi_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/fi_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/fi_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/hu_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/hu_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/hu_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/hu_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/id_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/id_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/id_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/id_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/it_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/it_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/it_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/it_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/ja_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/ja_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/ja_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/ja_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/nl_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/nl_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/nl_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/nl_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/pl_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/pl_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/pl_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/pl_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/pt_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/pt_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/pt_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/pt_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/ru_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/ru_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/ru_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/ru_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/se_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/se_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/se_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/se_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/sk_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/sk_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/sk_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/sk_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/dashboard/lib/lang/tr_dashlet_invoice_client_settings.lng b/interface/web/dashboard/lib/lang/tr_dashlet_invoice_client_settings.lng
index d021c17..8cae3df 100644
--- a/interface/web/dashboard/lib/lang/tr_dashlet_invoice_client_settings.lng
+++ b/interface/web/dashboard/lib/lang/tr_dashlet_invoice_client_settings.lng
@@ -1,4 +1,4 @@
-<?php
-$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
-$wb['edit_txt'] = 'Edit';
-?>
+<?php
+$wb['invoice_client_settings_txt'] = 'Invoice Client Settings';
+$wb['edit_txt'] = 'Edit';
+?>
diff --git a/interface/web/sites/lib/lang/bg_web_directive_snippets.lng b/interface/web/sites/lib/lang/bg_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/bg_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/bg_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/br_web_directive_snippets.lng b/interface/web/sites/lib/lang/br_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/br_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/br_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/cz_web_directive_snippets.lng b/interface/web/sites/lib/lang/cz_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/cz_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/cz_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/el_web_directive_snippets.lng b/interface/web/sites/lib/lang/el_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/el_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/el_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/en_web_directive_snippets.lng b/interface/web/sites/lib/lang/en_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/en_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/en_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/es_web_directive_snippets.lng b/interface/web/sites/lib/lang/es_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/es_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/es_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/fi_web_directive_snippets.lng b/interface/web/sites/lib/lang/fi_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/fi_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/fi_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/hu_web_directive_snippets.lng b/interface/web/sites/lib/lang/hu_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/hu_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/hu_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/id_web_directive_snippets.lng b/interface/web/sites/lib/lang/id_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/id_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/id_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/it_web_directive_snippets.lng b/interface/web/sites/lib/lang/it_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/it_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/it_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/ja_web_directive_snippets.lng b/interface/web/sites/lib/lang/ja_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/ja_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/ja_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/nl_web_directive_snippets.lng b/interface/web/sites/lib/lang/nl_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/nl_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/nl_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/pl_web_directive_snippets.lng b/interface/web/sites/lib/lang/pl_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/pl_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/pl_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/pt_web_directive_snippets.lng b/interface/web/sites/lib/lang/pt_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/pt_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/pt_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/ru_web_directive_snippets.lng b/interface/web/sites/lib/lang/ru_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/ru_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/ru_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/se_web_directive_snippets.lng b/interface/web/sites/lib/lang/se_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/se_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/se_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/sk_web_directive_snippets.lng b/interface/web/sites/lib/lang/sk_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/sk_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/sk_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/lib/lang/tr_web_directive_snippets.lng b/interface/web/sites/lib/lang/tr_web_directive_snippets.lng
index 05a004f..fc74e4c 100644
--- a/interface/web/sites/lib/lang/tr_web_directive_snippets.lng
+++ b/interface/web/sites/lib/lang/tr_web_directive_snippets.lng
@@ -1,3 +1,3 @@
-<?php
-$wb['directive_snippets_id_txt'] = 'Desired configuration';
+<?php
+$wb['directive_snippets_id_txt'] = 'Desired configuration';
?>
\ No newline at end of file
diff --git a/interface/web/sites/templates/web_directive_snippets.htm b/interface/web/sites/templates/web_directive_snippets.htm
index 93e8b94..02a14da 100644
--- a/interface/web/sites/templates/web_directive_snippets.htm
+++ b/interface/web/sites/templates/web_directive_snippets.htm
@@ -1,14 +1,14 @@
-<div class="form-group">
- <label for="directive_snippets_id" class="col-sm-3 control-label">
- {tmpl_var name='directive_snippets_id_txt'}
- </label>
-
- <div class="col-sm-9"><select name="directive_snippets_id" id="directive_snippets_id" class="form-control">
- <option value="0"></option>
- <tmpl_loop name="records">
- <option {tmpl_if name='is_selected' op='==' value='true'}selected="selected" {/tmpl_if}value="{tmpl_var name='directive_snippets_id'}">
- {tmpl_var name='name'}
- </option>
- </tmpl_loop>
- </select></div>
+<div class="form-group">
+ <label for="directive_snippets_id" class="col-sm-3 control-label">
+ {tmpl_var name='directive_snippets_id_txt'}
+ </label>
+
+ <div class="col-sm-9"><select name="directive_snippets_id" id="directive_snippets_id" class="form-control">
+ <option value="0"></option>
+ <tmpl_loop name="records">
+ <option {tmpl_if name='is_selected' op='==' value='true'}selected="selected" {/tmpl_if}value="{tmpl_var name='directive_snippets_id'}">
+ {tmpl_var name='name'}
+ </option>
+ </tmpl_loop>
+ </select></div>
</div>
\ No newline at end of file
diff --git a/server/lib/classes/cron.d/550-bind_dnssec.inc.php b/server/lib/classes/cron.d/550-bind_dnssec.inc.php
index a8c643f..2d238c7 100644
--- a/server/lib/classes/cron.d/550-bind_dnssec.inc.php
+++ b/server/lib/classes/cron.d/550-bind_dnssec.inc.php
@@ -1,89 +1,89 @@
-<?php
-
-/*
-Copyright (c) 2013, Marius Cramer, pixcept KG
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-DNSSEC-Implementation by Alexander T�ffner aka dark alex
-*/
-
-class cronjob_bind_dnssec extends cronjob {
-
- // job schedule
- protected $_schedule = '30 3 * * *'; //daily at 3:30 a.m.
-
- public function onRunJob() {
- global $app, $conf;
-
- //* Load libraries
- $app->uses("getconf,tpl");
-
- //* load the server configuration options
- $dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns');
-
- //TODO : change this when distribution information has been integrated into server record
- $filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.';
-
- $soas = $app->db->queryAllRecords('SELECT * FROM dns_soa WHERE dnssec_wanted=\'Y\' AND dnssec_initialized=\'Y\' AND dnssec_last_signed < '.(time()-(3600*24*5)+900)); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
-
- foreach ($soas as $data) {
- $domain = substr($data['origin'], 0, strlen($data['origin'])-1);
- if (!file_exists($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain)) return false;
-
- $app->log('DNSSEC Auto-Resign: Resigning zone '.$domain, LOGLEVEL_INFO);
-
- $zonefile = file_get_contents($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain);
- $keycount=0;
- foreach (glob($dns_config['bind_zonefiles_dir'].'/K'.$domain.'*.key') as $keyfile) {
- $includeline = '$INCLUDE '.basename($keyfile);
- if (!preg_match('@'.preg_quote($includeline).'@', $zonefile)) $zonefile .= "\n".$includeline."\n";
- $keycount++;
- }
- if ($keycount != 2) $app->log('DNSSEC Warning: There are more or less than 2 keyfiles for zone '.$domain, LOGLEVEL_WARN);
- file_put_contents($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain, $zonefile);
-
- //Sign the zone and set it valid for max. 16 days
- exec('cd '.escapeshellcmd($dns_config['bind_zonefiles_dir']).';'.
- '/usr/sbin/dnssec-signzone -A -e +1382400 -3 $(head -c 1000 /dev/random | sha1sum | cut -b 1-16) -N increment -o '.escapeshellcmd($domain).' -t '.$filespre.escapeshellcmd($domain));
-
- //Write Data back into DB
- $dnssecdata = "DS-Records:\n".file_get_contents($dns_config['bind_zonefiles_dir'].'/dsset-'.$domain.'.');
- $dnssecdata .= "\n------------------------------------\n\nDNSKEY-Records:\n";
- foreach (glob($dns_config['bind_zonefiles_dir'].'/K'.$domain.'*.key') as $keyfile) {
- $dnssecdata .= file_get_contents($keyfile)."\n\n";
- }
-
- $app->db->query('UPDATE dns_soa SET dnssec_info=\''.$dnssecdata.'\', dnssec_initialized=\'Y\', dnssec_last_signed=\''.time().'\' WHERE id='.$data['id']);
- $data = next($soas);
- }
-
- parent::onRunJob();
- }
-
-}
-
-?>
+<?php
+
+/*
+Copyright (c) 2013, Marius Cramer, pixcept KG
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of ISPConfig nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+DNSSEC-Implementation by Alexander T�ffner aka dark alex
+*/
+
+class cronjob_bind_dnssec extends cronjob {
+
+ // job schedule
+ protected $_schedule = '30 3 * * *'; //daily at 3:30 a.m.
+
+ public function onRunJob() {
+ global $app, $conf;
+
+ //* Load libraries
+ $app->uses("getconf,tpl");
+
+ //* load the server configuration options
+ $dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns');
+
+ //TODO : change this when distribution information has been integrated into server record
+ $filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.';
+
+ $soas = $app->db->queryAllRecords('SELECT * FROM dns_soa WHERE dnssec_wanted=\'Y\' AND dnssec_initialized=\'Y\' AND dnssec_last_signed < '.(time()-(3600*24*5)+900)); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
+
+ foreach ($soas as $data) {
+ $domain = substr($data['origin'], 0, strlen($data['origin'])-1);
+ if (!file_exists($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain)) return false;
+
+ $app->log('DNSSEC Auto-Resign: Resigning zone '.$domain, LOGLEVEL_INFO);
+
+ $zonefile = file_get_contents($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain);
+ $keycount=0;
+ foreach (glob($dns_config['bind_zonefiles_dir'].'/K'.$domain.'*.key') as $keyfile) {
+ $includeline = '$INCLUDE '.basename($keyfile);
+ if (!preg_match('@'.preg_quote($includeline).'@', $zonefile)) $zonefile .= "\n".$includeline."\n";
+ $keycount++;
+ }
+ if ($keycount != 2) $app->log('DNSSEC Warning: There are more or less than 2 keyfiles for zone '.$domain, LOGLEVEL_WARN);
+ file_put_contents($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain, $zonefile);
+
+ //Sign the zone and set it valid for max. 16 days
+ exec('cd '.escapeshellcmd($dns_config['bind_zonefiles_dir']).';'.
+ '/usr/sbin/dnssec-signzone -A -e +1382400 -3 $(head -c 1000 /dev/random | sha1sum | cut -b 1-16) -N increment -o '.escapeshellcmd($domain).' -t '.$filespre.escapeshellcmd($domain));
+
+ //Write Data back into DB
+ $dnssecdata = "DS-Records:\n".file_get_contents($dns_config['bind_zonefiles_dir'].'/dsset-'.$domain.'.');
+ $dnssecdata .= "\n------------------------------------\n\nDNSKEY-Records:\n";
+ foreach (glob($dns_config['bind_zonefiles_dir'].'/K'.$domain.'*.key') as $keyfile) {
+ $dnssecdata .= file_get_contents($keyfile)."\n\n";
+ }
+
+ $app->db->query('UPDATE dns_soa SET dnssec_info=\''.$dnssecdata.'\', dnssec_initialized=\'Y\', dnssec_last_signed=\''.time().'\' WHERE id='.$data['id']);
+ $data = next($soas);
+ }
+
+ parent::onRunJob();
+ }
+
+}
+
+?>
--
Gitblit v1.9.1