s/PHP_SELF/SCRIPT_NAME/ - PHP_SELF == "" for some reason with lighty
This commit is contained in:
Scott Ullrich 2006-04-03 21:05:06 +00:00
parent 742ee135b8
commit 555d3758fc
13 changed files with 14 additions and 14 deletions

View File

@ -75,7 +75,7 @@ function get_dns_servers() {
* null
******/
function log_error($error) {
$page = $_SERVER['PHP_SELF'];
$page = $_SERVER['SCRIPT_NAME'];
syslog(LOG_WARNING, "$page: $error");
return;
}

View File

@ -169,7 +169,7 @@ include("head.inc");
</table>
</div>
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
<?php include("fend.inc"); ?>

View File

@ -276,7 +276,7 @@ foreach ($leases as $data) {
<p><strong>No leases file found. Is the DHCP server active?</strong></p>
<?php endif; ?>
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
<?php include("fend.inc"); ?>
</body>

View File

@ -145,7 +145,7 @@ foreach ($sad as $sa): ?>
</table>
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
<?php include("fend.inc"); ?>
</body>

View File

@ -290,6 +290,6 @@ function outputrule(req) {
}
</script>
<?php include("fend.inc"); ?>
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
</body>
</html>

View File

@ -92,6 +92,6 @@ include("head.inc");
</tr>
</table>
<?php include("fend.inc"); ?>
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
</body>
</html>

View File

@ -93,6 +93,6 @@ include("head.inc");
</tr>
</table>
<?php include("fend.inc"); ?>
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
</body>
</html>

View File

@ -86,6 +86,6 @@ include("head.inc");
</tr>
</table>
<?php include("fend.inc"); ?>
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
</body>
</html>

View File

@ -126,7 +126,7 @@ captiveportal_unlock();
</p>
<?php include("fend.inc"); ?>
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
</body>
</html>

View File

@ -381,6 +381,6 @@ is kept disconnected.
<p>
<span class="red"><strong>Note:</strong></span> In/out counters will wrap at 32bit (4 Gigabyte) ! <br/>
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
<?php include("fend.inc"); ?>

View File

@ -111,7 +111,7 @@ if(!isset($config['shaper']['enable'])) {
</form>
<br><a href="status_queues.php?reset=true">Reset</a> queues if they do not load.
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
<?php include("fend.inc"); ?>
</body>
@ -172,7 +172,7 @@ While(!Connection_Aborted()) {
$counter++;
if($counter > 40) {
echo "Redirecting to <a href=\"status_queues.php\">Queue Status</a>.<p>";
echo "<meta http-equiv=\"refresh\" content=\"1;url={$_SERVER['PHP_SELF']}\">";
echo "<meta http-equiv=\"refresh\" content=\"1;url={$_SERVER['SCRIPT_NAME']}\">";
mwexec("/usr/bin/killall pfctl");
mwexec("/usr/bin/killall pfctl");
exit;

View File

@ -237,7 +237,7 @@ SRC=\"rrd/$curif-$interval-$curgraph.png\"><BR><BR>";
</div>
<meta http-equiv="refresh" content="300;url=<?php print $_SERVER['PHP_SELF']; ?>">
<meta http-equiv="refresh" content="300;url=<?php print $_SERVER['SCRIPT_NAME']; ?>">
<?php include("fend.inc"); ?>
</body>

View File

@ -169,6 +169,6 @@ if ($mode == 'bss') {
</table>
<?php include("fend.inc"); ?>
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['PHP_SELF']; ?>?if=<?php echo $if; ?>">
<meta http-equiv="refresh" content="120;url=<?php print $_SERVER['SCRIPT_NAME']; ?>?if=<?php echo $if; ?>">
</body>
</html>