Code

Added dummy for rsyslog plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Dec 2009 16:49:12 +0000 (16:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Dec 2009 16:49:12 +0000 (16:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14900 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc [new file with mode: 0644]
gosa-plugins/rsyslog/addons/rsyslog/main.inc [new file with mode: 0644]
gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl [new file with mode: 0644]
gosa-plugins/rsyslog/addons/rsyslog/rsyslogTabs.inc [new file with mode: 0644]
gosa-plugins/rsyslog/plugin.dsc [new file with mode: 0644]

diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc
new file mode 100644 (file)
index 0000000..6e8b25d
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+class rsyslog extends plugin
+{
+  var $plHeadline= "rSyslog";
+  var $plDescription= "View system logs";
+
+  function gosa_logview (&$config, $dn= NULL)
+  {
+    $this->config= &$config;
+    $this->ui = get_userinfo();
+  }
+
+  function execute()
+  {
+    $smarty = get_smarty();
+
+    return($smarty->fetch(get_template_path("rSyslog.tpl", TRUE)));
+  }
+}
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/gosa-plugins/rsyslog/addons/rsyslog/main.inc b/gosa-plugins/rsyslog/addons/rsyslog/main.inc
new file mode 100644 (file)
index 0000000..97944cf
--- /dev/null
@@ -0,0 +1,54 @@
+<?php
+/*
+  This code is part of GOsa (https://gosa.gonicus.de)
+  Copyright (C) 2003  Cajus Pollmeier
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+
+/* Remove locks created by this plugin
+*/
+if ($remove_lock){
+  if(session::is_set('rsyslogTabs')){
+       // Nothing to unlock here
+  }
+}
+
+/* Remove this plugin from session
+*/
+if ( $cleanup ){
+  session::un_set('rsyslogTabs');
+}else{
+
+
+       /* Create logview object on demand */
+       if (!session::is_set('rsyslogTabs')){
+               session::set('rsyslogTabs',new rsyslogTabs($config, $config->data['TABS']['RSYSLOGTABS'],""));
+       }
+       $rsyslogTabs = session::get('rsyslogTabs');
+
+       /* Execute formular */
+#      $display= $rsyslogTabs->save_object();
+       $display= $rsyslogTabs->execute ();
+       $display.= "<input type=\"hidden\" name=\"ignore\">\n";
+
+       /* Page header*/
+       $display= print_header(get_template_path('plugins/log/images/plugin.png'), _("System log view")).$display;
+
+       /* Store changes  in session */
+       session::set('rsyslogTabs',$rsyslogTabs);
+}
+?>
diff --git a/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl b/gosa-plugins/rsyslog/addons/rsyslog/rSyslog.tpl
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/gosa-plugins/rsyslog/addons/rsyslog/rsyslogTabs.inc b/gosa-plugins/rsyslog/addons/rsyslog/rsyslogTabs.inc
new file mode 100644 (file)
index 0000000..fc77f69
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+class rsyslogTabs extends tabs
+{
+  function save($ignore_account= FALSE)
+  {
+  }
+}
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/gosa-plugins/rsyslog/plugin.dsc b/gosa-plugins/rsyslog/plugin.dsc
new file mode 100644 (file)
index 0000000..e64080e
--- /dev/null
@@ -0,0 +1,8 @@
+[gosa-plugin]
+name = log
+description = "Syslog and GOsa logging plugin"
+version = 2.6.6
+author = "Cajus Pollmeier <pollmeier@gonicus.de>"
+maintainer = "GOsa packages maintainers group <gosa-pkg@oss.gonicus.de>"
+homepage = https://oss.gonicus.de/labs/gosa/
+depends = systems