summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 257c862)
raw | patch | inline | side by side (parent: 257c862)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Jun 2010 15:02:46 +0000 (15:02 +0000) | ||
committer | hickert <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] | patch | blob | history |
gosa-core/plugins/generic/dashBoard/dbAdvices/contents.tpl | [deleted file] | patch | blob | history |
gosa-core/plugins/generic/dashBoard/dbNotifications/class_dbAdvices.inc | [new file with mode: 0644] | patch | blob |
gosa-core/plugins/generic/dashBoard/dbNotifications/contents.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc b/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc
+++ /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
+++ /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
--- /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
--- /dev/null
@@ -0,0 +1 @@
+{$adviceList}