Move APIKey to different file

This commit is contained in:
Arctic Code 2014-03-27 16:30:41 -05:00
parent d1e0f3f567
commit c1c557ed07
2 changed files with 2 additions and 2 deletions

View File

@ -8,4 +8,6 @@ if($apidb->connect_errno > 0) die('Unable to connect to database [' . $apidb->co
$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');
$key = '9a211e90b0a0570ed33e47428231e702af47b6f54fb347960f661184e063a1d0'; // KEEP THIS PRIVATE! This is the only thing that authenticates the application
?>

View File

@ -12,8 +12,6 @@
require('api/api.backend.php');
require('api/dbsettings.php');
$key = '9a211e90b0a0570ed33e47428231e702af47b6f54fb347960f661184e063a1d0'; // KEEP THIS PRIVATE! This is the only thing that authenticates the application
function sanitize($input){
if ($input == null) die("<div id=\"error\">Sanatize() - No Input Provided, Aborting</div>");
include('api/dbsettings.php');