Added local rss file + tidied up locations of notifications and callback

This commit is contained in:
laf
2016-01-19 21:50:00 +00:00
parent 4ab1075589
commit a45259377b
5 changed files with 21 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ if ($options['f'] === 'perf_times') {
}
if ($options['f'] === 'callback') {
include_once 'callback.php';
include_once 'includes/callback.php';
}
if ($options['f'] === 'device_perf') {
@@ -113,7 +113,7 @@ if ($options['f'] === 'device_perf') {
}
if ($options['f'] === 'notifications') {
include_once 'notifications.php';
include_once 'includes/notifications.php';
}
if ($options['f'] === 'purgeusers') {

View File

View File

@@ -847,6 +847,7 @@ $config['availability-map-width'] = 25;
// Default notifications Feed
$config['notifications']['LibreNMS'] = 'http://www.librenms.org/notifications.rss';
$config['notifications']['local'] = 'misc/notifications.rss';
// Update channel (Can be 'master' or 'release')
$config['update_channel'] = 'master';

View File

@@ -22,8 +22,8 @@
* @subpackage Notifications
*/
require_once 'includes/defaults.inc.php';
require_once 'config.php';
require_once $config['install_dir'].'/includes/defaults.inc.php';
require_once $config['install_dir'].'/config.php';
require_once $config['install_dir'].'/includes/definitions.inc.php';
require_once $config['install_dir'].'/includes/functions.php';

16
misc/notifications.rss Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>LibreNMS Notifications</title>
<description>RSS feed for notifications to LibreNMS users</description>
<link>http://www.librenms.org/</link>
<lastBuildDate>Tue, 19 Jan 2016 12:00:00 +0000</lastBuildDate>
<pubDate>Tue, 19 Jan 2016 12:00:00 +0000</pubDate>
<ttl>1800</ttl>
<item>
<title>Hello World!</title>
<description>This is the first notification. We will post these whenever an upcoming major change is about to happen.</description>
<pubDate>Tue, 19 Jan 2016 12:00:00 +0000</pubDate>
</item>
</channel>
</rss>