summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorBill Marquette <bill.marquette@gmail.com>2009-03-14 01:25:46 -0500
committerBill Marquette <bill.marquette@gmail.com>2009-03-14 01:26:52 -0500
commit01da41cf8a21a07734e25a5bce4c2d35f81a0134 (patch)
tree3500d038d20cbf08e1d6dc3102304cf5f5df1f1b /usr/local/www/index.php
parent9050b9f970dc6531c749be488f57f7c14a89b77a (diff)
downloadpfsense-01da41cf8a21a07734e25a5bce4c2d35f81a0134.zip
pfsense-01da41cf8a21a07734e25a5bce4c2d35f81a0134.tar.gz
Sajax is no more, long live Prototype
This eliminates one AJAX library, but not all "non-Prototype" AJAX code
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php106
1 files changed, 42 insertions, 64 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 198211b..ac2dc68 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -59,20 +59,6 @@
## Load Functions Files
require_once('includes/functions.inc.php');
-
- ## Load AJAX, Initiate Class ###############################################
- require_once('includes/sajax.class.php');
-
- ## Initiate Class and Set location of ajax file containing
- ## the information that we need for this page. Also set functions
- ## that SAJAX will be using.
- $oSajax = new sajax();
- $oSajax->sajax_remote_uri = 'sajax/index.sajax.php';
- $oSajax->sajax_request_type = 'POST';
- $oSajax->sajax_export("get_stats");
- $oSajax->sajax_handle_client_request();
- ############################################################################
-
## Check to see if we have a swap space,
## if true, display, if false, hide it ...
@@ -551,69 +537,61 @@ echo $jscriptstr;
}
if ($config['widgets'] && $pconfig['sequence'] != ""){
- if ($displayarray[$widgetcounter] == "show"){
- $divdisplay = "block";
- $display = "block";
- $inputdisplay = "show";
- $showWidget = "none";
- $mindiv = "inline";
- }
- else if ($displayarray[$widgetcounter] == "hide") {
- $divdisplay = "block";
- $display = "none";
- $inputdisplay = "hide";
- $showWidget = "inline";
- $mindiv = "none";
- }
- else if ($displayarray[$widgetcounter] == "close"){
- $divdisplay = "none";
- $display = "block";
- $inputdisplay = "close";
- $showWidget = "none";
- $mindiv = "inline";
- }
- else{
- $divdisplay = "none";
- $display = "block";
- $inputdisplay = "none";
- $showWidget = "none";
- $mindiv = "inline";
- }
- }
- else
- {
- if ($firstprint == false){
- $divdisplay = "block";
- $display = "block";
- $inputdisplay = "show";
- $showWidget = "none";
- $mindiv = "inline";
- $firstprint = true;
- }
- else
- {
- if ($widget == "interfaces.widget.php")
- {
+ switch($displayarray[$widgetcounter]){
+ case "show":
$divdisplay = "block";
$display = "block";
$inputdisplay = "show";
$showWidget = "none";
$mindiv = "inline";
- }
- else if ($widget == "traffic_graphs.widget.php")
- {
+ break;
+ case "hide":
$divdisplay = "block";
+ $display = "none";
+ $inputdisplay = "hide";
+ $showWidget = "inline";
+ $mindiv = "none";
+ berak;
+ case "close":
+ $divdisplay = "none";
$display = "block";
- $inputdisplay = "show";
+ $inputdisplay = "close";
$showWidget = "none";
$mindiv = "inline";
- }
- else {
+ break;
+ default:
$divdisplay = "none";
$display = "block";
- $inputdisplay = "close";
+ $inputdisplay = "none";
$showWidget = "none";
$mindiv = "inline";
+ break;
+ }
+ } else {
+ if ($firstprint == false){
+ $divdisplay = "block";
+ $display = "block";
+ $inputdisplay = "show";
+ $showWidget = "none";
+ $mindiv = "inline";
+ $firstprint = true;
+ } else {
+ switch ($widget) {
+ case "interfaces.widget.php":
+ case "traffic_graphs.widget.php":
+ $divdisplay = "block";
+ $display = "block";
+ $inputdisplay = "show";
+ $showWidget = "none";
+ $mindiv = "inline";
+ break;
+ default:
+ $divdisplay = "none";
+ $display = "block";
+ $inputdisplay = "close";
+ $showWidget = "none";
+ $mindiv = "inline";
+ break;
}
}
}
OpenPOWER on IntegriCloud