|
Last change
on this file since 756 was
755,
checked in by toemon, 14 years ago
|
|
modInfoクラスのテスト準備、config_from_xoopsクラスの代替
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | //load XOOPS
|
|---|
| 3 | $request_method = (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : '';
|
|---|
| 4 | //$_SERVER['REQUEST_METHOD'] = 'POST' is
|
|---|
| 5 | //When notifying by a private message, Notification_reserve_send();
|
|---|
| 6 | //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method.
|
|---|
| 7 | $_SERVER['REQUEST_METHOD'] = 'POST';
|
|---|
| 8 |
|
|---|
| 9 | if ( defined('WP_ADMIN') ) {
|
|---|
| 10 | $nocommon_scripts = array(
|
|---|
| 11 | 'wp-admin/async-upload.php',
|
|---|
| 12 | );
|
|---|
| 13 | foreach($nocommon_scripts as $nocommon_script){
|
|---|
| 14 | if (strstr($_SERVER['SCRIPT_NAME'],$nocommon_script) !== false) {
|
|---|
| 15 | $xoopsOption['nocommon'] = 1;
|
|---|
| 16 | break;
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | require_once dirname(dirname(dirname(dirname( __FILE__ )))).'/mainfile.php' ;
|
|---|
| 22 | require_once dirname( __FILE__ ).'/xoops3_define.php' ;
|
|---|
| 23 | get_xoops3_define();
|
|---|
| 24 |
|
|---|
| 25 | $_SERVER['REQUEST_METHOD'] = $request_method; //It returns it to former data.
|
|---|
| 26 |
|
|---|
| 27 | require_once dirname( __FILE__ ).'/xpress_debug_log.php' ;
|
|---|
| 28 | require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ;
|
|---|
| 29 | $xoops_config = new ConfigFromXoops;
|
|---|
| 30 | // TEST modInfo_class
|
|---|
| 31 | require_once dirname(dirname( __FILE__ )).'/class/modInfo_class.php' ;
|
|---|
| 32 | $mod_info = new modInfo;
|
|---|
| 33 | require_once dirname( __FILE__ ).'/set_cash_cookie_path.php' ;
|
|---|
| 34 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.