summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1d3d825)
raw | patch | inline | side by side (parent: 1d3d825)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Jan 2008 17:49:16 +0000 (17:49 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Jan 2008 17:49:16 +0000 (17:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8277 594d385d-05f5-0310-b6e9-bd551577e9d8
index 7c0d014778b992d138eeea569a6b9c7821fb74b2..ebc751143371682a4c3778756768db819e48794a 100644 (file)
/* Uid parameter set? */
if (!isset($_GET['dn']) || $_GET['dn'] == ""){
- print_red (_("Error: getcvard.php needs a parameter to export a vcard!"));
- exit;
+ msg_dialog::display(_("Internal error"), _("Missing parameters!"), ERROR_DIALOG);
+ display_error_page();
}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
index 4cd21afb773edb503560b2c043c52dde5c94effd..ee95d68af5de509c1e68d94f089c166ab05633fe 100644 (file)
--- a/gosa-core/html/index.php
+++ b/gosa-core/html/index.php
$htaccess_authenticated= FALSE;
if (isset($config->data['MAIN']['HTACCESS_AUTH']) && preg_match('/^(yes|true)$/i', $config->data['MAIN']['HTACCESS_AUTH'])){
if (!isset($_SERVER['REMOTE_USER'])){
- print_red(_("There is a problem with the authentication setup. Please inform your system administrator."));
+ msg_dialog::display(_("Configuration error"), _("There is a problem with the authentication setup!"), ERROR_DIALOG);
display_error_page();
}
@@ -210,11 +210,11 @@ if (isset($config->data['MAIN']['HTACCESS_AUTH']) && preg_match('/^(yes|true)$/i
$username= $tmp['username'];
$server= $tmp['server'];
if ($username == ""){
- print_red(_("Cannot find a valid user for the current authentication setup."));
+ msg_dialog::display(_("Error"), _("Cannot find a valid user for the current authentication setup!"), ERROR_DIALOG);
display_error_page();
}
if ($server == ""){
- print_red(_("User information is not uniq accross the configured directories. Cannot authenticated."));
+ msg_dialog::display(_("Error"), _("User information is not uniq accross the configured LDAP trees!"), ERROR_DIALOG);
display_error_page();
}
@@ -240,7 +240,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
/* Admin-logon and verify */
$ldap = $config->get_ldap_link();
if (is_null($ldap) || (is_int($ldap) && $ldap == 0)){
- print_red (_("Can't bind to LDAP. Please contact the system administrator."));
+ msg_dialog::display(_("LDAP error"), _("Can't bind to LDAP. Please contact the system administrator."), ERROR_DIALOG);
displayLogin();
exit();
}
@@ -254,7 +254,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
$tls = (isset($config->current['TLS']) && $config->current['TLS'] == "true");
if(!count($ldap->get_objectclasses())){
- print_red(_("GOsa cannot retrieve information about the installed schema files. Please make sure, that this is possible."));
+ msg_dialog::display(_("LDAP error"), _("Cannot detect information about the installed LDAP schema!"), ERROR_DIALOG);
displayLogin();
exit() ;
}else{
@@ -267,7 +267,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
$checkarr = array();
foreach($str as $tr){
if(isset($tr['IS_MUST_HAVE']) && !$tr['STATUS']){
- print_red($tr['MSG']."<br>"._("Your ldap setup contains old schema definitions. Please re-run the setup."));
+ msg_dialog::display(_("LDAP error"), _("Your ldap setup contains old schema definitions:")."<br><br><i>".$tr['MSG']."</i>", ERROR_DIALOG);
displayLogin();
exit();
}
@@ -303,7 +303,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
if ($htaccess_authenticated){
$ui= ldap_login_user_htaccess($username);
if ($ui === NULL || !$ui){
- print_red(_("Authentication via htaccess not possible. Unable to retrieve user information."));
+ msg_dialog::display(_("Authentication error"), _("Cannot retrieve user information for htaccess authentication!"), ERROR_DIALOG);
display_error_page();
}
} else {
index 33da6744814e1b0fbb3be9d18e4481188afb2a7d..56f5aa89749deaac493cb8287d31667e69116b3e 100644 (file)
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
/* Check for memory */
if (function_exists("memory_get_usage")){
if (memory_get_usage() > (to_byte(ini_get('memory_limit')) - 2048000 )){
- print_red(_("Warning: memory is getting low - please increase the memory_limit!"));
+ msg_dialog::display(_("Configuration warning"), _("Running out of memory!"), WARNING_DIALOG);
}
}
if ($expired == 2){
new log("security","gosa","",array(),"password for user \"$ui->username\" is about to expire") ;
- print_red(_("Your password is about to expire, please change your password"));
+ msg_dialog::display(_("Password reminder"), _("Your password is about to expire, please change your password!"), INFO_DIALOG);
}
}
index 5c4af16790a22ca831c3791a6bea121b08271f27..c55e566445c50bf605db61520161dbd56e4e8a75 100644 (file)
if(!isset($objectclasses[$name])){
$checks[$name]['STATUS'] = FALSE;
if($value['IS_MUST_HAVE']){
- $checks[$name]['MSG'] = sprintf(_("The required objectClass '%s' is not present in your schema setup"),$class);
+ $checks[$name]['MSG'] = sprintf(_("Missing required object class '%s'!"),$class);
}else{
- $checks[$name]['MSG'] = sprintf(_("The optional objectClass '%s' is not present in your schema setup"),$class);
+ $checks[$name]['MSG'] = sprintf(_("Missing optional object class '%s'!"),$class);
}
}elseif(!check_schema_version($objectclasses[$name],$value['REQUIRED_VERSION'])){
$checks[$name]['STATUS'] = FALSE;
if($value['IS_MUST_HAVE']){
- $checks[$name]['MSG'] = sprintf(_("The required objectclass '%s' does not have version %s"), $class, $value['REQUIRED_VERSION']);
+ $checks[$name]['MSG'] = sprintf(_("Version mismatch for required object class '%s' (!=%s)!"), $class, $value['REQUIRED_VERSION']);
}else{
- $checks[$name]['MSG'] = sprintf(_("The optional objectclass '%s' does not have version %s"), $class, $value['REQUIRED_VERSION']);
+ $checks[$name]['MSG'] = sprintf(_("Version mismatch for optional object class '%s' (!=%s)!"), $class, $value['REQUIRED_VERSION']);
}
}else{
$checks[$name]['STATUS'] = TRUE;