XPressME Integration Kit

Trac

Changeset 179 for trunk/wp-config.php


Ignore:
Timestamp:
Apr 17, 2009, 10:51:31 PM (16 years ago)
Author:
toemon
Message:

#106 有効になっているプラグインはそのままで、XPressMEプラグインを有効にする処理を実装
誤ってXPressMEプラグインを無効にした場合、ページ読み込み時に有効化を行いリロードさせるようにした。

The activation of the XPressME plugin was executed.
Because the XPressME plugin was invalid.
Please do the rereading seeing on the page.
の表示を行い再読み込みを促すようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-config.php

    r173 r179  
    8585        require_once(ABSPATH.'wp-settings.php'); 
    8686        wp(); 
     87         
     88        if (!function_exists('is_wordpress_style')){    // When the XPressME plug-in is invalid 
     89                require_once dirname( __FILE__ ).'/include/xpress_active_plugin.php' ; 
     90                xpress_pulugin_activation('xpressme/xpressme.php'); 
     91                // reloaded  
     92                header('Location: ' . $xoops_config->module_url . '/'); 
     93                 
     94                $err_str = "The activation of the XPressME plugin was executed.<br />\n"; 
     95                $err_str .= "Because the XPressME plugin was invalid.<br />\n"; 
     96                $err_str .= "Please do the rereading seeing on the page.\n";                     
     97                die($err_str); 
     98        } 
     99 
    87100        if (is_wordpress_style()) { 
    88101                require_once( ABSPATH . WPINC . '/template-loader.php' ); 
Note: See TracChangeset for help on using the changeset viewer.