From: Reini U. <ru...@us...> - 2004-11-06 16:38:15
|
Update of /cvsroot/phpwiki/phpwiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18846 Modified Files: index.php Log Message: Without the dir check it might fail for index.php via DirectoyIndex Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.144 retrieving revision 1.145 diff -u -2 -b -p -d -r1.144 -r1.145 --- index.php 2 May 2004 15:10:04 -0000 1.144 +++ index.php 6 Nov 2004 16:37:58 -0000 1.145 @@ -52,5 +52,6 @@ IniConfig(dirname(__FILE__)."/config/con // If any page is empty, comment the if ... line out, // to force include "lib/main.php". -if (SCRIPT_FILENAME == __FILE__) +// Without the dir check it might fail for index.php via DirectoyIndex +if (@is_dir(SCRIPT_FILENAME) or SCRIPT_FILENAME == __FILE__) include(dirname(__FILE__)."/lib/main.php"); |