Code

Updated dashBoard
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jun 2010 14:43:25 +0000 (14:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Jun 2010 14:43:25 +0000 (14:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18888 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/dashBoard/class_rssReader.inc
gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc

index 7707894492b56e337f1127adf62c334eedd8475f..9869d52fdcb7ca7f0b454690958dc9d3e5638ae0 100644 (file)
@@ -29,7 +29,7 @@ class rssReader{
         if(!is_array($sources)) $urls = array($sources);
         foreach($sources as $source){
             $doc = new DOMDocument();
-            $res = $doc->loadHTML($source);
+            $res = $doc->loadXML($source);
             if(!$res){
                 trigger_error("Failed to load feed '{$source}'!");
             }else{
index 461363fe856fe7fb8eb30ce92da50ee9f5406787..e966805721bfe4f50b8d160ec0f5c686d4b7c7c5 100644 (file)
@@ -18,7 +18,8 @@ class dbAdvices extends plugin
     function execute()
     {
         // Get logs as RSS feed.
-        $source = file_get_contents('http://10.3.65.162/gosa/gosa-all/gosa/html/index.html');
+        $rsyslog = new rsyslog($this->config);
+        $source = $rsyslog->logToRss(); 
 
         // Read Feeds and sort the results 
         $feeds = rssReader::parseFeedFromSource(array($source));