fix bug where list source was not updated on change
This commit is contained in:
1 parent
a04893aed9
commit
649990eeef
3 files changed
+27
-21
No files matched your search
@@ -69,21 +69,17 @@ if ($_SESSION['log'] == 1) {
|
||||
echo '<a href="../settings.php"><h3>Zurück</h3></a><br><h3>Meine bestehenden Listen:</h3>';
|
||||
}
|
||||
if ($_SESSION['admin']) {
|
||||
$abfrage = "SELECT `id`, `name`, `owners`, `destinations`, `security`, `islist` FROM `alias_details`";
|
||||
$abfrage = "SELECT `id`, `name`, `owners`, `source`, `destinations`, `security`, `islist` FROM `alias_details`";
|
||||
$result = $dbh->query($abfrage);
|
||||
}
|
||||
else {
|
||||
$abfrage = "SELECT `id`, `name`, `owners`, `destinations`, `security`, `islist` FROM `alias_details` WHERE `id` REGEXP :aliasid";
|
||||
$abfrage = "SELECT `id`, `name`, `owners`, `source`, `destinations`, `security`, `islist` FROM `alias_details` WHERE `id` REGEXP :aliasid";
|
||||
$result = $dbh->prepare($abfrage);
|
||||
$result->execute(array(':aliasid' => substr($aliasids, 0, -1)));
|
||||
}
|
||||
echo '<table border="1" style="text-align: center; vertical-align: middle;"><tr><th>Listenname</th><th>Listenadresse</th><th>Listenempfänger</th><th>Listenbesitzer</th><th>Listensicherheit</th><th>Ist Maillingliste</th></ht><th>Optionen</th></tr>';
|
||||
while ($lists = $result->fetch()) {
|
||||
$abfrage2 = "SELECT `source_username`, `source_domain` FROM `aliases` WHERE `alias_id` LIKE :aliasid";
|
||||
$result2 = $dbh->prepare($abfrage2);
|
||||
$result2->execute(array(':aliasid' => $lists['id']));
|
||||
$listdetails = $result2->fetch();
|
||||
echo '<tr><td>' . $lists['name'] . '</td><td>' . $listdetails['source_username'] . '@' . $listdetails['source_domain'] . '</td><td>';
|
||||
echo '<tr><td>' . $lists['name'] . '</td><td>' . $lists['source'] . '</td><td>';
|
||||
foreach (explode(' ', $lists['destinations']) as $destination) {
|
||||
echo $destination . '<br>';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user