Changeset 733 for branches/Ver3.0/xpressme_integration_kit/include
- Timestamp:
- May 7, 2011, 6:56:51 PM (14 years ago)
- Location:
- branches/Ver3.0/xpressme_integration_kit/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/include/add_xpress_config.php
r551 r733 1 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 2 14 require_once dirname( __FILE__ ).'/xpress_debug_log.php' ; 3 15 require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ; -
branches/Ver3.0/xpressme_integration_kit/include/add_xpress_process.php
r696 r733 121 121 //When notifying by a private message, Notification_reserve_send(); 122 122 //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method. 123 /* 123 124 $request_method = (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : ''; 124 125 $_SERVER['REQUEST_METHOD'] = 'POST'; 125 126 require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 126 127 $_SERVER['REQUEST_METHOD'] = $request_method; 128 */ 127 129 xpress_set_memory_limmit(); // Set memory limmit.(Limmit Value from XPressMe modele config.) 128 130 unset($offset); //This Trap is provides the case where $offset is defined on the XOOPS side. … … 205 207 exit(); // The return to wp-blog-header.php is stolen here 206 208 } 207 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; // for Notification_triggerEvent208 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path; // for Notification_triggerEvent209 //if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; // for Notification_triggerEvent 210 //if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path; // for Notification_triggerEvent 209 211 xpress_set_memory_limmit(); // Set memory limmit.(Limmit Value from XPressMe modele config.) 210 212 require_once(ABSPATH.'wp-settings.php'); -
branches/Ver3.0/xpressme_integration_kit/include/oninstall.php
r617 r733 49 49 50 50 define("WP_INSTALLING", true); 51 define('WP_FIRST_INSTALL', true); // For WPMU2.852 51 53 52 $site_url= XOOPS_URL."/modules/".$mydirname;
Note: See TracChangeset
for help on using the changeset viewer.