Ejemplo n.º 1
0
Archivo: index.php Proyecto: acp3/setup
<?php

/**
 * Installer
 *
 * @author Tino Goratsch
 */
define('ACP3_ROOT_DIR', realpath(__DIR__ . '/../') . '/');
require '../vendor/autoload.php';
$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$kernel = new \ACP3\Installer\Core\Application\Bootstrap(\ACP3\Core\Environment\ApplicationMode::INSTALLER);
$kernel->handle($request)->send();
Ejemplo n.º 2
0
<?php

/**
 * UPDATER
 *
 * @author Tino Goratsch
 */
define('ACP3_ROOT_DIR', realpath(__DIR__ . '/../') . '/');
require '../vendor/autoload.php';
$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$kernel = new \ACP3\Installer\Core\Application\Bootstrap(\ACP3\Core\Environment\ApplicationMode::UPDATER);
if (!$kernel->startupChecks()) {
    echo <<<HTML
The ACP3 is not correctly installed.
Please navigate to the <a href="{$request->getBasePath()}/">installation wizard</a>
and follow its instructions.
HTML;
    exit;
}
$kernel->handle($request)->send();