<?php
-$CONF['wp'] = array (
+$CONF['wp'] = [
'title' => 'Wordpress',
'host' => 'admin.izideal.vpn',
'type' => 'mysql',
'_import' => '_nico',
- 'tables' => array(
- 'wp_options' => array(
+ 'default_table' => 'wp_blogs',
+ 'tables' => [
+ 'wp_options' => [
'row_parse_pre' => function(&$r) {
foreach ($r as $k=>$v) {
$r[$k] = str_replace("\0",'',$v);
}
},
- ),
- ),
-);
-if (!empty($GLOBALS['wpdb'])) {
+ ],
+ ],
+];
+
+if (false and !empty($GLOBALS['wpdb'])) {
$CONF['wp']['type'] = 'sqlite';
$CONF['wp']['host'] = DB_DIR.'/'.DB_FILE;
}
+
+$CONF['wp-sqlite'] = array (
+ 'host' => nb::untilde('~nico/ownCloud/var/lib/sqlite/wp.db'),
+ 'type' => 'sqlite',
+ '_import' => '_wp',
+);
?>