<?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/
// Check the minimum required php version
if (version_compare(PHP_VERSION, '5.6.4', '<')) {
header('Content-type: text/html; charset=utf-8', true, 503);
echo '<h2>Error</h2>';
echo 'Your server is running PHP version ' . PHP_VERSION . ' but Shopware 5 requires at least PHP 5.6.4';
echo '<h2>Fehler</h2>';
echo 'Auf Ihrem Server läuft PHP version ' . PHP_VERSION . ', Shopware 5 benötigt mindestens PHP 5.6.4';
return;
}
// Check for active auto update or manual update
if (is_file('files/update/update.json') || is_dir('update-assets')) {
header('Content-type: text/html; charset=utf-8', true, 503);
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 1200');
echo file_get_contents(__DIR__ . '/recovery/update/maintenance.html');
return;
}
// Check for installation
if (is_dir('recovery/install') && !is_file('recovery/install/data/install.lock')) {
if (PHP_SAPI == 'cli') {
echo 'Shopware 5 must be configured before use. Please run the Shopware installer by executing \'php recovery/install/index.php\'.'.PHP_EOL;
} else {
$basePath = 'recovery/install';
$baseURL = str_replace(basename(__FILE__), '', $_SERVER['SCRIPT_NAME']);
$baseURL = rtrim($baseURL, '/');
$installerURL = $baseURL.'/'.$basePath;
if (strpos($_SERVER['REQUEST_URI'], $basePath) === false) {
header('Location: '.$installerURL);
exit;
}
header('Content-type: text/html; charset=utf-8', true, 503);
echo '<h2>Error</h2>';
echo 'Shopware 5 must be configured before use. Please run the <a href="recovery/install/?language=en">installer</a>.';
echo '<h2>Fehler</h2>';
echo 'Shopware 5 muss zunächst konfiguriert werden. Bitte führen Sie den <a href="recovery/install/?language=de">Installer</a> aus.';
}
exit;
}
// check for composer autoloader
if (!file_exists('vendor/autoload.php')) {
header('Content-type: text/html; charset=utf-8', true, 503);
echo '<h2>Error</h2>';
echo 'Please execute "composer install" from the command line to install the required dependencies for Shopware 5';
echo '<h2>Fehler</h2>';
echo 'Bitte führen Sie zuerst "composer install" aus.';
return;
}
require __DIR__ . '/autoload.php';
use Shopware\Kernel;
use Shopware\Components\HttpCache\AppCache;
use Symfony\Component\HttpFoundation\Request;
$environment = getenv('SHOPWARE_ENV') ?: getenv('REDIRECT_SHOPWARE_ENV') ?: 'production';
$kernel = new Kernel($environment, $environment !== 'production');
if ($kernel->isHttpCacheEnabled()) {
$kernel = new AppCache($kernel, $kernel->getHttpCacheConfig());
}
$request = Request::createFromGlobals();
$kernel->handle($request)
->send();
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| bin/ | 2025-01-28 22:35 | 1.5 KB | 76129f60960:kunden | dxwrx-rx-r | |
| custom/ | 2016-11-07 15:58 | 0 B | 76129f60960:kunden | dxwrx-rx-r | |
| engine/ | 2016-11-07 15:58 | 71.44 MB | 76129f60960:kunden | dxwrx-rx-r | |
| files/ | 2016-11-07 16:07 | 8.79 MB | 76129f60960:kunden | dxwrx-rx-r | |
| media/ | 2025-01-28 22:35 | 160.74 MB | 76129f60960:kunden | dxwrx-rx-r | |
| recovery/ | 2016-11-07 15:48 | 4.71 MB | 76129f60960:kunden | dxwrx-rx-r | |
| themes/ | 2016-11-07 15:49 | 16.05 MB | 76129f60960:kunden | dxwrx-rx-r | |
| var/ | 2016-11-07 15:53 | 12.16 MB | 76129f60960:kunden | dxwrx-rx-r | |
| vendor/ | 2025-01-28 22:35 | 19.7 MB | 76129f60960:kunden | dxwrx-rx-r | |
| web/ | 2016-11-07 15:58 | 6.88 MB | 76129f60960:kunden | dxwrx-rx-r | |
| .htaccess | 2025-01-28 22:35 | 3.31 KB | 76129f60960:kunden | -xw-x----- | |
| .htaccess-passwortschutz | 2016-11-07 15:38 | 173 B | 76129f60960:kunden | -xw-x----- | |
| CONTRIBUTING.md | 2016-11-07 15:40 | 3.32 KB | 76129f60960:kunden | -xw-x----- | |
| README.md | 2016-11-07 15:40 | 4.67 KB | 76129f60960:kunden | -xw-x----- | |
| UPGRADE.md | 2016-11-07 15:40 | 99.1 KB | 76129f60960:kunden | -xw-x----- | |
| autoload.php | 2016-11-07 15:40 | 1.17 KB | 76129f60960:kunden | -xw-x----- | |
| composer.json | 2016-11-07 15:40 | 3.17 KB | 76129f60960:kunden | -xw-x----- | |
| composer.lock | 2016-11-07 15:40 | 168.42 KB | 76129f60960:kunden | -xw-x----- | |
| config.php | 2018-03-16 13:06 | 504 B | 76129f60960:kunden | -xw-x----- | |
| eula.txt | 2016-11-07 15:40 | 47.35 KB | 76129f60960:kunden | -xw-x----- | |
| eula_en.txt | 2016-11-07 15:40 | 46.88 KB | 76129f60960:kunden | -xw-x----- | |
| license.txt | 2016-11-07 15:40 | 34.08 KB | 76129f60960:kunden | -xw-x----- | |
| shopware.php | 2016-11-07 15:40 | 3.64 KB | 76129f60960:kunden | -xw-x----- | |
| sw-domain-hash.html | 2016-11-07 17:59 | 32 B | 76129f60960:kunden | -xw-x----- | |