summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e602866)
raw | patch | inline | side by side (parent: e602866)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jan 2008 16:30:55 +0000 (16:30 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jan 2008 16:30:55 +0000 (16:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8300 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/generic/class_user.inc | patch | blob | history | |
gosa-core/plugins/personal/generic/main.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc
index e1904c07a5661858e9d752fe17f07c295874f572..035b557148090fffab8105c6e5ec02a4067b35d9 100644 (file)
var $plHeadline= "Generic";
var $plDescription= "This does something";
- /* CLI vars */
- var $cli_summary= "Handling of GOsa's user base object";
- var $cli_description= "Some longer text\nfor help";
- var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
/* Plugin specific values */
var $base= "";
var $orig_base= "";
/* Check for clean upload */
if ($_FILES['picture_file']['name'] != ""){
if (!is_uploaded_file($_FILES['picture_file']['tmp_name'])) {
- print_red(_("The specified file has not been uploaded via HTTP POST! Aborted."));
+ msg_dialog::display(_("Error"), _("Cannot upload file!"), ERROR_DIALOG);
}else{
/* Activate new picture */
$this->set_picture($_FILES['picture_file']['tmp_name']);
$_POST["certificateSerialNumber"] != ""){
if (!tests::is_id($_POST["certificateSerialNumber"])){
- print_red (_("Please enter a valid serial number"));
+ msg_dialog::display(_("Error"), _("Please enter a valid serial number!"), ERROR_DIALOG);
foreach(array("userCertificate", "userSMIMECertificate", "userPKCS12") as $cert){
if ($this->$cert != ""){
$this->base= $base;
}else{
$this->base = $base_tmp;
- print_red(sprintf(_("You are not allowed to move this object to '%s'."),LDAP::fix($_POST['base'])));
+ msg_dialog::display(_("Error"), sprintf(_("You have no permission to move this object to '%s'!"), LDAP::fix($_POST['base'])), ERROR_DIALOG);
$this->set_acl_base('dummy,'.$this->base);
}
}
fclose ($fd);
$this->is_modified= TRUE;
} else {
- print_red(_("Could not open specified certificate!"));
+ msg_dialog::display(_("Error"), _("Cannot open certificate!"), ERROR_DIALOG);
}
}
diff --git a/gosa-core/plugins/personal/generic/main.inc b/gosa-core/plugins/personal/generic/main.inc
index aeec45657a8c667767e17e8c67ac02e23ebce896..beafad1e8576858bd0427144216487f2c1837225 100644 (file)
} else {
/* Missing permissions, show message */
- print_red (_("You are not allowed to set your password!"));
+ msg_dialog::display(_("Error"), _("You have no permission to set your password!"), ERROR_DIALOG);
}
del_lock ($ui->dn);