Code

Added opsi info page
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Aug 2008 14:05:24 +0000 (14:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Aug 2008 14:05:24 +0000 (14:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12264 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsi/class_opsiware.inc [new file with mode: 0644]

diff --git a/gosa-plugins/opsi/admin/opsi/class_opsiware.inc b/gosa-plugins/opsi/admin/opsi/class_opsiware.inc
new file mode 100644 (file)
index 0000000..6612ae4
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+class opsiware extends plugin
+{
+  private $opsi;
+  private $SW_info;
+  private $HW_info;
+  private $hostId;
+
+  public function __construct($config,$hostId)
+  {
+    $this->config = $config;
+    $this->opsi   = new opsi($config);
+    $this->hostId = preg_replace("/^opsi:=([^,]*),.*$/","\\1",$hostId);
+  }
+
+  public function execute()
+  {
+    print_a($this->opsi->get_client_hardware($this->hostId));
+      
+  }
+
+}
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>