Exemplo n.º 1
0
		|| is_iphone_with_wptouch()	// When iPhone access & used wptouch plugin (thx uemu)
	){

			echo $wp_output;
	} else {
			require_once( dirname( __FILE__ ).'/xpress_render.php' );
			xpress_render($wp_output);
	}

	//When there is no block cache, and an optional block is different, cache is refreshed. 
	//When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time. 
	// This Function in xpressme plugin
	require_once( dirname( __FILE__ ).'/xpress_block_render.php' );	
	xpress_unnecessary_block_cache_delete($xoops_config->module_name);
	if (is_home()) {
		xpress_block_cache_refresh($xoops_config->module_name);
		require_once( dirname( __FILE__ ).'/xpress_block_header.php' );	
		set_xpress_block_header($xoops_config->module_name);
	}
	if ( ini_get( 'register_globals' ) )
		$_SESSION = $global_session; //restore a session erased by wp_unregister_GLOBALS
	
	exit();		// The return to wp-blog-header.php is stolen here
}
if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path;		// for Notification_triggerEvent
if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path;	// for Notification_triggerEvent
xpress_set_memory_limmit(); // Set memory limmit.(Limmit Value from XPressMe modele config.)
require_once(ABSPATH.'wp-settings.php');
if ( ini_get( 'register_globals' ) )
	$_SESSION = $global_session; //restore a session erased by wp_unregister_GLOBALS
?>
Exemplo n.º 2
0
    //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.
    // This Function in xpressme plugin
    require_once dirname(__FILE__) . '/xpress_block_render.php';
    xpress_unnecessary_block_cache_delete($xoops_config->module_name);
    if (is_home()) {
        xpress_block_cache_refresh($xoops_config->module_name);
        require_once dirname(__FILE__) . '/xpress_block_header.php';
        set_xpress_block_header($xoops_config->module_name);
    }
    if (ini_get('register_globals')) {
        $_SESSION = $global_session;
    }
    //restore a session erased by wp_unregister_GLOBALS
    exit;
    // The return to wp-blog-header.php is stolen here
}
if (is_admin_post_call()) {
    require_once $xoops_config->xoops_mainfile_path;
}
// for Notification_triggerEvent
if (is_xpress_comments_post_call()) {
    require_once $xoops_config->xoops_mainfile_path;
}
// for Notification_triggerEvent
xpress_set_memory_limmit();
// Set memory limmit.(Limmit Value from XPressMe modele config.)
require_once ABSPATH . 'wp-settings.php';
if (ini_get('register_globals')) {
    $_SESSION = $global_session;
}
//restore a session erased by wp_unregister_GLOBALS