XPressME Integration Kit

Trac

source: trunk/xpressme_integration_kit/xp-config-sample.php @ 333

Last change on this file since 333 was 331, checked in by toemon, 15 years ago

DB接続情報が取得できない場合の代替え処理実装 fixes#175
モジュールパスにxp-config.phpがある場合、このファイルをrequire_once して値を取得する。

File size: 2.2 KB
Line 
1<? php
2/*
3 *      This file is a sample of xp-config.php.
4 *      Please use xp-config.php when XPressME cannot acquire the data base connection information more automatically than XOOPS.
5 *
6 *  Each definition sets the same value as the one set to mainfile.php of XOOPS.
7 */
8 
9 
10 if ( !defined("XPESS_MAINFILE_INCLUDED") ) {
11    define("XPESS_MAINFILE_INCLUDED",1);
12
13    // XOOPS Physical Path
14    // Physical path to your main XOOPS directory WITHOUT trailing slash
15    // Example: define('XP_XOOPS_ROOT_PATH', '/path/to/xoops/directory');
16    define('XP_XOOPS_ROOT_PATH', '');
17       
18    // XOOPS Trusted Path
19    // This is option. If you need this path, input value. The trusted path
20    // should be a safety directory which web browsers can't access directly.
21    define('XP_XOOPS_TRUST_PATH', '');
22
23    // XOOPS Virtual Path (URL)
24    // Virtual path to your main XOOPS directory WITHOUT trailing slash
25    // Example: define('XP_XOOPS_URL', 'http://url_to_xoops_directory');
26    define('XP_XOOPS_URL', 'http://');
27
28    // Database
29    // Choose the database to be used
30    define('XP_XOOPS_DB_TYPE', 'mysql');
31
32    // Table Prefix
33    // 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'.
34    define('XP_XOOPS_DB_PREFIX', '');
35
36        // SALT
37        // This plays a supplementary role to generate secret code and token.
38    define('XP_XOOPS_SALT', '');
39
40    // Database Hostname
41    // Hostname of the database server. If you are unsure, 'localhost' works in most cases.
42    define('XP_XOOPS_DB_HOST', 'localhost');
43
44    // Database Username
45    // Your database user account on the host
46    define('XP_XOOPS_DB_USER', '');
47
48    // Database Password
49    // Password for your database user account
50    define('XP_XOOPS_DB_PASS', '');
51
52    // Database Name
53    // The name of database on the host. The installer will attempt to create the database if not exist
54    define('XP_XOOPS_DB_NAME', '');
55
56        // Password Salt Key $mainSalt
57        // This salt will be appended to passwords in the icms_encryptPass() function.
58        // Do NOT change this once your site is Live, doing so will invalidate everyones Password.
59        define( 'XP_XOOPS_DB_SALT', '' );
60}
61?>
Note: See TracBrowser for help on using the repository browser.