summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorMatthew Grooms <mgrooms@pfsense.org>2008-09-03 20:33:06 +0000
committerMatthew Grooms <mgrooms@pfsense.org>2008-09-03 20:33:06 +0000
commitd97ab688619c0c7f9a831ffc7e39fc5d8f6f5be3 (patch)
tree20e1cb7fcc9d9e0652b0b3b2018fae67c8355305 /usr/local
parenta0d4c5da2928e852bf65a37be4c235c3694035f3 (diff)
downloadpfsense-d97ab688619c0c7f9a831ffc7e39fc5d8f6f5be3.zip
pfsense-d97ab688619c0c7f9a831ffc7e39fc5d8f6f5be3.tar.gz
Cleanup some of the authentication code. Fix the problem where you must
navigate away from the initial page twice to get somewhere. Remove some of the cruft that was no longer used. Don't unconditionally redirect a user to their homepage if another url was specified pre-login. This will allow admins to create bookmarks to specific pfsense webui pages.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/headjs.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/usr/local/www/headjs.php b/usr/local/www/headjs.php
index 59af195..2042429 100644
--- a/usr/local/www/headjs.php
+++ b/usr/local/www/headjs.php
@@ -80,34 +80,6 @@ function getHeadJS() {
$('cancelbutton').style.visibility = 'hidden';
$('loading').style.visibility = 'visible';
// submit the form using Ajax
- ";
-
-
- isset($HTTP_SERVER_VARS['AUTH_USER']) ? $scriptName = split("/", $_SERVER["SCRIPT_FILENAME"]) : $scriptName = split("/", "/index.php");
- isset($HTTP_SERVER_VARS['AUTH_USER']) ? $loggedin = "var isLoggedIn = true;" : $loggedin = "var isLoggedIn = false;";
- $scriptElms = count($scriptName);
- $scriptName = $scriptName[$scriptElms-1];
- $realScriptName = str_replace("/", "", $_SERVER["SCRIPT_NAME"]);
-
- $headjs .= "
- {$loggedin}
-
- if (! isLoggedIn) {
- var newInput = document.createElement('input');
- newInput.setAttribute('id', 'scriptname');
- newInput.setAttribute('name', 'scriptname');
- newInput.setAttribute('value', '{$realScriptName}');
- newInput.setAttribute('type', 'hidden');
-
- $('iform').appendChild(newInput);
- }
-
- new Ajax.Request('{$scriptName}', {
- method : 'post',
- parameters : Form.serialize($('iform')),
- onSuccess : formSubmitted,
- onFailure : formFailure
- });
}
function formSubmitted(resp) {
OpenPOWER on IntegriCloud