mirror of
https://github.com/gamaio/UnPS-Short.git
synced 2025-08-13 02:08:45 +00:00
Add Shortv4-2 files, watered down UnPSAPI, and Bootstrap 3
This commit is contained in:
11
api/dbsettings.php
Normal file
11
api/dbsettings.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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');
|
||||
|
||||
?>
|
Reference in New Issue
Block a user