summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc69c60)
raw | patch | inline | side by side (parent: fc69c60)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Jul 2010 12:10:34 +0000 (12:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Jul 2010 12:10:34 +0000 (12:10 +0000) |
-Fixed post handling
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19106 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19106 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
index 3ac55b867f3d6b5d6449f88f43c098f4e4975ec2..5ce8c317ac646d0b93fccc2e81de2a464783f876 100644 (file)
}
if (isset($_POST['action']) && $this->acl_is_writeable("FAIstate") && isset($this->validActions[$_POST['saction']])){
- $action = $_POST['saction'];
+ $action = get_post('saction');
/* Check if we have an DaemonEvent for this action */
if(class_available("DaemonEvent_".$action)){
/* Add new ntp Server to our list */
if((isset($_POST['addNtpServer'])) && (isset($_POST['gotoNtpServers'])) && $this->acl_is_writeable("gotoNtpServer")){
- $this->gotoNtpServer[$_POST['gotoNtpServers']] = $_POST['gotoNtpServers'];
+ $this->gotoNtpServer[get_post('gotoNtpServers')] = get_post('gotoNtpServers');
}
/* Delete selected NtpServer for list of used servers */
if((isset($_POST['delNtpServer'])) && (isset($_POST['gotoNtpServerSelected'])) && $this->acl_is_writeable("gotoNtpServer")){
- foreach($_POST['gotoNtpServerSelected'] as $name){
+ foreach(get_post('gotoNtpServerSelected') as $name){
unset($this->gotoNtpServer[$name]);
}
}
$smarty->assign($name."ACL",$this->getacl($name));
}
- $smarty->assign("cn", $this->cn);
- $smarty->assign("description", $this->description);
+ $smarty->assign("cn",set_post($this->cn));
+ $smarty->assign("description", set_post($this->description));
/* tell smarty the inherit checkbox state */
$smarty->assign("inheritTimeServer",$this->inheritTimeServer);
/* Check if terminal is online */
if (gosaSupportDaemon::ping($this->netConfigDNS->macAddress)){
- $smarty->assign("actions", array( "halt" => _("Switch off"),
- "reboot" => _("Reboot"),
-#"memcheck" => _("Memory test"),
-#"sysinfo" => _("System analysis")
- ));
+ $smarty->assign("actions", set_post(array("halt" => _("Switch off"),"reboot" => _("Reboot"))));
} else {
- $smarty->assign("actions", array("wake" => _("Wake up"),
-#"memcheck" => _("Memory test"),
-#"sysinfo" => _("System analysis")
- ));
+ $smarty->assign("actions", set_post(array("wake" => _("Wake up"))));
}
/* Arrays */
- $smarty->assign("modes", $this->modes);
+ $smarty->assign("modes", set_post($this->modes));
$tmp2 = array();
$tmp2['!']= _("Local swap");
}
}
- $smarty->assign("swapservers", $tmp2);
+ $smarty->assign("swapservers", set_post($tmp2));
$tmp2 = array();
foreach($this->config->data['SERVERS']['NFS'] as $server){
if($server != "default"){
}
}
- $smarty->assign("nfsservers", $tmp2);
- $smarty->assign("syslogservers", $this->gotoSyslogServers);
+ $smarty->assign("nfsservers", set_post($tmp2));
+ $smarty->assign("syslogservers", set_post($this->gotoSyslogServers));
$tmp = array();
foreach($this->gotoNtpServers as $server){
}
}
- $smarty->assign("ntpservers", $tmp);
+ $smarty->assign("ntpservers", set_post($tmp));
$smarty->assign("fai_activated",$this->fai_activated);
/* Variables */
foreach(array("gotoMode", "gotoTerminalPath", "gotoSwapServer","gotoSyslogServer", "gotoNtpServer") as $val){
- $smarty->assign($val."_select", $this->$val);
+ $smarty->assign($val."_select", set_post($this->$val));
}
$smarty->assign("base", $this->baseSelector->render());
{
$vars = array("cn");
$smarty = get_smarty();
- $smarty->assign("cn" ,$this->cn);
+ $smarty->assign("cn" , set_post($this->cn));
$smarty->assign("object","terminal");
$str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
$ret = array();
function saveCopyDialog()
{
if(isset($_POST['cn'])){
- $this->cn = $_POST['cn'];
+ $this->cn = get_post('cn');
}
}