From 33d9095cd16c3268ca0feeb69e1fb2498976b042 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Jul 2010 09:17:31 +0000 Subject: [PATCH] Updated several service dialogs, fixed typos, string, html, post handling and more. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19151 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dhcp/admin/systems/services/dhcp/class_dhcpService.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc index 75dfd3d3d..5952baa76 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc @@ -64,10 +64,10 @@ class dhcpService extends dhcpPlugin $smarty->assign('ddns_styles', $this->ddns_styles); foreach (array('max_lease_time', 'default_lease_time', 'ddns_update_style') as $value){ - $smarty->assign("$value", $this->statements->get(preg_replace('/_/', '-', $value))); + $smarty->assign("$value", set_post($this->statements->get(preg_replace('/_/', '-', $value)))); } - $smarty->assign("authoritative", $this->statements->exists('authoritative')); + $smarty->assign("authoritative",set_post( $this->statements->exists('authoritative'))); /* Show main page */ $display= $smarty->fetch(get_template_path('dhcp_service.tpl', TRUE, dirname(__FILE__))).$this->network->execute(); @@ -101,7 +101,7 @@ class dhcpService extends dhcpPlugin foreach (array('max_lease_time', 'default_lease_time', 'ddns_update_style') as $val){ $tval= preg_replace('/_/', '-', $val); if ($_POST[$val] != ""){ - $this->statements->set($tval,validate(get_post($val))); + $this->statements->set($tval,get_post($val)); } else { $this->statements->removeAll($tval); } -- 2.30.2