*/ require_once "guiconfig.inc"; require_once "interfaces.inc"; require_once "services.inc"; require_once "interfaces.inc"; require_once "pfsense-utils.inc"; if (!isset($config['dyndnses']['dyndns'])) { $config['dyndnses']['dyndns'] = array(); } $a_dyndns =& $config['dyndnses']['dyndns']; if ($_GET['act'] == "del") { $conf = $a_dyndns[$_GET['id']]; @unlink("/conf/dyndns_{$conf['interface']}{$conf['type']}" . escapeshellarg($conf['host']) . "{$conf['id']}.cache"); unset($a_dyndns[$_GET['id']]); write_config(); services_dyndns_configure(); header("Location: services_dyndns.php"); exit; } $pgtitle = array(gettext("Services"), gettext("Dynamic DNS clients")); include "head.inc"; $main_buttons = array(array('label' => 'Add', 'href' => 'services_dyndns_edit.php')); ?> <body> <?php include "fbegin.inc"; ?> <section class="page-content-main">
$config['dyndns']['wildcard'] = $_POST['wildcard'] ? true : false; $config['dyndns']['enable'] = $_POST['enable'] ? true : false; $config['dnsupdate']['enable'] = $_POST['dnsupdate_enable'] ? true : false; $config['dnsupdate']['host'] = $_POST['dnsupdate_host']; $config['dnsupdate']['server'] = $_POST['dnsupdate_server']; $config['dnsupdate']['ttl'] = $_POST['dnsupdate_ttl']; $config['dnsupdate']['keyname'] = $_POST['dnsupdate_keyname']; $config['dnsupdate']['keytype'] = $_POST['dnsupdate_keytype']; $config['dnsupdate']['keydata'] = $_POST['dnsupdate_keydata']; $config['dnsupdate']['usetcp'] = $_POST['dnsupdate_usetcp'] ? true : false; write_config(); $retval = 0; /* nuke the cache file */ config_lock(); services_dyndns_reset(); $retval = services_dyndns_configure(); $retval |= services_dnsupdate_process(); config_unlock(); $savemsg = get_std_save_message($retval); } } $pgtitle = "Servisler: Dinamik DNS"; include "head.inc"; ?> <script language="JavaScript"> <!-- function enable_change(enable_change) { var endis; endis = !(document.iform.enable.checked || enable_change);