summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 10c1d1c)
raw | patch | inline | side by side (parent: 10c1d1c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Oct 2005 07:11:19 +0000 (07:11 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Oct 2005 07:11:19 +0000 (07:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1493 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/environment/class_environment.inc | patch | blob | history | |
plugins/personal/environment/class_kioskManagementDialog.inc | patch | blob | history |
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 7795b5ea89725eab28e27c57319da5abe5fb6dd3..6ec5f58fce0dafe4dca5246c2ea4080180bf1aef 100644 (file)
All these tab management is done here
*/
- print_a($this);
-
/* Working from Usermenu an the Account is currently disbled
* this->parent : is only set if we are working in a list of tabs
* is_account : is only true if the needed objectClass is given
$realyUsedAttrs= array();
- $path = search_config($this->config->data['MENU'],"environment", "KIOSKPATH");
+ $path = search_config($this->config->data,"environment", "KIOSKPATH");
/* Creating Kiosk Profiles */
foreach($this->newKioskProfiles as $file){
$contents = $file['contents'];
diff --git a/plugins/personal/environment/class_kioskManagementDialog.inc b/plugins/personal/environment/class_kioskManagementDialog.inc
index 428bab2cf606f0865940db38f317ee99e586f588..27f5e4291a1331062f1f28ab173f799c03a7930c 100644 (file)
if($attach){
$this->filesToAttach = $attach;
}
- $this->baseDir = search_config($this->config->data['MENU'],"environment", "KIOSKPATH");
+ $this->baseDir = search_config($this->config->data,"environment", "KIOSKPATH");
}
function execute()
function getKioskProfiles($attach = false)
{
$a_return = array();
+
+ /* Empty? */
+ if ($this->baseDir == ""){
+ print_red(_("There is no KIOSKPATH defined in your gosa.conf. Can't manage kiosk profiles!"));
+ return ($a_return);
+ }
+
$dir = @opendir($this->baseDir);
if(!$dir){
- print_red(sprintf(_("Can't open kiosk_path '%s'. Error was: permission denied. Possibly there is no kiosk_path defined in the configuration file."),$this->baseDir));
+ print_red(sprintf(_("Kiosk path '%s' is not accessible. Please check the permissions."),$this->baseDir));
}else{
$a_return = array();
while($file = readdir($dir)){