diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-02 04:33:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-02 04:33:21 +0000 |
commit | 0ab7198a11b1fffab2d53647e3528e0cbf81f0f8 (patch) | |
tree | c243f58a957a4569946a27438709c7ee7495cae4 /usr/local | |
parent | e1f77867e6877ccf15b2d2a117104bfe01b2b102 (diff) | |
download | pfsense-0ab7198a11b1fffab2d53647e3528e0cbf81f0f8.zip pfsense-0ab7198a11b1fffab2d53647e3528e0cbf81f0f8.tar.gz |
Strip / out.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/headjs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/headjs.php b/usr/local/www/headjs.php index 8e126b0..7cfef42 100644 --- a/usr/local/www/headjs.php +++ b/usr/local/www/headjs.php @@ -55,8 +55,8 @@ function getHeadJS() { isset($HTTP_SERVER_VARS['AUTH_USER']) ? $loggedin = "var isLoggedIn = true;" : $loggedin = "var isLoggedIn = false;"; $scriptElms = count($scriptName); $scriptName = $scriptName[$scriptElms-1]; - $realScriptName = $_SERVER["SCRIPT_NAME"]; - + $realScriptName = str_replace("/", "", $_SERVER["SCRIPT_NAME"]); + $headjs .= " {$loggedin} @@ -64,7 +64,7 @@ function getHeadJS() { var newInput = document.createElement('input'); newInput.setAttribute('id', 'scriptname'); newInput.setAttribute('name', 'scriptname'); - newInput.setAttribute('value', '$realScriptName'); + newInput.setAttribute('value', '{$realScriptName}'); newInput.setAttribute('type', 'hidden'); $('iform').appendChild(newInput); |