More restrictions due to authorization system

This commit is contained in:
2023-03-01 15:12:09 +01:00
parent 0b2da1f00f
commit f0d187b4c3
14 changed files with 114 additions and 21 deletions

View File

@@ -10,7 +10,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
session_name('ipreg');
session_start();
include("config.php");
if (! include("config.php")) {
echo "<!DOCTYPE html><html><head><title>IP Reg</title></head><body><h1>IP Reg</h1><h2>No configuration</h2><p>Error loading configuration. Please check your installation.</p></body></html>\n";
exit(1);
}
// connect to database
$dbh = new PDO("mysql:host=$config_mysql_host;dbname=$config_mysql_dbname;charset=utf8", $config_mysql_username, $config_mysql_password);