configs/wordpress/db.php
/**
	 * Add the connection parameters for a database
	 */
Add the connection parameters for a database
Add the connection parameters for a database
function add_database( $db ) {
		extract($db, EXTR_SKIP);
		isset($dataset) or $dataset = 'global';
		isset($read)    or $read = 1;
		isset($write)   or $write = 1;
		unset($db['dataset']);
		if ( $read )
			$this->hyper_servers[ $dataset ][ 'read' ][ $read ][] = $db;
		if ( $write )
			$this->hyper_servers[ $dataset ][ 'write' ][ $write ][] = $db;
	}
function add_database ( $ db ) { extract ( $ db , EXTR_SKIP ) ; isset ( $ dataset ) or $ dataset = 'global' ; isset ( $ read ) or $ read = 1 ; isset ( $ write ) or $ write = 1 ; unset ( $ db [ 'dataset' ] ) ; if ( $ read ) $ this -> hyper_servers [ $ dataset ] [ 'read' ] [ $ read ] [ ] = $ db ; if ( $ write ) $ this -> hyper_servers [ $ dataset ] [ 'write' ] [ $ write ] [ ] = $ db ; }
Add the connection parameters for a database
Add the connection parameters for a database