Author: Lars Michelsen <[email protected]>
Date: Tue Sep 6 08:27:17 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Tue Sep 6 08:27:17 2011 +0200
All default gadgets implement the _MODE var now
---
share/userfiles/gadgets/std_bar.php | 6 ++++++
share/userfiles/gadgets/std_html_bar.php | 5 ++++-
share/userfiles/gadgets/std_speedometer.php | 6 ++++++
share/userfiles/gadgets/std_speedometer2.php | 6 ++++++
4 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/share/userfiles/gadgets/std_bar.php
b/share/userfiles/gadgets/std_bar.php
index 8fd56e9..fd59e18 100644
--- a/share/userfiles/gadgets/std_bar.php
+++ b/share/userfiles/gadgets/std_bar.php
@@ -70,6 +70,12 @@
******************************************************************************/
$sDummyPerfdata = 'config=20%;80;90;0;100';
+/**
+ * Needs to be configured to tell gadgets_core.php how to handle the outputs
+ * e.g. in case of error messages. This defaults to 'img'.
+ */
+$_MODE = 'html';
+
// Load gadget core functions
require('./gadgets_core.php');
diff --git a/share/userfiles/gadgets/std_html_bar.php
b/share/userfiles/gadgets/std_html_bar.php
index 6d74d80..9c6baf1 100644
--- a/share/userfiles/gadgets/std_html_bar.php
+++ b/share/userfiles/gadgets/std_html_bar.php
@@ -47,7 +47,10 @@
******************************************************************************/
$sDummyPerfdata = 'config=20%;80;90;0;100';
-// This is needed to tell the gadgets_core to use HTML error messages
+/**
+ * Needs to be configured to tell gadgets_core.php how to handle the outputs
+ * e.g. in case of error messages. This defaults to 'img'.
+ */
$_MODE = 'html';
// Load gadget core functions
diff --git a/share/userfiles/gadgets/std_speedometer.php
b/share/userfiles/gadgets/std_speedometer.php
index c7546c6..2a6908b 100644
--- a/share/userfiles/gadgets/std_speedometer.php
+++ b/share/userfiles/gadgets/std_speedometer.php
@@ -43,6 +43,12 @@
******************************************************************************/
$sDummyPerfdata = 'config=20%;80;90;0;100';
+/**
+ * Needs to be configured to tell gadgets_core.php how to handle the outputs
+ * e.g. in case of error messages. This defaults to 'img'.
+ */
+$_MODE = 'img';
+
// Load gadget core functions
require('./gadgets_core.php');
diff --git a/share/userfiles/gadgets/std_speedometer2.php
b/share/userfiles/gadgets/std_speedometer2.php
index 34b5abd..45f20df 100644
--- a/share/userfiles/gadgets/std_speedometer2.php
+++ b/share/userfiles/gadgets/std_speedometer2.php
@@ -65,6 +65,12 @@
******************************************************************************/
$sDummyPerfdata = 'config=20%;80;90;0;100';
+/**
+ * Needs to be configured to tell gadgets_core.php how to handle the outputs
+ * e.g. in case of error messages. This defaults to 'img'.
+ */
+$_MODE = 'img';
+
// Load gadget core functions
require('./gadgets_core.php');
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins