mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
clear_cache & maintenance csrf
This commit is contained in:
@@ -12,7 +12,7 @@ $title = 'Dashboard';
|
||||
|
||||
csrfProtect();
|
||||
|
||||
if (isset($_GET['clear_cache'])) {
|
||||
if (isset($_POST['clear_cache'])) {
|
||||
if (clearCache()) {
|
||||
success('Cache cleared.');
|
||||
} else {
|
||||
@@ -20,7 +20,7 @@ if (isset($_GET['clear_cache'])) {
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET['maintenance'])) {
|
||||
if (isset($_POST['maintenance'])) {
|
||||
$message = (!empty($_POST['message']) ? $_POST['message'] : null);
|
||||
$_status = (isset($_POST['status']) && $_POST['status'] == 'true');
|
||||
$_status = ($_status ? '0' : '1');
|
||||
|
Reference in New Issue
Block a user