mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-19 09:50:49 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
12
sources/app/mail/scripts/toggle_status.php
Normal file
12
sources/app/mail/scripts/toggle_status.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?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;
|
Reference in New Issue
Block a user