<?php
mb_language
('Japanese');
mb_internal_encoding('UTF-8');

define('WP_CACHE'true);

// ** MySQL settings ** //
define('DB_NAME''sample');    // The name of the database
define('DB_USER''sample');     // Your MySQL username
define('DB_PASSWORD''secret'); // ...and password
define('DB_HOST''localhost');    // 99% chance you won't need to change this value
define('DB_CHARSET''utf8');
define('DB_COLLATE''');


// disable revision
define('WP_POST_REVISIONS'false);

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  'wp_';   // Only numbers, letters, and underscores please!

// determine table prefix according to the REQUEST_URI
$prefix_array = array(
  
'/milklog'   => 'wp_milklog_'
  
'/enblog'  => 'wp_enblog_'
);

if(
$prefix_array){
  
$uri $_SERVER['REQUEST_URI'];
  foreach(
$prefix_array as $search_uri => $search_table_prefix){
    if(
strpos($uri$search_uri) !== 0){ continue; }
    
$table_prefix $search_table_prefix;
  }
}


// Change this to localize WordPress.  A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
if(strpos($_SERVER['REQUEST_URI'], '/enblog') !== false){
  
define ('WPLANG''en');
}else{
  
define ('WPLANG''ja');
}

/* That's all, stop editing! Happy blogging. */

define('ABSPATH'dirname(__FILE__).'/');
require_once(
ABSPATH.'wp-settings.php');