mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
install: create symbolic link first
This commit is contained in:
@@ -3,8 +3,12 @@ if(!defined('IN_TRACKER')) {
|
||||
die('Hacking attempt!');
|
||||
}
|
||||
if (!file_exists($rootpath . '.env')) {
|
||||
header('Location: ' . getBaseUrl() . 'install/install.php');
|
||||
exit(0);
|
||||
$installScriptRelativePath = 'install/install.php';
|
||||
$installScriptFile = $rootpath . "public/$installScriptRelativePath";
|
||||
if (file_exists($installScriptFile)) {
|
||||
header('Location: ' . getBaseUrl() . $installScriptRelativePath);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
Reference in New Issue
Block a user