summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-05-07 02:48:52 +0000
committerScott Dale <sdale@pfsense.org>2007-05-07 02:48:52 +0000
commitf69aa687d120e863676c6e3e79147b8d8478c58d (patch)
tree0aef66d339bbea0976fb9dda48ad97688db74cf3 /usr/local/www/index.php
parent1db766dfbeaee353cbafbce8926d359454994415 (diff)
downloadpfsense-f69aa687d120e863676c6e3e79147b8d8478c58d.zip
pfsense-f69aa687d120e863676c6e3e79147b8d8478c58d.tar.gz
Widget base. Note: changes to widgets are not saved yet.
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 59809c2..1bbeb0f 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -139,11 +139,11 @@ else
while (false !== ($filename = readdir($dirhandle))) {
$periodpos = strpos($filename, ".");
$widgetname = substr($filename, 0, $periodpos);
- if ($widgetname != "system information")
+ if ($widgetname != "system_information")
$widgetfiles[] = $filename;
}
sort($widgetfiles);
- array_unshift($widgetfiles, "system information.widget.php");
+ array_unshift($widgetfiles, "system_information.widget.php");
}
@@ -274,7 +274,7 @@ echo $jscriptstr;
$periodpos = strpos($widget, ".");
$widgetname = substr($widget, 0, $periodpos);
$nicename = $widgetname;
- $widgetname = str_replace(" ", "", $widgetname);
+ $nicename = str_replace("_", " ", $nicename);
//make the title look nice
$nicename = ucwords($nicename);?>
<span style="cursor: pointer;" onclick='return showDiv("<?php echo $widgetname; ?>div",false)'><u><?php echo $nicename; ?></u></span><br><?php
@@ -288,9 +288,6 @@ echo $jscriptstr;
<p class="pgtitle">System Overview&nbsp;&nbsp;&nbsp;
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" alt="Click here to add widgets" style="cursor: help;" onmouseup="domTT_activate(this, event, 'content', document.getElementById('content1'), 'type', 'velcro', 'delay', 0, 'fade', 'both', 'fadeMax', 100, 'styleClass', 'niceTitle');" />
-
-
-
<div style="clear:both;"></div>
<div id="submitpref" align="center" style="display:none;width:17%;margin:5px;padding: 5px;background:#CCCCCC">
@@ -324,7 +321,7 @@ echo $jscriptstr;
$periodpos = strpos($widget, ".");
$widgetname = substr($widget, 0, $periodpos);
$nicename = $widgetname;
- $widgetname = str_replace(" ", "", $widgetname);
+ $nicename = str_replace("_", " ", $nicename);
//make the title look nice
$nicename = ucwords($nicename);
OpenPOWER on IntegriCloud