Code

Updated display image, moved into goto images.
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_terminalInfo.inc
index 0ff6e3ab69ebf8b247b70fa3dfae657954017668..071c99bf6494f4a0a41536fdf23818535ef4299d 100644 (file)
@@ -2,11 +2,6 @@
 
 class terminfo extends plugin
 {
-  /* CLI vars */
-  var $cli_summary= "Retrieve informations about terminals";
-  var $cli_description= "Some longer text\nfor help";
-  var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
   /* Generic terminal attributes */
   var $ghCpuType= "-";
   var $ghMemSize= "-";
@@ -69,14 +64,14 @@ class terminfo extends plugin
 
     /* Do we represent a valid terminal? */
     if (!$this->is_account && $this->parent === NULL){
-      return("<img alt=\"\" src=\"images/stop.png\" align=middle>&nbsp;<b>".
-        _("This 'dn' has no terminal features.")."</b>");
+      return("<img alt=\"\" src=\"images/small-error.png\" align=middle>&nbsp;<b>".
+        msgPool::noValidExtension(_("terminal"))."</b>");
     }
 
     $smarty= get_smarty();
     $display= "";
     if(!is_callable("snmpget")){
-      print_red(_("There is no php snmp module installed, can't gather any informations."));
+      msg_dialog::display(_("Configuration error"), msgPool::missingext("snmp"), ERROR_DIALOG);
 
       $smarty->assign("load", progressbar(0,100,15,true));
       $smarty->assign("mem", progressbar(0,100,15,true));