[name, description, type] array // to avoid these tasks be done several times. Skipping for the moment. #'dc' => 'plugins/departments/images/domain.png', #'dc' => 'plugins/departments/images/dc.png', #'l' => 'plugins/departments/images/locality.png', #'c' => 'plugins/departments/images/country.png', #'o' => 'plugins/departments/images/organization.png', #'ou' => 'plugins/departments/images/folder.png', function __construct($bases, $base= "") { $this->setBases($bases); $this->setBase($base); $this->update(); } function setBase($base) { if (isset($this->pathMapping[$base])) { $this->base= $base; } else { die("Invalid base selected"); } } function setBases($bases) { global $config; $this->pathMapping= array(); $selected= $this->base == $config->current['BASE']?"Selected":""; $this->tree= "
"._("Root")."