From: hickert Date: Wed, 23 Jan 2008 09:09:09 +0000 (+0000) Subject: Updated Kiosk handling. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c42239560fc1a9a7d15732598bc964bfb3d5e39;p=gosa.git Updated Kiosk handling. - Download will be triggered directly now, getkiosk.php will be removed now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8551 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc b/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc index 287ed9e36..7b15b7946 100644 --- a/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc +++ b/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc @@ -78,6 +78,22 @@ class goKioskService extends goService{ $smarty= get_smarty(); $display= ""; + /* Download kiosk profile + */ + if(isset($_GET['getkiosk'])){ + $id = $_GET['getkiosk']; + foreach($this->gotoKioskProfiles as $profile){ + if($profile['name'] == $id){ + $name = $this->baseDir."/".$id; + if(file_exists($name)){ + $content = file_get_contents($name); + send_binary_content($content,$id); + } + } + } + } + + /* Add new kiosk profile * in profile directory ($this->baseDir); */ @@ -148,7 +164,7 @@ class goKioskService extends goService{ $divlist -> SetHeight (300); foreach($this->gotoKioskProfiles as $key => $val ){ $divlist->AddEntry(array( - array("string"=>"".$val['name'].""), + array("string"=>"".$val['name'].""), array("string"=>"" , "attach"=>" style='border-right: 0px;width:24px; text-align:center;' ") @@ -165,6 +181,8 @@ class goKioskService extends goService{ return($smarty->fetch(get_template_path("goKioskService.tpl",TRUE,dirname(__FILE__)))); } + + function getListEntry() { $fields = goService::getListEntry();