فهرست منبع

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 سال پیش
والد
کامیت
50f3b27eb9
2فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  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 ();