index 4f11d399167104070e5e04af111ee4383f103f29..ec56ed885bf14dc326de4d57bcc74ce677f5445f 100644 (file)
$smarty->assign("gender_list", $sex);
/* Assign prefered langage */
- $language= array(0 => " ", "fr_FR" => ("fr_FR"), "en_EN" => ("en_EN"), "de_DE" => ("de_DE"), "it_IT" => ("it_IT"), "nl_NL" => ("nl_NL"));
+ $language= array(0 => " ", "fr_FR" => ("fr_FR"), "en_EN" => ("en_EN"),
+ "de_DE" => ("de_DE"), "it_IT" => ("it_IT"),
+ "nl_NL" => ("nl_NL"), "ru_RU" => ("ru_RU"));
$smarty->assign("preferredLanguage_list", $language);
/* Get random number for pictures */
foreach($_POST as $name => $value){
if(preg_match("/^chooseBase/",$name) && $once){
$once = false;
- $this->dialog = new baseSelectDialog($this->config,$this->allowedBasesToMoveTo());
+ $this->dialog = new baseSelectDialog($this->config,$this,$this->allowedBasesToMoveTo());
$this->dialog->setCurrentBase($this->base);
}
}
$this->pw_storage= $this->config->current['HASH'];
}
- $temp = passwordMethod::get_available_methods();
+ $temp = @passwordMethod::get_available_methods();
$hashes = $temp['name'];
$smarty->assign("pwmode", $hashes);
{
$ldap= $this->config->get_ldap_link();
$ldap->rmdir ($this->dn);
+ show_ldap_error($ldap->get_error(), _("Removing generic user account failed"));
/* Delete references to groups */
$ldap->cd ($this->config->current['BASE']);
/* Save data. Using 'modify' implies that the entry is already present, use 'add' for
new entries. So do a check first... */
- $ldap->cat ($this->dn);
+ $ldap->cat ($this->dn, array('dn'));
if ($ldap->fetch()){
$mode= "modify";
} else {
$this->cleanup();
$ldap->cd ($this->dn);
$ldap->$mode ($this->attrs);
- if (show_ldap_error($ldap->get_error())){
+ if (show_ldap_error($ldap->get_error(), _("Saving generic user account failed"))){
return (1);
}
$this->handle_post_events("modify");
}
+ /* Fix tagging if needed */
+ $this->handle_object_tagging();
+
return (0);
}
/* Check formular input */
function check()
{
- $message= array();
+ /* Call common method to give check the hook */
+ $message= plugin::check();
/* Assemble cn */
$this->cn= $this->givenName." ".$this->sn;
$smarty->assign("uid", $this->uid);
$smarty->assign("rand", $rand);
$str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE,dirname(__FILE__)));
-
- return($str);
+
+
+ $ret = array();
+ $ret['string'] = $str;
+ $ret['status'] = "";
+ return($ret);
}
function saveCopyDialog()