X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=config%2Findex.php;h=55011e107cdd5f5f6642f2814c4d372eb6b57890;hb=a60bd5060a67ece7ca5192566d0b95c4f0257813;hp=b6d944b20da0ccd600134b39922a0ff5e6406abb;hpb=8f11162800f85e1e9a94b171877c928d2a40f095;p=lhc%2Fweb%2Fwiklou.git diff --git a/config/index.php b/config/index.php index b6d944b20d..55011e107c 100644 --- a/config/index.php +++ b/config/index.php @@ -19,7 +19,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # http://www.gnu.org/copyleft/gpl.html -error_reporting( E_ALL ); +error_reporting( E_ALL | E_STRICT ); header( "Content-type: text/html; charset=utf-8" ); @ini_set( "display_errors", true ); @@ -246,7 +246,7 @@ if( !is_writable( "." ) ) {

To make the directory writable on a Unix/Linux system:

-	cd /path/to/wiki
+	cd " . htmlspecialchars( dirname( dirname( __FILE__ ) ) ) . "
 	chmod a+w config
 	
@@ -328,7 +328,7 @@ foreach (array_keys($ourdb) as $db) { $ourdb[$db]['havedriver'] = 1; } } -error_reporting( E_ALL ); +error_reporting( E_ALL | E_STRICT ); if (!$phpdatabases) { print "Could not find a suitable database driver!