mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-13 08:07:00 +02:00
Quite a few fixes in the CP, logs now match the rest
This commit is contained in:
parent
d312db4f14
commit
09a3ae3cc4
5 changed files with 71 additions and 65 deletions
|
@ -692,14 +692,16 @@ class SystemController extends Controller
|
|||
return $response->withHeader('Location', '/registry/tld/'.$tld_extension)->withStatus(302);
|
||||
}
|
||||
|
||||
if ($data['dnssec_enable'] === 'on' && $data['bind9_enable'] === 'on') {
|
||||
$dnssec_both = 1;
|
||||
} elseif ($data['dnssec_enable'] === 'on' && $data['bind9_enable'] !== 'on') {
|
||||
$this->container->get('flash')->addMessage('error', 'DNSSEC can be only enabled for BIND9');
|
||||
return $response->withHeader('Location', '/registry/tld/'.$tld_extension)->withStatus(302);
|
||||
} elseif ($data['dnssec_enable'] !== 'on' && $data['bind9_enable'] === 'on') {
|
||||
$this->container->get('flash')->addMessage('error', 'DNSSEC can be only enabled for BIND9');
|
||||
return $response->withHeader('Location', '/registry/tld/'.$tld_extension)->withStatus(302);
|
||||
if (isset($data['dnssec_enable'], $data['bind9_enable'])) {
|
||||
if ($data['dnssec_enable'] === 'on' && $data['bind9_enable'] === 'on') {
|
||||
$dnssec_both = 1;
|
||||
} elseif ($data['dnssec_enable'] === 'on' && $data['bind9_enable'] !== 'on') {
|
||||
$this->container->get('flash')->addMessage('error', 'DNSSEC can be only enabled for BIND9');
|
||||
return $response->withHeader('Location', '/registry/tld/'.$tld_extension)->withStatus(302);
|
||||
} elseif ($data['dnssec_enable'] !== 'on' && $data['bind9_enable'] === 'on') {
|
||||
$this->container->get('flash')->addMessage('error', 'DNSSEC can be only enabled for BIND9');
|
||||
return $response->withHeader('Location', '/registry/tld/'.$tld_extension)->withStatus(302);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue