*** empty log message ***

This commit is contained in:
katagia 2004-01-28 14:05:22 +00:00
parent 2dcbda5ecb
commit fb1e38e2c1
3 changed files with 5 additions and 8 deletions

View File

@ -529,6 +529,9 @@ class accountContainer {
echo ">\n"; echo ">\n";
echo "<a href=../help.php?module=$module&item=". $input[$i][$j]['value'] . ">" . _('Help') . "</a></td>\n"; echo "<a href=../help.php?module=$module&item=". $input[$i][$j]['value'] . ">" . _('Help') . "</a></td>\n";
break; break;
case 'message':
StatusMessage($input[$i][$j]['type'], $input[$i][$j]['headline'], $input[$i][$j]['text']);
break;
default: default:
echo "<td>Unrecognized type: " . $input[$i][$j]['kind'] . "</td>\n"; echo "<td>Unrecognized type: " . $input[$i][$j]['kind'] . "</td>\n";
break; break;
@ -797,8 +800,6 @@ class accountContainer {
else { else {
// Add module if it exists // Add module if it exists
if (class_exists($objectClass)) { if (class_exists($objectClass)) {
print $objectClass;
print "<br>X";
$this->module[$objectClass] = new $objectClass($this->base); $this->module[$objectClass] = new $objectClass($this->base);
} }
else trigger_error (_("objectClass $objectClass required but no module found."), E_USER_WARNING); else trigger_error (_("objectClass $objectClass required but no module found."), E_USER_WARNING);
@ -882,10 +883,7 @@ class accountContainer {
$this->order = $order; $this->order = $order;
// *** fixme load*Profile must return array in the same way ldap_get_attributes does. // *** fixme load*Profile must return array in the same way ldap_get_attributes does.
$function = '$newattributes = load'.ucfirst($this->type).'Profile(\'default\');'; $function = '$newattributes = load'.ucfirst($this->type).'Profile(\'default\');';
eval($function); //eval($function);
// pass newattributes to each module
//foreach ($module as $module2)
// $this->module[$module2]->load_attributes($newattributes);
return 0; return 0;
} }

View File

@ -194,7 +194,7 @@ class main {
// Show reason why module is disabled // Show reason why module is disabled
for ($i=0; $i<count($modules); $i++) for ($i=0; $i<count($modules); $i++)
$return[] = array ( 0 => array ( 'kind' => 'message', 'type' => 'ERROR', 'headline' => _('Check module'), $return[] = array ( 0 => array ( 'kind' => 'message', 'type' => 'ERROR', 'headline' => _('Check module'),
'text' => sprintf(_('Please set up all required attributes on %s page'), $_SESSION[$this->base]->module[$modules[$i]]->alias) )); 'text' => sprintf(_('Please set up all required attributes on %s page.'), $_SESSION[$this->base]->module[$modules[$i]]->get_alias()) ));
} }
else $disabled = true; else $disabled = true;

View File

@ -72,7 +72,6 @@ class posixAccount {
$this->orig = $_SESSION[$this->base]->get_module_attributes('posixAccount'); $this->orig = $_SESSION[$this->base]->get_module_attributes('posixAccount');
$this->attributes = $_SESSION[$this->base]->get_module_attributes('posixAccount'); $this->attributes = $_SESSION[$this->base]->get_module_attributes('posixAccount');
$this->alias = _('posixAccount');
$groups = $_SESSION[$_SESSION[$this->base]->cache]->findgroups(); // list of all groupnames $groups = $_SESSION[$_SESSION[$this->base]->cache]->findgroups(); // list of all groupnames
if (count($groups)==0) trigger_error(_('No groups found in ldap.'), E_USER_WARNING); if (count($groups)==0) trigger_error(_('No groups found in ldap.'), E_USER_WARNING);