summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25edab1)
raw | patch | inline | side by side (parent: 25edab1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Jun 2010 14:43:25 +0000 (14:43 +0000) | ||
committer | hickert <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 | patch | blob | history | |
gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc | patch | blob | history |
diff --git a/gosa-core/plugins/generic/dashBoard/class_rssReader.inc b/gosa-core/plugins/generic/dashBoard/class_rssReader.inc
index 7707894492b56e337f1127adf62c334eedd8475f..9869d52fdcb7ca7f0b454690958dc9d3e5638ae0 100644 (file)
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{
diff --git a/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc b/gosa-core/plugins/generic/dashBoard/dbAdvices/class_dbAdvices.inc
index 461363fe856fe7fb8eb30ce92da50ee9f5406787..e966805721bfe4f50b8d160ec0f5c686d4b7c7c5 100644 (file)
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));