-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex.php
39 lines (33 loc) · 1.32 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* This file is part of osCommerce ecommerce platform.
* osCommerce the ecommerce
*
* @link https://www.oscommerce.com
* @copyright Copyright (c) 2000-2022 osCommerce LTD
*
* Released under the GNU General Public License
* For the full copyright and license information, please view the LICENSE.TXT file that was distributed with this source code.
*/
if (file_exists('includes/local/configure.php')) include_once('includes/local/configure.php');
if (!defined('TL_INSTALLED') || TL_INSTALLED != true) {
header('Location: ' . 'install/index.php');
exit;
}
if ($_SERVER['REQUEST_URI'] == $_SERVER['SCRIPT_NAME'] && basename($_SERVER['SCRIPT_NAME']) == 'index.php' ) {
$uri = preg_replace('/index.php$/', '', $_SERVER['REQUEST_URI']);
header('Location: ' . $uri);
exit();
}
require('includes/application_top.php');
if (defined('DEVELOPMENT_MODE')) {
if (DEVELOPMENT_MODE == 'True') {
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
} elseif (DEVELOPMENT_MODE == 'False') {
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');
}
}
require(__DIR__ . '/lib/frontend/web/index.php');
require_once('includes/application_bottom.php');