示例#1
0
	//When notifying by a private message, Notification_reserve_send();
	//it is evaded that the data base becomes read-only as a result of the check on the referrer and the method. 
	$request_method =  (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : '';
	$_SERVER['REQUEST_METHOD'] = 'POST';
	require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php. 
	$_SERVER['REQUEST_METHOD'] = $request_method;
	xpress_set_memory_limmit(); // Set memory limmit.(Limmit Value from XPressMe modele config.)
	unset($offset);		//This Trap is provides the case where $offset is defined on the XOOPS side.
	
	require_once(ABSPATH.'wp-settings.php');
	
	//When it is not possible to connect it correctly at site home URL on the WordPress side, 
	//URL is corrected based on accessed URL. 

	global $xoopsUserIsAdmin;
	if ($xoopsUserIsAdmin) safe_site_url();

	if (!is_object($xoopsUser)){	// before login auth cookie clear
		wp_logout();
	}
	wp();
	//for Event notification update on single post to which link is changed by permalink
	if ( is_404() ) {
		if (!empty($_POST['not_redirect'])) {
			include '../../mainfile.php';
			require_once XOOPS_ROOT_PATH.'/include/notification_update.php';
			exit();
		}
	}
	
	if (!function_exists('is_wordpress_style')){	// When the XPressME plug-in is invalid
示例#2
0
 //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method.
 $request_method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : '';
 $_SERVER['REQUEST_METHOD'] = 'POST';
 require_once $xoops_config->xoops_mainfile_path;
 //It is necessary to execute it for the user attestation before wp-settings.php.
 $_SERVER['REQUEST_METHOD'] = $request_method;
 xpress_set_memory_limmit();
 // Set memory limmit.(Limmit Value from XPressMe modele config.)
 unset($offset);
 //This Trap is provides the case where $offset is defined on the XOOPS side.
 require_once ABSPATH . 'wp-settings.php';
 //When it is not possible to connect it correctly at site home URL on the WordPress side,
 //URL is corrected based on accessed URL.
 global $xoopsUserIsAdmin;
 if ($xoopsUserIsAdmin) {
     safe_site_url();
 }
 if (!is_object($xoopsUser)) {
     // before login auth cookie clear
     wp_logout();
 }
 wp();
 //for Event notification update on single post to which link is changed by permalink
 if (is_404()) {
     if (!empty($_POST['not_redirect'])) {
         include '../../mainfile.php';
         require_once XOOPS_ROOT_PATH . '/include/notification_update.php';
         exit;
     }
 }
 if (!function_exists('is_wordpress_style')) {