-
Notifications
You must be signed in to change notification settings - Fork 57
/
index.php
28 lines (26 loc) · 1.04 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
<?php
/**
* CubeCart v6
* ========================================
* CubeCart is a registered trade mark of CubeCart Limited
* Copyright CubeCart Limited 2023. All rights reserved.
* UK Private Limited Company No. 5323904
* ========================================
* Web: https://www.cubecart.com
* Email: [email protected]
* License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html
*/
require dirname(__FILE__).DIRECTORY_SEPARATOR.'ini.inc.php';
define('CC_IN_ADMIN', false);
header('X-Frame-Options: SAMEORIGIN'); // do not allow iframes
global $config_default;
// Include external controllers
$allowed_ec = array('es'); // Only Elastic Search right now
if(isset($_GET['_e']) && in_array($_GET['_e'],$allowed_ec)) {
$ec_path = CC_ROOT_DIR.'/controllers/controller.'.$_GET['_e'].'.inc.php';
if(file_exists($ec_path)) {
require_once($ec_path);
}
}
include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.index.inc.php';
$GLOBALS['gui']->display('templates/'.$global_template_file);