More restrictions due to authorization system
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user