summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5af2bbc)
raw | patch | inline | side by side (parent: 5af2bbc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 May 2010 08:03:01 +0000 (08:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 May 2010 08:03:01 +0000 (08:03 +0000) |
-Renamed core class and added core group
-Updated configRegistry to include 'main' and 'location' settings from gosa.conf
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18066 594d385d-05f5-0310-b6e9-bd551577e9d8
-Updated configRegistry to include 'main' and 'location' settings from gosa.conf
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18066 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_configRegistry.inc | patch | blob | history | |
gosa-core/include/class_core.inc | patch | blob | history |
diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc
index 564978d0d478b4729b8c2bc6d4cd5499c8cbf71d..c3f2ddbd977b97aea5b939a10bfa9d58dbd2b958 100644 (file)
$this->mapByClass = array();
$this->mapPropertyToClass = array();
- // Search for config flags defined in the config file
+ // Search for config flags defined in the config file (TAB section)
foreach($this->config->data['TABS'] as $tabname => $tabdefs){
foreach($tabdefs as $info){
}
}
+ // Search for config flags defined in the config file (MAIN section)
+ foreach($this->config->data['MAIN'] as $name => $value){
+ $this->fileStoredProperties['core'][strtolower($name)] = $value;
+ }
+
+ // Search for config flags defined in the config file (Current LOCATION section)
+ if(isset($this->config->current)){
+ foreach($this->config->current as $name => $value){
+ $this->fileStoredProperties['core'][strtolower($name)] = $value;
+ }
+ }
+
// Search for all config flags defined in the LDAP - BUT only if we ARE logged in.
if(!empty($this->config->current['CONFIG'])){
$ldap = $this->config->get_ldap_link();
}
// Second check for values in the config file.
- if(isset($this->parent->fileStoredProperties[$this->class][$this->name])){
+ if(isset($this->parent->fileStoredProperties[$this->class][strtolower($this->name)])){
$this->setStatus('file');
- $this->value = $this->parent->fileStoredProperties[$this->class][$this->name];
+ $this->value = $this->parent->fileStoredProperties[$this->class][strtolower($this->name)];
}
// If there still wasn't found anything then fallback to the default.
index f470f34114b18036fbaafedd5b8c11e99a6ad085..11804369f3f15a793b826837cfc585838db29664 100644 (file)
}
class core extends plugin {
-
-
- /*! \brief Add ACL object
- @return Returns the ACL object.
- */
static function plInfo()
{
return (array(
- "plShortName" => _("Sudo"),
- "plDescription" => _("Sudo role"),
+ "plShortName" => _("Core"),
+ "plDescription" => _("GOsa core plugin"),
"plSelfModify" => FALSE,
"plDepends" => array(),
"plPriority" => 0,
"plSection" => array("administration"),
- "plCategory" => array("sudo" => array("objectClass" => "sudoRole", "description" => _("Sudo role"))),
-
+ "plCategory" => array("all"),
"plProperties" => array(
-
array(
"name" => "logging",
"type" => "string",