Admin kann Passwörter ändern. Kleinere Fixes

This commit is contained in:
hmrhkr committed 2019-11-22 14:30:22 +01:00
1 parent c37c9a0525
commit 24e4cb92be
6 files changed
+74 -7

No files matched your search

+6 -1
View File
@@ -52,7 +52,12 @@ if ($_SESSION['log'] == 1) {
$sth->execute(array(':mailuserID' => $mailuserID));
//$maildirpath = $config['mailfolderpath'] . $result[0]['username'];
//delete_directory($maildirpath);
header("Location: ../admin.php?success=1");
if ($_SESSION['admin'] == 1) {
header("Location: ../admin.php?success=1");
}
else {
header("Location: ../logout.php");
}
exit;
}
header("Location: ../index.php");