Improved image-buttons and colored image creation
This commit is contained in:
12
includes.php
12
includes.php
@@ -6,11 +6,13 @@ Copyright (C) 2011-2023 Thomas Hooge
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*****************************************************************************/
|
||||
|
||||
session_name('ipreg');
|
||||
|
||||
include('config.php');
|
||||
|
||||
session_name($config_app_session);
|
||||
session_start();
|
||||
|
||||
// check for user_id, if unnkown, redirect to login
|
||||
// check for user_id, if unknown, redirect to login
|
||||
if (empty($_SESSION['suser_id'])) {
|
||||
if (isset($_SERVER['REQUEST_URI'])) {
|
||||
$_SESSION['prelogin'] = $_SERVER['REQUEST_URI'];
|
||||
@@ -23,8 +25,6 @@ if (empty($_SESSION['suser_id'])) {
|
||||
$config_auth_ldap = false;
|
||||
$config_ext = array();
|
||||
|
||||
include("config.php");
|
||||
|
||||
// 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);
|
||||
@@ -33,5 +33,3 @@ $dbh->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
|
||||
include("lib.php");
|
||||
|
||||
$language = lang_getfrombrowser($config_lang, $config_lang_default, null, false);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user