|
Last change
on this file since 733 was
733,
checked in by toemon, 14 years ago
|
|
XOOPS mainfile.phpからDB接続情報を取得する方法の変更
|
|
File size:
860 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | //load XOOPS
|
|---|
| 3 | $request_method = (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : '';
|
|---|
| 4 | $_SERVER['REQUEST_METHOD'] = 'POST'; // The xoops data base is opened in the mode that can be written.
|
|---|
| 5 | if ( defined('WP_ADMIN') )
|
|---|
| 6 | $php_script_name = $_SERVER['SCRIPT_NAME'];
|
|---|
| 7 | if (strstr($php_script_name,'wp-admin/async-upload.php') !== false) {
|
|---|
| 8 |
|
|---|
| 9 | $xoopsOption['nocommon'] = 1; // The WP file uploading must work normally.
|
|---|
| 10 | }
|
|---|
| 11 | require_once dirname(dirname(dirname(dirname( __FILE__ )))).'/mainfile.php' ;
|
|---|
| 12 | $_SERVER['REQUEST_METHOD'] = $request_method; //It returns it to former data.
|
|---|
| 13 |
|
|---|
| 14 | require_once dirname( __FILE__ ).'/xpress_debug_log.php' ;
|
|---|
| 15 | require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ;
|
|---|
| 16 | $xoops_config = new ConfigFromXoops;
|
|---|
| 17 | require_once dirname( __FILE__ ).'/set_cash_cookie_path.php' ;
|
|---|
| 18 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.