Code

Added none to kioskprofiles
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Dec 2005 09:53:28 +0000 (09:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Dec 2005 09:53:28 +0000 (09:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2303 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index ca471c64a720324a52d13c1538e0ad733f5312fc..63ceccd5f563b9e0c8bc0e57c716ed3723ab0c3d 100644 (file)
@@ -48,7 +48,7 @@ class environment extends plugin
   var $gotoAvailableShares= array();// Available Shares for this account
   
   /* Kiosk profile */
-  var $gotoKioskProfile   = "";     // The selected Kiosk Profile
+  var $gotoKioskProfile   = "none";     // The selected Kiosk Profile
   var $gotoKioskProfiles  = array();// All available Kiosk profiles
   VAR $newKioskProfiles   = array();
 
@@ -392,6 +392,10 @@ class environment extends plugin
     $tmp = new kioskManagementDialog($this->config,$this->dn);
     $list = $tmp->getKioskProfiles($this->newKioskProfiles);
 
+    $list['none']=_("None");
+
+    $list = array_reverse($list);
+
     /* Reassign help class */
     $_SESSION['current_class_for_help'] = get_class($this);
  
@@ -932,7 +936,7 @@ class environment extends plugin
       $this->attrs['gotoShare'][] =$share['server']."|".$share['name']."|".$share['mountPoint']."|".$share['OtherStuff'];
     }
 
-    if(!empty($this->gotoKioskProfile)){
+    if((!empty($this->gotoKioskProfile))&&($this->gotoKioskProfile != "none")){
       if(preg_match("/https/i",$_SERVER['HTTP_REFERER'])){
         $method="https://";
       }else{