mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
Add Redirect to install.php
This commit is contained in:
parent
32871f9a4a
commit
df60b62778
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false
|
|||
Request::setTrustedHosts([$trustedHosts]);
|
||||
}
|
||||
|
||||
if (!file_exists('legacy/config.php') && !file_exists('.installed_checked')){
|
||||
header('Location: install.php');
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the autoloader class
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue