X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fgoto%2Fpersonal%2Fenvironment%2Fclass_environment.inc;h=e3bdb3b148187b95c6bfc72166573963fac2961e;hb=e1b170490c61df9cdc32629e6dfcd2c59946337a;hp=511565d75902b63b938af076ef5ba1aca0d92b87;hpb=8c72dbe4975b597a382b476c79f30a6111079bc3;p=gosa.git diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index 511565d75..e3bdb3b14 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -2,6 +2,8 @@ class environment extends plugin { + var $plIcon = "plugins/goto/images/plugin.png"; + /* attribute list for save action */ var $ignore_account = FALSE; var $plHeadline = "Environment"; @@ -13,7 +15,7 @@ class environment extends plugin var $is_group = false; var $view_logged = FALSE; - + /* Attribute definition */ @@ -215,8 +217,8 @@ class environment extends plugin "1280x768" => "1280x768", "1280x1024" => "1280x1024"); - if(isset($this->config->data['MAIN']['RESOLUTION_HOOK'])){ - $file = $this->config->data['MAIN']['RESOLUTION_HOOK']; + if($this->config->get_cfg_value("resolutions") != ""){ + $file = $this->config->get_cfg_value("resolutions"); if(is_readable($file)){ $str = file_get_contents($file); @@ -739,7 +741,7 @@ class environment extends plugin $tmp = array(); - if($this->acl_is_readable("gotoShares")){ + if($this->acl_is_readable("gotoShare")){ $tmp = $this->printOutAssignedShares(); } @@ -773,7 +775,8 @@ class environment extends plugin /* Create pwd reset images */ if($this->gotoShares[$key]['PwdHash'] != ""){ - $img.= ""; } $field1 = array("string" => "".$value."" , "attach" => "style='".$color."'"); @@ -782,7 +785,8 @@ class environment extends plugin /* Create pwd reset img && delete image */ if($this->gotoShares[$key]['PwdHash'] != ""){ - $img.= ""; $img.= " "; } @@ -1353,19 +1357,16 @@ class environment extends plugin function printOutPrinterDevices() { $a_return = array(); - - if($this->acl_is_readable("gotoPrinter")){ - if(is_array($this->gotoPrinter)){ - foreach($this->gotoPrinter as $printer){ - if($printer['mode'] == "admin"){ - $a_return[$printer['cn'][0]]= $printer['cn'][0]." - "._("Administrator"); - }else{ - $a_return[$printer['cn'][0]]= $printer['cn'][0]; - } - if ($printer['cn'][0] == $this->gosaDefaultPrinter){ - $a_return[$printer['cn'][0]].=" - "._("Default printer"); - } + if(is_array($this->gotoPrinter)){ + foreach($this->gotoPrinter as $printer){ + if($printer['mode'] == "admin"){ + $a_return[$printer['cn'][0]]= $printer['cn'][0]." - "._("Administrator"); + }else{ + $a_return[$printer['cn'][0]]= $printer['cn'][0]; + } + if ($printer['cn'][0] == $this->gosaDefaultPrinter){ + $a_return[$printer['cn'][0]].=" - "._("Default printer"); } } } @@ -1775,19 +1776,15 @@ class environment extends plugin "plProvidedAcls" => array( - "gotoProfileFlagL" => _("Resolution changeable during session") , - "gotoProfileFlagC" => _("Cache profile localy") , - - "gotoProfileQuota" => _("Profile quota") , "gotoProfileServer" => _("Profile server") , - - "gotoXResolution" => _("Resolution") , - "gotoKioskProfile" => _("Kiosk profile") , - - "gosaDefaultPrinter" => _("Default printer") , - "gotoLogonScript" => _("Logon script") , + "gotoProfileQuota" => _("Profile quota") , + "gotoProfileFlagC" => _("Cache profile localy") , + "gotoShare" => _("Shares"), "gotoHotplugDevice" => _("Hotplug devices"), - "gotoShare" => _("Shares")) + "gotoKioskProfile" => _("Kiosk profile") , + "gotoProfileFlagL" => _("Resolution changeable during session") , + "gotoXResolution" => _("Resolution") , + "gotoLogonScript" => _("Logon script")) )); } }