XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
mainfile.dist.php
1<?php
13
14if ( !defined('XOOPS_MAINFILE_INCLUDED') ) {
15 define('XOOPS_MAINFILE_INCLUDED', 1);
16
17 // XOOPS Physical Path
18 // Physical path to your main XOOPS directory WITHOUT trailing slash
19 // Example: define('XOOPS_ROOT_PATH', '/path/to/xoops/directory');
20 define('XOOPS_ROOT_PATH', '');
21
22 // XOOPS Trusted Path
23 // This is option. If you need this path, input value. The trusted path
24 // should be a safety directory which web browsers can't access directly.
25 define('XOOPS_TRUST_PATH', '');
26
27 // XOOPS Virtual Path (URL)
28 // Virtual path to your main XOOPS directory WITHOUT trailing slash
29 // Example: define('XOOPS_URL', 'https://url_to_xoops_directory');
30 define('XOOPS_URL', 'https://');
31
32 // Database
33 // Choose the database to be used
34 define('XOOPS_DB_TYPE', 'mysql');
35
36 // Table Prefix
37 // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
38 define('XOOPS_DB_PREFIX', '');
39
40 // SALT
41 // This plays a supplementary role to generate secret code and token.
42 define('XOOPS_SALT', '');
43
44 // Database Hostname
45 // Hostname of the database server. If you are unsure, 'localhost' works in most cases.
46 define('XOOPS_DB_HOST', 'localhost');
47
48 // Database Username
49 // Your database user account on the host
50 define('XOOPS_DB_USER', '');
51
52 // Database Password
53 // Password for your database user account
54 define('XOOPS_DB_PASS', '');
55
56 // Database Name
57 // The name of database on the host. The installer will attempt to create the database if not exist
58 define('XOOPS_DB_NAME', '');
59
60 // Use persistent connection? (Yes=1 No=0)
61 // Default is 'No'. Choose 'No' if you are unsure.
62 define('XOOPS_DB_PCONNECT', 0);
63
64 define('XOOPS_GROUP_ADMIN', '1');
65 define('XOOPS_GROUP_USERS', '2');
66 define('XOOPS_GROUP_ANONYMOUS', '3');
67
68 // You can select two special module process execution modes by defining the following constants
69
70 // define('_LEGACY_PREVENT_LOAD_CORE_', 1);
71 // Module process will not load any XOOPS Cube classes.
72 // You cannot use any XOOPS Cube functions and classes.
73 // (e.g. It'll be used to reference only the MySQL database definition.)
74 //
75 // define('_LEGACY_PREVENT_EXEC_COMMON_', 1);
76 // Module process will load XOOPSCube Root class and initialize Controller class.
77 // You can use some XOOPSCube functions in this mode.
78 // You can use more XOOPSCube functions (eg. xoops_gethandler), if you write
79 // $root=&XCube_Root::getSingleton();
80 // $root->mController->executeCommonSubset();
81 // after including mainfile.php.
82 // It is synonym of $xoopsOption['nocommon']=1;
83 // But $xoopsOption['nocommon'] is deprecated.
84 //
85 // Composer /vendor/autoload
86 if (file_exists( XOOPS_TRUST_PATH.'/vendor/autoload.php')) {
87 require_once XOOPS_TRUST_PATH.'/vendor/autoload.php';
88 }
89 if (!defined('_LEGACY_PREVENT_LOAD_CORE_') && XOOPS_ROOT_PATH != '') {
90 include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;
91 include_once XOOPS_ROOT_PATH.'/include/cubecore_init.php';
92 if (!isset($xoopsOption['nocommon']) && !defined('_LEGACY_PREVENT_EXEC_COMMON_')) {
93 include XOOPS_ROOT_PATH.'/include/common.php';
94 }
95 include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;
96 }
97}
98