Skip to content

Commit

Permalink
Merge pull request #3 from benank/master
Browse files Browse the repository at this point in the history
Request list now requires security key
  • Loading branch information
DaveLinger authored Aug 22, 2020
2 parents 938a7ba + aab8e52 commit 2d306f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions request_list/show_requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

include("includes/config.php");

if(!isset($_GET["security_key"])){
die("Nope");
}

if($_GET["security_key"] != $security_key){
die("Nope");
}

$conn = mysqli_connect(dbhost, dbuser, dbpass, db);
if(! $conn ) {die('Could not connect: ' . mysqli_error($conn));}

Expand Down

0 comments on commit 2d306f1

Please sign in to comment.