Disable access.php by default

This commit is contained in:
Klaus-Uwe Mitterer 2016-08-07 22:09:56 +02:00
parent 02d23237d4
commit e56c0568b5
2 changed files with 7 additions and 0 deletions

View file

@ -1,6 +1,11 @@
<?php
include_once("config.php");
if (!$access) {
die("Access not enabled in configuration file. Make sure that this page is not public before enabling it.");
}
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {

View file

@ -4,3 +4,5 @@ $servername = "localhost";
$username = "username";
$password = "password";
$dbname = "database";
$access = False;