Added the path './' before all required or included files to avoid conflicts with the 'include_path' directive

This commit is contained in:
Loïc Chapeaux
2001-05-20 09:56:22 +00:00
parent 50df8b6678
commit dfa57ed7d8
28 changed files with 105 additions and 93 deletions

View File

@@ -2,9 +2,9 @@
/* $Id$ */
require("grab_globals.inc.php3");
require("./grab_globals.inc.php3");
require("lib.inc.php3");
require("./lib.inc.php3");
if($goto == "sql.php3")
@@ -93,13 +93,13 @@ $result = mysql_db_query($db, $query);
if(!$result) {
$error = mysql_error();
include("header.inc.php3");
include("./header.inc.php3");
mysql_die($error);
} else {
if(file_exists("./$goto")) {
include("header.inc.php3");
include("./header.inc.php3");
$message = $strModifications;
include(preg_replace('/\.\.*/', '.', $goto));
include('./' . preg_replace('/\.\.*/', '.', $goto));
} else {
Header("Location: $goto");
}