From: hickert Date: Fri, 7 Mar 2008 14:22:51 +0000 (+0000) Subject: Updated msgPool X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=caa4576821f1af3ee5e1c845afdd62d46b9dea5b;p=gosa.git Updated msgPool -Updated mysql errors. -Added permView git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9442 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_msgPool.inc b/gosa-core/include/utils/class_msgPool.inc index ca3e8cef9..27266d311 100644 --- a/gosa-core/include/utils/class_msgPool.inc +++ b/gosa-core/include/utils/class_msgPool.inc @@ -57,6 +57,24 @@ class msgPool } + 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:")."

$name"); + } + + if (count($name) == 1){ + return (_("You have no permission to view the object:")."
".msgPool::buildList($name)); + } + + return (_("You have no permission to view these objects:")."
".msgPool::buildList($name)); + } + + public static function permMove($name= "") { if ($name == "") { @@ -81,7 +99,7 @@ class msgPool $error= "

"._("Error").": ".$error; } if ($dbinfo != ""){ - $error= "

"._("Connection information").": ".$dbinfo; + $error.= "

"._("Connection information").": ".$dbinfo; } return (sprintf(_("Cannot connect to server %s!"), $name).$error); } @@ -93,7 +111,7 @@ class msgPool $error= "

"._("Error").": ".$error; } if ($dbinfo != ""){ - $error= "

"._("Connection information").": ".$dbinfo; + $error.= "

"._("Connection information").": ".$dbinfo; } return (sprintf(_("Cannot select %s database!"), $name).$error); } @@ -105,7 +123,7 @@ class msgPool $error= "

"._("Error").": ".$error; } if ($dbinfo != ""){ - $error= "

"._("Connection information").": ".$dbinfo; + $error.= "

"._("Connection information").": ".$dbinfo; } return (sprintf(_("Cannot query %s database!"), $name).$error); }