[17] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * XPressME - WordPress for XOOPS
|
---|
| 4 | *
|
---|
| 5 | * @copyright XPressME Project http://www.toemon.com
|
---|
| 6 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license
|
---|
| 7 | * @author toemon
|
---|
| 8 | * @package module::xpress
|
---|
| 9 | */
|
---|
| 10 |
|
---|
| 11 | /*
|
---|
| 12 | * The module loads the XOOPS system only at the time of reading to route index.php.
|
---|
| 13 | *
|
---|
| 14 | * When "Media up-loading" is executed, WordPress calls the SWFUpload script.
|
---|
| 15 | * After completing up-loading
|
---|
| 16 | * The SWFUpload script executes wp-admin/async-upload.php.
|
---|
| 17 | * At this time, session ID is not succeeded to.
|
---|
| 18 | * And, admin/async-upload.php becomes an access inhibit when wordpress is under the management of XOOPS.
|
---|
| 19 | */
|
---|
| 20 |
|
---|
[93] | 21 | require_once dirname( __FILE__ ).'/specfic_on_call_page.php' ;
|
---|
[17] | 22 |
|
---|
| 23 |
|
---|
[91] | 24 | if (is_wp_cron_call() ){
|
---|
| 25 | $_SERVER['HTTP_REFERER'] = 'http://'. $_SERVER[HTTP_HOST] . $_SERVER['PHP_SELF'];
|
---|
| 26 | $_SERVER['REQUEST_METHOD'] = 'POST';
|
---|
| 27 | }
|
---|
| 28 |
|
---|
[62] | 29 | if (is_media_upload_page_call() ){
|
---|
| 30 | if ( !defined("XOOPS_ROOT_PATH") ) {
|
---|
[67] | 31 | //Module process will not load any XOOPS Cube classes.
|
---|
| 32 | define('_LEGACY_PREVENT_EXEC_COMMON_', 1); // for XCL
|
---|
| 33 | $xoopsOption['nocommon'] = 1; // for XOOPS
|
---|
[17] | 34 | include_once dirname( __FILE__ ).'/../../../mainfile.php';
|
---|
| 35 | }
|
---|
[18] | 36 | if (!defined("XOOPS_UPLOAD_PATH"))
|
---|
| 37 | define("XOOPS_UPLOAD_PATH", XOOPS_ROOT_PATH."/uploads");
|
---|
| 38 | if (!defined("XOOPS_UPLOAD_URL"))
|
---|
| 39 | define("XOOPS_UPLOAD_URL", XOOPS_URL."/uploads");
|
---|
[17] | 40 | } else {
|
---|
| 41 | // index page is load xoops
|
---|
| 42 | require dirname( __FILE__ ).'/../../../mainfile.php' ;
|
---|
| 43 | }
|
---|
| 44 | ?>
|
---|