XPressME Integration Kit

Trac


Ignore:
Timestamp:
Aug 3, 2009, 11:43:40 AM (15 years ago)
Author:
toemon
Message:

今後の変更にる各言語用のwp-config.phpへの影響を最小限に抑えるため、、wp-config.phpを極力変更しない構成にする。 fixes #196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/extras/xpress_i18n/portuguese-br/xpressme_modules_root/wp-config.php

    r315 r355  
    11<?php 
    2 require_once dirname( __FILE__ ).'/include/xpress_debug_log.php' ; 
    3 require_once dirname( __FILE__ ).'/class/config_from_xoops.class.php' ; 
    4 $xoops_config = new ConfigFromXoops; 
    5 require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ; 
     2/** It is an additional loading for XPressME. */ 
     3require_once dirname( __FILE__ ).'/include/add_xpress_config.php' ; 
    64 
    75/** 
     
    8987        define('ABSPATH', dirname(__FILE__) . '/'); 
    9088 
    91 require_once( ABSPATH .'/include/request_url.php'); 
    92 if (is_xpress_index_page_call()){ 
    93         require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
    94         require_once(ABSPATH.'wp-settings.php'); 
    95         wp(); 
    96          
    97         if (!function_exists('is_wordpress_style')){    // When the XPressME plug-in is invalid 
    98                 require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ; 
    99                 xpress_pulugin_activation('xpressme/xpressme.php'); 
    100                 // reloaded  
    101                 header('Location: ' . $xoops_config->module_url . '/'); 
    102                  
    103                 $err_str = "The activation of the XPressME plugin was executed.<br />\n"; 
    104                 $err_str .= "Because the XPressME plugin was invalid.<br />\n"; 
    105                 $err_str .= "Please do the rereading seeing on the page.\n";                     
    106                 die($err_str); 
    107         } 
     89/** Processing for XPressME is done.*/ 
     90require_once( ABSPATH .'/include/add_xpress_process.php'); 
    10891 
    109         // It judges it here because it does in is_index_page() through feed to which the permalink is set.  
    110         if (is_wordpress_style() || is_feed()) { 
    111                 require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    112         } else { 
    113                 ob_start();      
    114                         require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    115                         $wp_output = ob_get_contents(); 
    116                 ob_end_clean(); 
    117                 require_once( ABSPATH .'/include/xpress_render.php' ); 
    118                 xpress_render($wp_output); 
    119         } 
    120                  
    121          
    122         //When there is no block cache, and an optional block is different, cache is refreshed.  
    123         //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.  
    124         // This Function in xpressme plugin 
    125         require_once( ABSPATH .'/include/xpress_block_render.php' );     
    126         xpress_unnecessary_block_cache_delete($xoops_config->module_name); 
    127         if (is_home()) xpress_block_cache_refresh($xoops_config->module_name); 
    128         exit();         // The return to wp-blog-header.php is stolen here 
    129 } 
    130 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    131 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    13292require_once(ABSPATH.'wp-settings.php'); 
    13393?> 
Note: See TracChangeset for help on using the changeset viewer.