summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a6d56f)
raw | patch | inline | side by side (parent: 9a6d56f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 21 Sep 2007 12:18:38 +0000 (12:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 21 Sep 2007 12:18:38 +0000 (12:18 +0000) |
search_config was called, instead of config->search
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7371 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7371 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/connectivity/class_opengwAccount.inc | patch | blob | history |
diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc
index 3646256f00ea5bb6d819379ccdb936a2c712987f..ee27afe83d7624235d0e6f757c966495abbc9af6 100644 (file)
/* Get configurations */
if($this->config->search("opengwAccount", 'USERNAME',array('data'))){
$atr = array();
- $atr['LOGIN'] = $this->config->search("opengwAccount", 'USERNAME',array('data'));
- $atr['PASSWORD']= $this->config->search("opengwAccount", 'PASSWORD',array('data'));
- $atr['SERVER'] = $this->config->search("opengwAccount", 'DATAHOST',array('data'));
- $atr['DB'] = $this->config->search("opengwAccount", 'DATABASE',array('data'));
+ $atr['LOGIN'] = $this->config->search("opengwAccount", 'USERNAME',array('tabs'));
+ $atr['PASSWORD']= $this->config->search("opengwAccount", 'PASSWORD',array('tabs'));
+ $atr['SERVER'] = $this->config->search("opengwAccount", 'DATAHOST',array('tabs'));
+ $atr['DB'] = $this->config->search("opengwAccount", 'DATABASE',array('tabs'));
$this->serverCon = $atr;
}elseif(isset($this->config->data['SERVERS']['OPENGROUPWARE'])){
$this->serverCon = $this->config->data['SERVERS']['OPENGROUPWARE'];
$display= "";
$smarty= get_smarty();
+ $smarty->assign("serverCon",count($this->serverCon));
$smarty->assign("validTeams","");
$smarty->assign("is_account", " ");
$smarty->assign("OGWstate"," disabled ");
$smarty->assign('opengwAccountACL', " disabled ");
}
+ if(count($this->serverCon))
+
/* Check database extension */
- if(!is_callable("pg_connect")){
+ if(!is_callable("pg_connect") && count($this->serverCon)){
print_red(_("OpenGroupware: Your configuration is missing a postgresql extension. Can't perform any database queries."));
- }else
+ }elseif(count($this->serverCon)){
/* Check if config exists */
- if(search_config($this->config->data,"opengwAccount","DATABASE")==""){
+ if($this->config->search("opengwAccount", 'DATABASE',array('tabs'))){
print_red(_("OpenGroupware: Missing database configuration for opengroupware. Can't get or set any informations."));
}else{
}
}
+ }
$display.= $smarty->fetch (get_template_path('opengw.tpl', TRUE, dirname(__FILE__)));
return ($display);
}