for more details. * * Copyright 2007-2010 Rejo Zenger * Copyright 2010-2014 Poweradmin Development Team * * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * Script that displays supermasters list * * @package Poweradmin * @copyright 2007-2010 Rejo Zenger * @copyright 2010-2014 Poweradmin Development Team * @license http://opensource.org/licenses/GPL-3.0 GPL */ require_once("inc/toolkit.inc.php"); include_once("inc/header.inc.php"); (verify_permission('supermaster_view')) ? $perm_sm_view = "1" : $perm_sm_view = "0"; (verify_permission('supermaster_edit')) ? $perm_sm_edit = "1" : $perm_sm_edit = "0"; $supermasters = get_supermasters(); $num_supermasters = ($supermasters == -1) ? 0 : count($supermasters); echo "

" . _('List supermasters') . "

\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; if ($num_supermasters == "0") { echo " \n"; echo " \n"; echo " \n"; echo " \n"; } else { foreach ($supermasters as $c) { echo " \n"; if ($perm_sm_edit == "1") { echo " \n"; } else { echo "\n"; } echo " \n"; echo " \n"; echo " \n"; echo " \n"; } } echo "
 " . _('IP address of supermaster') . "" . _('Hostname in NS record') . "" . _('Account') . "
 \n"; echo " " . _('There are no zones to show in this listing.') . "\n"; echo "
\"[ " . $c['master_ip'] . "" . $c['ns_name'] . "" . $c['account'] . "
\n"; include_once("inc/footer.inc.php");