Code

Moved plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jun 2010 15:02:46 +0000 (15:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jun 2010 15:02:46 +0000 (15:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18892 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc [deleted file]
gosa-core/plugins/generic/dashBoard/dbAdvices/contents.tpl [deleted file]
gosa-core/plugins/generic/dashBoard/dbNotifications/class_dbAdvices.inc [new file with mode: 0644]
gosa-core/plugins/generic/dashBoard/dbNotifications/contents.tpl [new file with mode: 0644]

diff --git a/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc b/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc
deleted file mode 100644 (file)
index a34c1b7..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-
-class dbNotifications extends plugin
-{
-    function __construct($config)
-    {
-        parent::__construct($config, NULL);
-
-        // Construct the plugin list.
-        $this->adviceList = new sortableListing();
-        $this->adviceList->setDeleteable(false);
-        $this->adviceList->setEditable(false);
-        $this->adviceList->setWidth("100%");
-        $this->adviceList->setHeight("200px");
-        $this->adviceList->setAcl("rwcdm");
-    }
-
-    function execute()
-    {
-        // Get logs as RSS feed.
-        $rsyslog = new rsyslog($this->config);
-        $source = $rsyslog->logToRss(); 
-
-        // Read Feeds and sort the results 
-        $feeds = rssReader::parseFeedFromSource(array($source));
-        $feeds = rssReader::sortFeedResultBy($feeds, 'timestamp');
-
-        // Append the results to the list.
-        $data = $lData = array();
-        foreach($feeds as $key => $feed){
-            $data[$key] = $feed;
-            $lData[$key] = array('data'=> array(htmlentities($feed['title'],ENT_QUOTES,'UTF-8')));
-        }
-        $this->adviceList->setListData($data, $lData);
-        $this->adviceList->update();
-
-        // Generate the HTML content
-        $smarty = get_smarty();
-        $smarty->assign('adviceList', $this->adviceList->render());
-        return($smarty->fetch(get_template_path('dbNotifications/contents.tpl', TRUE)));
-    }
-
-    function save_object()
-    {
-        parent::save_object();
-        $this->adviceList->save_object();
-    }
-}
-
-?>
diff --git a/gosa-core/plugins/generic/dashBoard/dbAdvices/contents.tpl b/gosa-core/plugins/generic/dashBoard/dbAdvices/contents.tpl
deleted file mode 100644 (file)
index 7292647..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{$adviceList}
diff --git a/gosa-core/plugins/generic/dashBoard/dbNotifications/class_dbAdvices.inc b/gosa-core/plugins/generic/dashBoard/dbNotifications/class_dbAdvices.inc
new file mode 100644 (file)
index 0000000..a34c1b7
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+
+class dbNotifications extends plugin
+{
+    function __construct($config)
+    {
+        parent::__construct($config, NULL);
+
+        // Construct the plugin list.
+        $this->adviceList = new sortableListing();
+        $this->adviceList->setDeleteable(false);
+        $this->adviceList->setEditable(false);
+        $this->adviceList->setWidth("100%");
+        $this->adviceList->setHeight("200px");
+        $this->adviceList->setAcl("rwcdm");
+    }
+
+    function execute()
+    {
+        // Get logs as RSS feed.
+        $rsyslog = new rsyslog($this->config);
+        $source = $rsyslog->logToRss(); 
+
+        // Read Feeds and sort the results 
+        $feeds = rssReader::parseFeedFromSource(array($source));
+        $feeds = rssReader::sortFeedResultBy($feeds, 'timestamp');
+
+        // Append the results to the list.
+        $data = $lData = array();
+        foreach($feeds as $key => $feed){
+            $data[$key] = $feed;
+            $lData[$key] = array('data'=> array(htmlentities($feed['title'],ENT_QUOTES,'UTF-8')));
+        }
+        $this->adviceList->setListData($data, $lData);
+        $this->adviceList->update();
+
+        // Generate the HTML content
+        $smarty = get_smarty();
+        $smarty->assign('adviceList', $this->adviceList->render());
+        return($smarty->fetch(get_template_path('dbNotifications/contents.tpl', TRUE)));
+    }
+
+    function save_object()
+    {
+        parent::save_object();
+        $this->adviceList->save_object();
+    }
+}
+
+?>
diff --git a/gosa-core/plugins/generic/dashBoard/dbNotifications/contents.tpl b/gosa-core/plugins/generic/dashBoard/dbNotifications/contents.tpl
new file mode 100644 (file)
index 0000000..7292647
--- /dev/null
@@ -0,0 +1 @@
+{$adviceList}