Initial commit

UnPS-GAMA API first release - Not in usable production state
Version 0.0.1
This commit is contained in:
Arctic Code
2013-07-18 17:26:53 -05:00
commit 7b01ce691f
4 changed files with 139 additions and 0 deletions

14
dbsettings.php Normal file
View File

@@ -0,0 +1,14 @@
<?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');
?>