Skip to content

Commit 1090a17

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1'
2 parents 98a3861 + be34bb8 commit 1090a17

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

server/lib/classes/cron.d/550-bind_dnssec.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,14 @@ public function onRunJob() {
8282

8383
//* Load libraries
8484
$app->uses("getconf,tpl");
85+
86+
//* load the server configuration options
87+
// $dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns');
8588

8689
//TODO : change this when distribution information has been integrated into server record
8790
// $filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.';
88-
$soas = $app->db->queryAllRecords("SELECT id,serial,origin FROM dns_soa WHERE server_id = ? AND active= 'Y' AND dnssec_wanted = 'Y' AND dnssec_initialized = 'Y' AND (dnssec_last_signed < ? OR dnssec_last_signed > ?)", $conf['server_id'], time()-(3600*24*5)+900, time()+900); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
91+
// $soas = $app->db->queryAllRecords("SELECT id,serial,origin FROM dns_soa WHERE server_id = ? AND active= 'Y' AND dnssec_wanted = 'Y' AND dnssec_initialized = 'Y' AND (dnssec_last_signed < ? OR dnssec_last_signed > ?)", $conf['server_id'], time()-(3600*24*5)+900, time()+900); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
92+
$soas = $app->db->queryAllRecords("SELECT id,serial,origin FROM dns_soa WHERE active= 'Y' AND dnssec_wanted = 'Y' AND dnssec_initialized = 'Y' AND (dnssec_last_signed < ? OR dnssec_last_signed > ?)", time()-(3600*24*5)+900, time()+900); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
8993

9094
foreach ($soas as $data) {
9195
$domain = substr($data['origin'], 0, strlen($data['origin'])-1);

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_<?php
1+
<?php
22

33
/*
44
Copyright (c) 2007 - 2012, Till Brehm, projektfarm Gmbh

0 commit comments

Comments
 (0)