Admin kann Passwörter ändern. Kleinere Fixes
This commit is contained in:
1 parent
c37c9a0525
commit
24e4cb92be
6 files changed
+74
-7
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user