mirror of
https://github.com/YunoHost-Apps/cheky_ynh.git
synced 2024-09-03 18:16:00 +02:00
12 lines
No EOL
423 B
PHP
12 lines
No EOL
423 B
PHP
<?php
|
|
|
|
if (isset($_GET["id"]) && $alert = $storage->fetchById($_GET["id"])) {
|
|
$status = isset($_GET["s"])?$_GET["s"]:"";
|
|
if (in_array($status, array("suspend", "send_mail", "send_sms_free_mobile",
|
|
"send_sms_ovh", "send_pushbullet", "send_notifymyandroid",
|
|
"send_pushover"))) {
|
|
$alert->$status = !$alert->$status;
|
|
$storage->save($alert);
|
|
}
|
|
}
|
|
header("LOCATION: ./?mod=mail"); exit; |