XPressME Integration Kit

Trac

Changeset 96 for trunk/wp-config.php


Ignore:
Timestamp:
Mar 6, 2009, 5:16:22 PM (16 years ago)
Author:
toemon
Message:

途中経過でインストール、アップデートできなくなってしまっていたバグ修正
イベント通知の部分をFix、(ゲストのモジュールアクセス権限がないと通知できないのは直らない)
ブロックのキャッシュを見直し、キャッシュがない場合と、ブロックオプションが変更された場合にリフレッシュする機能を追加
ブロックキャッシュの更新にてポスト削除時のイベントをDB削除前にとっていたバグを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-config.php

    r95 r96  
    55require_once dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ; 
    66 
     7/** 
     8 * mb_language() sets language. If language  is omitted, it returns current language as string. 
     9 * language setting is used for encoding e-mail messages.  
     10 * Valid languages are "Japanese", "ja","English","en" and "uni" (UTF-8).  
     11 * mb_send_mail() uses this setting to encode e-mail. 
     12 * Language and its setting is ISO-2022-JP/Base64 for Japanese, UTF-8/Base64 for uni, ISO-8859-1/quoted printable for English.  
     13 */ 
     14 if (function_exists("mb_language")) mb_language('uni'); 
    715 
    8 if (function_exists("mb_language")) mb_language('Japanese'); 
    9 // The setting of mb_internal_encoding might be unnecessary.  
    10 // Because mb_internal_encoding setting wp-setting.php line 484 
    11 if (function_exists("mb_internal_encoding")) mb_internal_encoding('UTF-8'); 
    1216 
    13 // ** MySQL settings ** // 
    14 define('DB_NAME', $xoops_config->xoops_db_name);    // The name of the database 
    15 define('DB_USER', $xoops_config->xoops_db_user);     // Your MySQL username 
    16 define('DB_PASSWORD', $xoops_config->xoops_db_pass); // ...and password 
    17 define('DB_HOST', $xoops_config->xoops_db_host);    // 99% chance you won't need to change this value 
     17// ** MySQL settings - You can get this info from your web host ** // 
     18// Do not change  'DB_NAME','DB_USER','DB_PASSWORD' & 'DB_HOST' 
     19// because copies a set value of XOOPS.  
     20 
     21/** Do not change. The name of the database for WordPress */ 
     22define('DB_NAME', $xoops_config->xoops_db_name); 
     23 
     24/** Do not change. MySQL database username */ 
     25define('DB_USER', $xoops_config->xoops_db_user); 
     26 
     27/** Do not change. MySQL database password */ 
     28define('DB_PASSWORD', $xoops_config->xoops_db_pass); 
     29 
     30/** Do not change. MySQL hostname */ 
     31define('DB_HOST', $xoops_config->xoops_db_host); 
     32         
     33/** Database Charset to use in creating database tables. */ 
    1834define('DB_CHARSET', 'utf8'); 
     35 
     36/** The Database Collate type. Don't change this if in doubt. */ 
    1937define('DB_COLLATE', ''); 
    2038 
    2139//define('WP_DEBUG' ,true); 
    2240 
    23 // Change each KEY to a different unique phrase.  You won't have to remember the phrases later, 
    24 // so make them long and complicated.  You can visit http://api.wordpress.org/secret-key/1.1/ 
    25 // to get keys generated for you, or just make something up.  Each key should have a different phrase. 
    26 define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase. 
    27 define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase. 
    28 define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase. 
     41/**#@+ 
     42 * Authentication Unique Keys. 
     43 * 
     44 * Change these to different unique phrases! 
     45 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service} 
     46 * 
     47 * @since 2.6.0 
     48 */ 
     49define('AUTH_KEY', 'put your unique phrase here'); 
     50define('SECURE_AUTH_KEY', 'put your unique phrase here'); 
     51define('LOGGED_IN_KEY', 'put your unique phrase here'); 
     52define('NONCE_KEY', 'put your unique phrase here'); 
    2953 
    30 // You can have multiple installations in one database if you give each a unique prefix 
    31 $table_prefix  = $xoops_config->module_db_prefix;   // Only numbers, letters, and underscores please! 
     54/** 
     55 * WordPress Database Table prefix. 
     56 * 
     57 * You can have multiple installations in one database if you give each a unique 
     58 * prefix. Only numbers, letters, and underscores please! 
     59 */ 
     60// Do not change. $table_prefix is generated from XOOPS DB Priefix and the module directory name.  
     61$table_prefix  = $xoops_config->module_db_prefix; 
    3262 
    33 // Change this to localize WordPress.  A corresponding MO file for the 
    34 // chosen language must be installed to wp-content/languages. 
    35 // For example, install de.mo to wp-content/languages and set WPLANG to 'de' 
    36 // to enable German language support. 
    37 define ('WPLANG', 'ja'); 
     63/** 
     64 * WordPress Localized Language, defaults to Japanese. 
     65 * 
     66 * Change this to localize WordPress.  A corresponding MO file for the chosen 
     67 * language must be installed to wp-content/languages. For example, install 
     68 * de.mo to wp-content/languages and set WPLANG to 'de' to enable German 
     69 * language support. 
     70 * 
     71 * Example: 
     72 * define ('WPLANG', '');               // language support to English 
     73 */ 
     74define ('WPLANG', 'ja');                // language support to Japanese 
    3875 
    3976/* That's all, stop editing! Happy blogging. */ 
    4077 
     78/** WordPress absolute path to the Wordpress directory. */ 
    4179if ( !defined('ABSPATH') ) 
    4280        define('ABSPATH', dirname(__FILE__).'/'); 
    4381 
    44 require_once dirname( __FILE__ ).'/include/request_url.php' ; 
    45 if (!is_xpress_index_page_call()){ 
    46 //      if ( is_wp_cron_page_call()){ 
    47 //              if ( !defined("XOOPS_ROOT_PATH") ) { 
    48 //                      require_once $xoops_config->xoops_mainfile_path; 
    49 //              } 
    50 //      } 
     82require_once( ABSPATH .'/include/request_url.php'); 
     83if (is_xpress_index_page_call()){ 
     84        require_once $xoops_config->xoops_mainfile_path; //It is necessary to execute it for the user attestation before wp-settings.php.  
    5185        require_once(ABSPATH.'wp-settings.php'); 
    52 } else { 
    53         // If $xoops_config->xoops_mainfile_path is not executed before wp-settings.php is executed, log in cannot be done.  
    54         require_once $xoops_config->xoops_mainfile_path; 
    55         require_once(ABSPATH.'wp-settings.php'); 
    56         // The return to wp-blog-header.php is stolen here 
    5786        wp(); 
    5887        ob_start();      
     
    6291        require_once( ABSPATH .'/include/xpress_render.php' ); 
    6392        xpress_render($wp_output); 
    64         require_once( ABSPATH .'/include/xpress_breadcrumbs.php' ); 
    65         include $xoops_config->xoops_root_path . '/footer.php'; 
    66         exit(); 
     93         
     94        //When there is no block cache, and an optional block is different, cache is refreshed.  
     95        //When adding, and changing and deleting Post & Comment, block cache is refreshed by add_action at any time.  
     96        // This Function in xpressme plugin 
     97        if (!is_block_cache_normal()) block_cache_refresh(); 
     98        exit();         // The return to wp-blog-header.php is stolen here 
    6799} 
     100require_once(ABSPATH.'wp-settings.php'); 
    68101?> 
Note: See TracChangeset for help on using the changeset viewer.