Code

Updated several service dialogs, fixed typos, string, html, post handling and more.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jul 2010 09:17:31 +0000 (09:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Jul 2010 09:17:31 +0000 (09:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19151 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc

index 75dfd3d3d5caffebc954feeee7d96956e7637d03..5952baa7671168b3dabb9dfaabeea38878f64ca1 100644 (file)
@@ -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);
                 }