mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-21 09:42:40 +00:00
17 lines
883 B
PHP
17 lines
883 B
PHP
<?php
|
|
|
|
// DBSettings
|
|
|
|
$apidb = new mysqli('localhost', 'api', 'password', 'api'); // Connect to main APIDB
|
|
if($apidb->connect_errno > 0) die('Unable to connect to database [' . $apidb->connect_error . '] - Check dbsettings.php');
|
|
|
|
$shortdb = new mysqli('localhost', 'short', 'password', 'short'); // Connect to link shortener DB
|
|
if($shortdb->connect_errno > 0) die('Unable to connect to database [' . $shortdb->connect_error . '] - Check dbsettings.php');
|
|
|
|
$imgdb = new mysqli('localhost', 'image', 'password', 'image'); // Connect to image host DB
|
|
if($imgdb->connect_errno > 0) die('Unable to connect to database [' . $imgdb->connect_error . '] - Check dbsettings.php');
|
|
|
|
$udb = new mysqli('localhost', 'logins', 'password', 'logins'); // Connect to UserAC DB
|
|
if($udb->connect_errno > 0) die('Unable to connect to database [' . $udb->connect_error . '] - Check dbsettings.php');
|
|
|
|
?>
|