summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-07-15 22:04:00 +0000
committerColin Smith <colin@pfsense.org>2005-07-15 22:04:00 +0000
commit9e0b3dce2d8958df09e7f3f0fdbdfdabf4cfcf6e (patch)
tree267f10b2781ae2defc231b179245dca07eaba70d /etc
parentd906426767ab951ef1b760046aab433cbc048137 (diff)
downloadpfsense-9e0b3dce2d8958df09e7f3f0fdbdfdabf4cfcf6e.zip
pfsense-9e0b3dce2d8958df09e7f3f0fdbdfdabf4cfcf6e.tar.gz
Modify get_notices() to work with XMLRPC. This isn't ideal.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/notices.inc16
1 files changed, 3 insertions, 13 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc
index 07634ea..60789ce 100644
--- a/etc/inc/notices.inc
+++ b/etc/inc/notices.inc
@@ -63,9 +63,8 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority =
}
function get_notices($category = "all") {
- global $notice_path;
- if(file_exists($notice_path)) {
- $queue = unserialize(file_get_contents($notice_path));
+ if(file_exists('/tmp/notices')) {
+ $queue = unserialize(file_get_contents('/tmp/notices'));
if(!$queue) return false;
if($category != 'all') {
foreach($queue as $time => $notice) {
@@ -157,13 +156,4 @@ function print_notice_box($category = "all") {
print_info_box_np(print_notices($notices, $category));
return;
}
-
-function are_notices_pending($category = "all") {
- global $notice_path;
- if(file_exists($notice_path)) {
- return true;
- }
- return false;
-}
-
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud