Initial commit

This commit is contained in:
2021-01-14 18:04:26 +01:00
commit 9b4d5e339b
3786 changed files with 440841 additions and 0 deletions

BIN
web/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

40
web/index.php Normal file
View File

@@ -0,0 +1,40 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
use Thelia\Core\Thelia;
use Thelia\Core\HttpFoundation\Request;
use Thelia\Core\HttpKernel\HttpCache\HttpCache;
use Symfony\Component\Dotenv\Dotenv;
$env = 'prod';
$loader = require __DIR__ . '/../core/vendor/autoload.php';
if (file_exists(THELIA_ROOT.'.env')) {
(new Dotenv())->load(THELIA_ROOT.'.env');
}
$request = Request::createFromGlobals();
$thelia = new Thelia("prod", false);
if (PHP_VERSION_ID < 70000) {
$thelia->loadClassCache();
}
//$thelia = new HttpCache($thelia);
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$response = $thelia->handle($request)->prepare($request)->send();
$thelia->terminate($request, $response);

45
web/index_dev.php Normal file
View File

@@ -0,0 +1,45 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
use Thelia\Core\Thelia;
use Thelia\Core\HttpFoundation\Request;
use Thelia\Core\HttpKernel\HttpCache\HttpCache;
use Symfony\Component\Dotenv\Dotenv;
$env = 'dev';
require __DIR__ . '/../core/vendor/autoload.php';
if (file_exists(THELIA_ROOT.'.env')) {
(new Dotenv())->load(THELIA_ROOT.'.env');
}
// List of allowed IP
$trustedIp = array(
'::1',
'127.0.0.1',
);
$request = Request::createFromGlobals();
if (false === in_array($request->getClientIp(), $trustedIp)) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file.');
}
$thelia = new Thelia("dev", true);
if (PHP_VERSION_ID < 70000) {
$thelia->loadClassCache();
}
$response = $thelia->handle($request)->prepare($request)->send();
$thelia->terminate($request, $response);

11
web/robots.txt Normal file
View File

@@ -0,0 +1,11 @@
# robots.txt for Thelia 2 (E-Commerce solution)
# @url: http://www.yourdomain.com
User-agent: *
Disallow: /admin
Disallow: /cart/
Disallow: /cart$
Disallow: /cart?
Disallow: /404
#Sitemap: http://www.yourdomain.com/sitemap