summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1d2f67d)
raw | patch | inline | side by side (parent: 1d2f67d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Mar 2008 14:22:51 +0000 (14:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Mar 2008 14:22:51 +0000 (14:22 +0000) |
-Updated mysql errors.
-Added permView
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9442 594d385d-05f5-0310-b6e9-bd551577e9d8
-Added permView
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9442 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/utils/class_msgPool.inc | patch | blob | history |
index ca3e8cef97efe94dfc598732f0e887e70fe89202..27266d311bcdb8071a8d4f0c5844ec3b0f7ad9c5 100644 (file)
}
+ public static function permView($name= "")
+ {
+ if ($name == "") {
+ return (_("You have no permission to view this object!"));
+ }
+
+ if (!is_array($name)){
+ return (_("You have no permission to view the object:")."<br><br><i>$name</i>");
+ }
+
+ if (count($name) == 1){
+ return (_("You have no permission to view the object:")."<br>".msgPool::buildList($name));
+ }
+
+ return (_("You have no permission to view these objects:")."<br>".msgPool::buildList($name));
+ }
+
+
public static function permMove($name= "")
{
if ($name == "") {
$error= "<br><br><i>"._("Error").":</i> ".$error;
}
if ($dbinfo != ""){
- $error= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
+ $error.= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
}
return (sprintf(_("Cannot connect to server %s!"), $name).$error);
}
$error= "<br><br><i>"._("Error").":</i> ".$error;
}
if ($dbinfo != ""){
- $error= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
+ $error.= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
}
return (sprintf(_("Cannot select %s database!"), $name).$error);
}
$error= "<br><br><i>"._("Error").":</i> ".$error;
}
if ($dbinfo != ""){
- $error= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
+ $error.= "<br><br><i>"._("Connection information").":</i> ".$dbinfo;
}
return (sprintf(_("Cannot query %s database!"), $name).$error);
}