rename PDNSADMIN var to VDNSADMIN

This commit is contained in:
Matthew Saunders Brown 2024-03-28 11:17:00 -07:00
parent 7abc568b57
commit 1dbc0ba2f3
4 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ class Vdns extends \Panel {
parent::beforeRoute($f3);
if ($f3->get('PDNSADMIN') != '1') {
if ($f3->get('VDNSADMIN') != '1') {
$f3->reroute('/');
}

View File

@ -29,8 +29,8 @@ WRITEUSERINFO=1
; Show "Write User Info" & "Write DB Info" options. If no then just use defaults above without giving users the option to change. 1 = Yes, blank or 0 = No
SHOWWRITEINFO=0
; DNS admin. 1 = Yes, blank or 0 = No
PDNSADMIN=0
VDNSADMIN=0
; Maximum number of results returned for DNS listings. Defaults to 100 if unspecified.
;PDNSMAX=100
; URL to phpMyPDNS. If this is set, and PDNSADMIN is enabled, show link to phpMyPDNS
; URL to phpMyPDNS. If this is set, and VDNSADMIN is enabled, show link to phpMyPDNS
PHPMYPDNSURL=

View File

@ -39,7 +39,7 @@ $f3->set('NAV.mapping', $mapping);
$f3->config("config/maps-$mapping.ini");
/* load DNS mapping, if enabled */
if ($f3->get('PDNSADMIN') == '1') {
if ($f3->get('VDNSADMIN') == '1') {
$f3->config("config/maps-vdns.ini");
}

View File

@ -33,7 +33,7 @@
<a href="{{@BASE}}/Databases">Databases</a> |
<a href="{{@BASE}}/Certs">Certificates</a> |
<a href="{{@BASE}}/Users">Users</a> |
<check if="{{ @PDNSADMIN=='1' }}"><a href="{{@BASE}}/DNS">DNS</a> |</check>
<check if="{{ @VDNSADMIN=='1' }}"><a href="{{@BASE}}/DNS">DNS</a> |</check>
<a href="{{@BASE}}/Logout">Logout</a>
</check>