summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets/widgets/system_information.widget.php
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-12-30 21:14:37 +0000
committerScott Dale <sdale@pfsense.org>2007-12-30 21:14:37 +0000
commit9d488ea4fab1003178d17e9dd791872fc78b2a49 (patch)
tree18727f28265d877f403d0ea574e3f5118ffc78ff /usr/local/www/widgets/widgets/system_information.widget.php
parent65d4de2e8e1ceced029b0061327b402069554a31 (diff)
downloadpfsense-9d488ea4fab1003178d17e9dd791872fc78b2a49.zip
pfsense-9d488ea4fab1003178d17e9dd791872fc78b2a49.tar.gz
include required files for when widget is being loaded by AJAX calls.
Diffstat (limited to 'usr/local/www/widgets/widgets/system_information.widget.php')
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php
index 8379772..a631444 100644
--- a/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/usr/local/www/widgets/widgets/system_information.widget.php
@@ -30,6 +30,12 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
+
+require_once("guiconfig.inc");
+require_once("pfsense-utils.inc");
+require_once("functions.inc");
+require_once('notices.inc');
+
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -71,7 +77,13 @@
<tr>
<td width="25%" class="vncellt">Uptime</td>
<td width="75%" class="listr"><input style="border: 0px solid white;" size="30" name="uptime" id="uptime" value="<?= htmlspecialchars(get_uptime()); ?>" /></td>
- </tr>
+ </tr>
+ <tr>
+ <td width="25%" class="vncellt"><?=gettext("Current date/time");?></td>
+ <td width="75%" class="listr">
+ <div id="datetime"><?= date("D M j G:i:s T Y"); ?></div>
+ </td>
+ </tr>
<tr>
<td width="30%" class="vncellt">DNS server(s)</td>
<td width="70%" class="listr">
OpenPOWER on IntegriCloud