db-config.php 540 Bytes
Newer Older
lechuck's avatar
lechuck committed
1 2
<?php

3
define("NOBLOGS_BACKEND_CONFIG", "/etc/noblogs/backends");
lechuck's avatar
lechuck committed
4

5 6
require_once('r2db/db-hash.php');
require_once('r2db/db-backends.php');
lechuck's avatar
lechuck committed
7

8 9
// Add the global database (configured in wp-config.php), stores the global
// blogs and users tables.
lechuck's avatar
lechuck committed
10
$wpdb->add_database(array(
11 12 13 14 15 16 17
    "host" => DB_HOST,
    "user" => DB_USER,
    "password" => DB_PASSWORD,
    "name" => DB_NAME,
    "dataset" => "global",
    "write" => 1, "read" => 1, "timeout" => 2
    ));
lechuck's avatar
lechuck committed
18

19
$wpdb_reverse_backend_map = noblogs_load_backends(NOBLOGS_BACKEND_CONFIG, $wpdb_hash);
lechuck's avatar
lechuck committed
20