mirror of
https://github.com/gamaio/unps.us-Shortener.git
synced 2024-12-22 02:02:40 +00:00
Fix required files not being found
The files are located a directory up
This commit is contained in:
parent
b34e2db558
commit
2749abd20d
@ -9,14 +9,14 @@
|
|||||||
die("<div id=\"error\">Oh Noes! Something happened and I can't continue.<br />Please try again by using the form located at <a href=\"http://unps.us\">http://unps.us</a>.</div>");
|
die("<div id=\"error\">Oh Noes! Something happened and I can't continue.<br />Please try again by using the form located at <a href=\"http://unps.us\">http://unps.us</a>.</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
require('api/api.backend.php');
|
require('../api/api.backend.php');
|
||||||
require('api/dbsettings.php');
|
require('../api/dbsettings.php');
|
||||||
|
|
||||||
$key = '9a211e90b0a0570ed33e47428231e702af47b6f54fb347960f661184e063a1d0'; // KEEP THIS PRIVATE! This is the only thing that authenticates the application
|
$key = '9a211e90b0a0570ed33e47428231e702af47b6f54fb347960f661184e063a1d0'; // KEEP THIS PRIVATE! This is the only thing that authenticates the application
|
||||||
|
|
||||||
function sanitize($input){
|
function sanitize($input){
|
||||||
if ($input == null) die("<div id=\"error\">Sanatize() - No Input Provided, Aborting</div>");
|
if ($input == null) die("<div id=\"error\">Sanatize() - No Input Provided, Aborting</div>");
|
||||||
include('api/dbsettings.php');
|
include('../api/dbsettings.php');
|
||||||
$output = strip_tags($input);
|
$output = strip_tags($input);
|
||||||
$output = stripslashes($output);
|
$output = stripslashes($output);
|
||||||
$output = $apidb->real_escape_string($output);
|
$output = $apidb->real_escape_string($output);
|
||||||
|
Loading…
Reference in New Issue
Block a user