12 lines
499 B
PHP
12 lines
499 B
PHP
<?php
|
|
|
|
$config = require(__DIR__ . '/config/config.php');
|
|
|
|
$remote_db = new mysqli($config['remote']['db_host'], $config['remote']['db_user'], $config['remote']['db_pass'], $config['remote']['db_name'], $config['remote']['db_port']);
|
|
$local_db = new mysqli($config['local']['db_host'], $config['local']['db_user'], $config['local']['db_pass'], $config['local']['db_name'], $config['local']['db_port']);
|
|
|
|
return [
|
|
'config' => $config,
|
|
'remote_db' => $remote_db,
|
|
'local_db' => $local_db
|
|
]; |