Last change
on this file since 786 was
786,
checked in by toemon, 14 years ago
|
wpConfigInfoクラスをmofInfoクラスに統合
XE でWP-adminにアクセスした再 bootしないようにする。
|
File size:
1.2 KB
|
Rev | Line | |
---|
[355] | 1 | <?php
|
---|
[733] | 2 | //load XOOPS
|
---|
| 3 | $request_method = (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : '';
|
---|
[734] | 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(
|
---|
[786] | 11 | 'wp-admin',
|
---|
[734] | 12 | 'wp-admin/async-upload.php',
|
---|
| 13 | );
|
---|
| 14 | foreach($nocommon_scripts as $nocommon_script){
|
---|
| 15 | if (strstr($_SERVER['SCRIPT_NAME'],$nocommon_script) !== false) {
|
---|
[786] | 16 | defined('XOOPS_BOOTSTRAP') or define('XOOPS_BOOTSTRAP', false); // For XE
|
---|
| 17 | $xoopsOption['nocommon'] = 1; // For Other
|
---|
[734] | 18 | break;
|
---|
| 19 | }
|
---|
[733] | 20 | }
|
---|
[734] | 21 | }
|
---|
| 22 |
|
---|
[733] | 23 | require_once dirname(dirname(dirname(dirname( __FILE__ )))).'/mainfile.php' ;
|
---|
[750] | 24 |
|
---|
[733] | 25 | $_SERVER['REQUEST_METHOD'] = $request_method; //It returns it to former data.
|
---|
| 26 |
|
---|
[355] | 27 | require_once dirname( __FILE__ ).'/xpress_debug_log.php' ;
|
---|
[755] | 28 | require_once dirname(dirname( __FILE__ )).'/class/modInfo_class.php' ;
|
---|
[757] | 29 | $modInfo = new modInfoClass;
|
---|
[786] | 30 | //require_once dirname(dirname( __FILE__ )).'/class/userInfo_class.php' ;
|
---|
| 31 | //$userInfo = new userInfoClass;
|
---|
| 32 |
|
---|
[355] | 33 | require_once dirname( __FILE__ ).'/set_cash_cookie_path.php' ;
|
---|
[786] | 34 |
|
---|
| 35 |
|
---|
[355] | 36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.