. */ $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']) { if (!$_SESSION['admin']) { $abfrage = "SELECT `alias_id` FROM `alias_owner` WHERE `owner_username` LIKE :owner_username AND `owner_domain` LIKE :owner_domain AND alias_id LIKE :editlistid"; $result = $dbh->prepare($abfrage); $result->execute(array(':owner_username' => $_SESSION['username'], ':owner_domain' => $_SESSION['domain'], ':editlistid' => $_GET['editlistid'])); if ($result->rowCount() <= 0) { header("Location: maillistsettings.php"); exit; } } echo ' Mailliste editieren

Zurück zur Maillistoberfläche (Editieren abbrechen)


'; $abfrage = "SELECT `name`, `owners`, `source`, `security`, `islist` FROM `alias_details` WHERE `id` LIKE :editlistid"; $result = $dbh->prepare($abfrage); $result->execute(array(':editlistid' => $_GET['editlistid'])); while ($lists = $result->fetch()) { echo'
'; else echo $lists['source'] . ' '; echo '

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