|
From: Benjamin C. <bc...@us...> - 2002-03-13 18:08:17
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19963
Modified Files:
include.php
Log Message:
Kill runtime quotes and tweak the login form destination
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -r1.96 -r1.97
--- include.php 11 Mar 2002 18:22:17 -0000 1.96
+++ include.php 13 Mar 2002 17:44:02 -0000 1.97
@@ -22,6 +22,8 @@
// ------------------------------------------------------------------------
// $Id$
+ini_set("magic_quotes_runtime", 0);
+
// Where are we?
define ('INSTALL_PATH', dirname(__FILE__));
@@ -121,7 +123,8 @@
include INSTALL_PATH.'/languages/'.LANGUAGE.'.php';
$me = $HTTP_SERVER_VARS['PHP_SELF'];
-$me2 = $HTTP_SERVER_VARS['REQUEST_URI'];
+$me2 = !empty($HTTP_SERVER_VARS['REQUEST_URI']) ? $HTTP_SERVER_VARS['REQUEST_URI'] :
+ $HTTP_SERVER_VARS['SCRIPT_NAME'].'?'.$HTTP_SERVER_VARS['QUERY_STRING'];
$selrange = 30;
$now = time();
$_gv =& $HTTP_GET_VARS;
|