From c1c557ed07f179ef48ce3d257b78aabe67b63ad6 Mon Sep 17 00:00:00 2001 From: Arctic Code Date: Thu, 27 Mar 2014 16:30:41 -0500 Subject: [PATCH] Move APIKey to different file --- api/dbsettings.php | 2 ++ process.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/dbsettings.php b/api/dbsettings.php index 6484a1b..927bc53 100644 --- a/api/dbsettings.php +++ b/api/dbsettings.php @@ -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 + ?> \ No newline at end of file diff --git a/process.php b/process.php index b9e0718..2cd66e6 100644 --- a/process.php +++ b/process.php @@ -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("
Sanatize() - No Input Provided, Aborting
"); include('api/dbsettings.php');