Bläddra i källkod

install.php comme point d'entrée possible

Permet d'appeler install.php directement plutôt que index.php (qui reste
possible).
Alexandre Alapetite 12 år sedan
förälder
incheckning
50f3b27eb9
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. 3 3
      public/index.php
  2. 1 0
      public/install.php

+ 3 - 3
public/index.php

@@ -18,11 +18,11 @@
 #
 # ***** END LICENSE BLOCK *****
 
-require('../constants.php');
-
 if (file_exists ('install.php')) {
-	include ('install.php');
+	require('install.php');
 } else {
+	require('../constants.php');
+
 	session_cache_limiter('');
 	require (LIB_PATH . '/http-conditional.php');
 	$dateLastModification = max(

+ 1 - 0
public/install.php

@@ -1,4 +1,5 @@
 <?php
+require('../constants.php');
 
 session_start ();