. */ $config = parse_ini_file('../../private/config.ini'); try { $dbh = new PDO('mysql:host=' . $config['dbservername'] . ';dbname=' . $config['dbname'], $config['dbusername'], $config['dbpassword'], array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); } catch (PDOException $e) { //echo 'Connection failled: '. $e->getMessage(); // Errormessage kann Sicherheitsrelevantes enthalen echo 'Connection failed'; } session_start(); if ($_SESSION['log']) { header("Location: ../settings.php"); exit; } if ($_SESSION['forcepwreset']) { echo '

Du musst erstmal dein Passwort ändern:

'; echo '
'; } else header("Location: ../index.php"); ?>