XPressME Integration Kit

Trac

Changeset 355 for trunk


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

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

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/extras/for_wordpressme2011/ja_EUC/wp-config.php

    r344 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/** 
     
    9492        define('ABSPATH', dirname(__FILE__).'/'); 
    9593 
    96 require_once( ABSPATH .'/include/request_url.php'); 
    97 if (is_xpress_index_page_call()){ 
    98         require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
    99         require_once(ABSPATH.'wp-settings.php'); 
    100         wp(); 
    101          
    102         if (!function_exists('is_wordpress_style')){    // When the XPressME plug-in is invalid 
    103                 require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ; 
    104                 xpress_pulugin_activation('xpressme/xpressme.php'); 
    105                 // reloaded  
    106                 header('Location: ' . $xoops_config->module_url . '/'); 
    107                  
    108                 $err_str = "The activation of the XPressME plugin was executed.<br />\n"; 
    109                 $err_str .= "Because the XPressME plugin was invalid.<br />\n"; 
    110                 $err_str .= "Please do the rereading seeing on the page.\n";                     
    111                 die($err_str); 
    112         } 
     94/** Processing for XPressME is done.*/ 
     95require_once( ABSPATH .'/include/add_xpress_process.php'); 
    11396 
    114         ob_start();      
    115                 if($xoops_config->is_wp20 ) 
    116                         require_once dirname( __FILE__ ).'/include/old_template-loader.php' ; 
    117                 else 
    118                         require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    119                 $wp_output = ob_get_contents(); 
    120         ob_end_clean(); 
    121         // It judges it here because it does in is_index_page() through feed to which the permalink is set.  
    122         if (is_wordpress_style() || is_feed()) { 
    123                 echo $wp_output; 
    124         } else { 
    125                 require_once( ABSPATH .'/include/xpress_render.php' ); 
    126                 xpress_render($wp_output); 
    127         } 
    128  
    129         //When there is no block cache, and an optional block is different, cache is refreshed.  
    130         //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.  
    131         // This Function in xpressme plugin 
    132         require_once( ABSPATH .'/include/xpress_block_render.php' );     
    133         xpress_unnecessary_block_cache_delete($xoops_config->module_name); 
    134         if (is_home()) xpress_block_cache_refresh($xoops_config->module_name); 
    135         exit();         // The return to wp-blog-header.php is stolen here 
    136 } 
    137 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    138 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    13997require_once(ABSPATH.'wp-settings.php'); 
    14098?> 
  • trunk/extras/for_wordpressme2011/ja_UTF/wp-config.php

    r314 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/** 
     
    9391        define('ABSPATH', dirname(__FILE__).'/'); 
    9492 
    95 require_once( ABSPATH .'/include/request_url.php'); 
    96 if (is_xpress_index_page_call()){ 
    97         require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
    98         require_once(ABSPATH.'wp-settings.php'); 
    99         wp(); 
    100          
    101         if (!function_exists('is_wordpress_style')){    // When the XPressME plug-in is invalid 
    102                 require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ; 
    103                 xpress_pulugin_activation('xpressme/xpressme.php'); 
    104                 // reloaded  
    105                 header('Location: ' . $xoops_config->module_url . '/'); 
    106                  
    107                 $err_str = "The activation of the XPressME plugin was executed.<br />\n"; 
    108                 $err_str .= "Because the XPressME plugin was invalid.<br />\n"; 
    109                 $err_str .= "Please do the rereading seeing on the page.\n";                     
    110                 die($err_str); 
    111         } 
     93/** Processing for XPressME is done.*/ 
     94require_once( ABSPATH .'/include/add_xpress_process.php'); 
    11295 
    113         ob_start();      
    114                 if($xoops_config->is_wp20 ) 
    115                         require_once dirname( __FILE__ ).'/include/old_template-loader.php' ; 
    116                 else 
    117                         require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    118                 $wp_output = ob_get_contents(); 
    119         ob_end_clean(); 
    120         // It judges it here because it does in is_index_page() through feed to which the permalink is set.  
    121         if (is_wordpress_style() || is_feed()) { 
    122                 echo $wp_output; 
    123         } else { 
    124                 require_once( ABSPATH .'/include/xpress_render.php' ); 
    125                 xpress_render($wp_output); 
    126         } 
    127  
    128         //When there is no block cache, and an optional block is different, cache is refreshed.  
    129         //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.  
    130         // This Function in xpressme plugin 
    131         require_once( ABSPATH .'/include/xpress_block_render.php' );     
    132         xpress_unnecessary_block_cache_delete($xoops_config->module_name); 
    133         if (is_home()) xpress_block_cache_refresh($xoops_config->module_name); 
    134         exit();         // The return to wp-blog-header.php is stolen here 
    135 } 
    136 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    137 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    13896require_once(ABSPATH.'wp-settings.php'); 
    13997?> 
  • trunk/extras/xpress_i18n/en/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/** 
     
    9391        define('ABSPATH', dirname(__FILE__).'/'); 
    9492 
    95 require_once( ABSPATH .'/include/request_url.php'); 
    96 if (is_xpress_index_page_call()){ 
    97         require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
    98         require_once(ABSPATH.'wp-settings.php'); 
    99         wp(); 
    100          
    101         if (!function_exists('is_wordpress_style')){    // When the XPressME plug-in is invalid 
    102                 require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ; 
    103                 xpress_pulugin_activation('xpressme/xpressme.php'); 
    104                 // reloaded  
    105                 header('Location: ' . $xoops_config->module_url . '/'); 
    106                  
    107                 $err_str = "The activation of the XPressME plugin was executed.<br />\n"; 
    108                 $err_str .= "Because the XPressME plugin was invalid.<br />\n"; 
    109                 $err_str .= "Please do the rereading seeing on the page.\n";                     
    110                 die($err_str); 
    111         } 
     93/** Processing for XPressME is done.*/ 
     94require_once( ABSPATH .'/include/add_xpress_process.php'); 
    11295 
    113         // It judges it here because it does in is_index_page() through feed to which the permalink is set.  
    114         if (is_wordpress_style() || is_feed()) { 
    115                 require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    116         } else { 
    117                 ob_start();      
    118                         require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    119                         $wp_output = ob_get_contents(); 
    120                 ob_end_clean(); 
    121                 require_once( ABSPATH .'/include/xpress_render.php' ); 
    122                 xpress_render($wp_output); 
    123         } 
    124                  
    125          
    126         //When there is no block cache, and an optional block is different, cache is refreshed.  
    127         //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.  
    128         // This Function in xpressme plugin 
    129         require_once( ABSPATH .'/include/xpress_block_render.php' );     
    130         xpress_unnecessary_block_cache_delete($xoops_config->module_name); 
    131         if (is_home()) xpress_block_cache_refresh($xoops_config->module_name); 
    132         exit();         // The return to wp-blog-header.php is stolen here 
    133 } 
    134 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    135 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    13696require_once(ABSPATH.'wp-settings.php'); 
    13797?> 
  • 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?> 
  • trunk/xpressme_integration_kit/wp-config.php

    r352 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/** 
     
    9391        define('ABSPATH', dirname(__FILE__).'/'); 
    9492 
    95 require_once( ABSPATH .'/include/request_url.php'); 
    96 if (is_xpress_index_page_call()){ 
    97         //When notifying by a private message,  
    98         //it is evaded that the data base becomes read-only as a result of the check on the referrer and the method.  
    99         $_SERVER['REQUEST_METHOD'] = 'POST'; 
     93/** Processing for XPressME is done.*/ 
     94require_once( ABSPATH .'/include/add_xpress_process.php'); 
    10095 
    101         require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
    102          
    103         require_once(ABSPATH.'wp-settings.php'); 
    104         if (!is_object($xoopsUser)){    // before login auth cookie clear 
    105                 wp_logout(); 
    106         } 
    107         wp(); 
    108          
    109         if (!function_exists('is_wordpress_style')){    // When the XPressME plug-in is invalid 
    110                 require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ; 
    111                 xpress_pulugin_activation('xpressme/xpressme.php'); 
    112                 // reloaded  
    113                 header('Location: ' . $xoops_config->module_url . '/'); 
    114                  
    115                 $err_str = "The activation of the XPressME plugin was executed.<br />\n"; 
    116                 $err_str .= "Because the XPressME plugin was invalid.<br />\n"; 
    117                 $err_str .= "Please do the rereading seeing on the page.\n"; 
    118                 die($err_str); 
    119         } 
    120          
    121         Notification_reserve_send(); 
    122         ob_start();      
    123                 if($xoops_config->is_wp20 ) 
    124                         require_once dirname( __FILE__ ).'/include/old_template-loader.php' ; 
    125                 else 
    126                         require_once( ABSPATH . WPINC . '/template-loader.php' ); 
    127                 $wp_output = ob_get_contents(); 
    128         ob_end_clean(); 
    129         // It judges it here because it does in is_index_page() through feed to which the permalink is set.  
    130         if (is_wordpress_style() || is_feed()) { 
    131                 echo $wp_output; 
    132         } else { 
    133                 require_once( ABSPATH .'/include/xpress_render.php' ); 
    134                 xpress_render($wp_output); 
    135         } 
    136  
    137         //When there is no block cache, and an optional block is different, cache is refreshed.  
    138         //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.  
    139         // This Function in xpressme plugin 
    140         require_once( ABSPATH .'/include/xpress_block_render.php' );     
    141         xpress_unnecessary_block_cache_delete($xoops_config->module_name); 
    142         if (is_home()) xpress_block_cache_refresh($xoops_config->module_name); 
    143         exit();         // The return to wp-blog-header.php is stolen here 
    144 } 
    145 if (is_admin_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    146 if (is_xpress_comments_post_call()) require_once $xoops_config->xoops_mainfile_path; 
    14796require_once(ABSPATH.'wp-settings.php'); 
    14897?> 
Note: See TracChangeset for help on using the changeset viewer.