mirror of
https://github.com/gamaio/UnPS-Short.git
synced 2024-12-22 10:22:40 +00:00
c2fe7d6106
This reverts commit c1c557ed07
.
Conflicts:
api/dbsettings.php
11 lines
459 B
PHP
11 lines
459 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');
|
|
|
|
?>
|