| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | $request_method = (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : '';
|
|---|
| 3 | //$_SERVER['REQUEST_METHOD'] = 'POST' is
|
|---|
| 4 | //When notifying by a private message, Notification_reserve_send();
|
|---|
| 5 | //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method.
|
|---|
| 6 | $_SERVER['REQUEST_METHOD'] = 'POST';
|
|---|
| 7 |
|
|---|
| 8 | if ( defined('WP_ADMIN') ) {
|
|---|
| 9 | $nocommon_scripts = array(
|
|---|
| 10 | 'wp-admin/async-upload.php',
|
|---|
| 11 | );
|
|---|
| 12 | foreach($nocommon_scripts as $nocommon_script){
|
|---|
| 13 | if (strstr($_SERVER['SCRIPT_NAME'],$nocommon_script) !== false) {
|
|---|
| 14 | $xoopsOption['nocommon'] = 1;
|
|---|
| 15 | break;
|
|---|
| 16 | }
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | require_once dirname(dirname(dirname(dirname( __FILE__ )))).'/mainfile.php' ;
|
|---|
| 21 |
|
|---|
| 22 | $_SERVER['REQUEST_METHOD'] = $request_method; //It returns it to former data.
|
|---|
| 23 |
|
|---|
| 24 | require_once dirname( __FILE__ ).'/xpress_debug_log.php' ;
|
|---|
| 25 | require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ;
|
|---|
| 26 | $xoops_config = new ConfigFromXoops;
|
|---|
| 27 | require_once dirname( __FILE__ ).'/set_cash_cookie_path.php' ;
|
|---|
| 28 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.