XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
cubecore_init.php
1<?php
12
13if (!defined('XOOPS_MAINFILE_INCLUDED')) {
14 exit();
15}
16if (!defined('XOOPS_TRUST_PATH')) {
17 echo '_TRUST_PATH is required in mainfile.php';
18 exit();
19}
20
24define('XOOPS_CUBE_LEGACY', true);
25
30define('LEGACY_BASE_VERSION', '2.5.0.0'); // ! XOOPSCube version
31
32require_once XOOPS_ROOT_PATH . '/core/XCube_Root.class.php';
33require_once XOOPS_ROOT_PATH . '/core/XCube_Controller.class.php';
34require_once XOOPS_ROOT_PATH . '/core/libs/IniHandler.class.php';
35
36//
37// IniHandler - default site, custom and distribution settings
38// The settings provided are various configuration files used in an XOOPSCube-based platform
39// TODO We have to move the following lines to an appropriate place.
40// (We may not need the following constants here)
41//
42
43define('XCUBE_SITE_SETTING_FILE', XOOPS_TRUST_PATH . '/settings/site_default.ini');
44define('XCUBE_SITE_CUSTOM_FILE', XOOPS_TRUST_PATH . '/settings/site_custom.ini');
45define('XCUBE_SITE_CUSTOM_FILE_SALT', XOOPS_TRUST_PATH . '/settings/site_custom_' . XOOPS_SALT . '.ini');
46define('XCUBE_SITE_DIST_FILE', XOOPS_TRUST_PATH . '/settings/site_default.dist.ini'); // for CorePack
47
48//
49//@todo Documentation How does the system decide the main controller?
50//
51$root=&XCube_Root::getSingleton();
52//$root->loadSiteConfig(XCUBE_SITE_SETTING_FILE, XCUBE_SITE_CUSTOM_FILE, XCUBE_SITE_CUSTOM_FILE_SALT);
53$root->loadSiteConfig(XCUBE_SITE_SETTING_FILE, XCUBE_SITE_DIST_FILE, XCUBE_SITE_CUSTOM_FILE, XCUBE_SITE_CUSTOM_FILE_SALT); // edit by CorePack
54$root->setupController();