Fixed some display bugs and improved icons
This commit is contained in:
@@ -7,9 +7,6 @@ Copyright (C) 2011-2023 Thomas Hooge
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*****************************************************************************/
|
||||
|
||||
session_name('ipreg');
|
||||
session_start();
|
||||
|
||||
if (! include("config.php")) {
|
||||
echo "<!DOCTYPE html><html><head><title>IP Reg</title></head><body>\n";
|
||||
echo "<h1>IP Reg</h1><h2>No configuration</h2>\n";
|
||||
@@ -19,6 +16,9 @@ if (! include("config.php")) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
session_name($config_app_session);
|
||||
session_start();
|
||||
|
||||
// connect to database
|
||||
$dbh = new PDO("mysql:host=$config_mysql_host;dbname=$config_mysql_dbname;charset=utf8", $config_mysql_username, $config_mysql_password);
|
||||
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
Reference in New Issue
Block a user