mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-10 22:00:48 +02:00
Upgrade LBCAlerte to version 3.3
Add upgrade script
This commit is contained in:
@ -30,29 +30,12 @@
|
||||
<?php if ($showCities) : ?>
|
||||
<th style="width: 200px">Villes</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["freeMobile"]
|
||||
|| $notification["ovh"]
|
||||
|| $notification["pushbullet"]
|
||||
|| $notification["notifymyandroid"]
|
||||
|| $notification["pushover"]
|
||||
) : ?>
|
||||
<th style="width: 140px">Envoyer par email</th>
|
||||
<?php if ($notification["freeMobile"]) : ?>
|
||||
<th style="width: 140px">SMS Free Mobile</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["ovh"]) : ?>
|
||||
<th style="width: 140px">SMS OVH</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["pushbullet"]) : ?>
|
||||
<th style="width: 140px">Pushbullet</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["notifymyandroid"]) : ?>
|
||||
<th style="width: 140px">NotityMyAndroid</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["pushover"]) : ?>
|
||||
<th style="width: 140px">Pushover</th>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($data_notifications AS $name => $notification) : ?>
|
||||
<?php if (!$notification["enabled"]) continue; ?>
|
||||
<th style="width: 140px"><?php echo $notification["list_label"]; ?></th>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<th style="width: 70px">Actif</th>
|
||||
<th style="width: 170px"> </th>
|
||||
</tr>
|
||||
@ -89,53 +72,17 @@
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["freeMobile"]
|
||||
|| $notification["ovh"]
|
||||
|| $notification["pushbullet"]
|
||||
|| $notification["notifymyandroid"]
|
||||
|| $notification["pushover"]
|
||||
) : ?>
|
||||
|
||||
<?php foreach ($data_notifications AS $name => $notification) : ?>
|
||||
<?php if (!$notification["enabled"]) continue; ?>
|
||||
<td>
|
||||
<a href="?mod=mail&a=toggle_status&s=send_mail&id=<?php echo $alert->id;
|
||||
?>"><img src="static/images/<?php
|
||||
echo !$alert->send_mail?"disable":"enable"; ?>.png" alt="" /></a>
|
||||
<a href="?mod=mail&a=toggle_status&s=<?php
|
||||
echo $notification["form_name"]; ?>&id=<?php
|
||||
echo $alert->id; ?>"><img src="static/images/<?php
|
||||
echo !$alert->{$notification["form_name"]} ? "disable" : "enable";
|
||||
?>.png" alt="" /></a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["freeMobile"]) : ?>
|
||||
<td>
|
||||
<a href="?mod=mail&a=toggle_status&s=send_sms_free_mobile&id=<?php echo $alert->id;
|
||||
?>"><img src="static/images/<?php
|
||||
echo !$alert->send_sms_free_mobile?"disable":"enable"; ?>.png" alt="" /></a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["ovh"]) : ?>
|
||||
<td>
|
||||
<a href="?mod=mail&a=toggle_status&s=send_sms_ovh&id=<?php echo $alert->id;
|
||||
?>"><img src="static/images/<?php
|
||||
echo !$alert->send_sms_ovh?"disable":"enable"; ?>.png" alt="" /></a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["pushbullet"]) : ?>
|
||||
<td>
|
||||
<a href="?mod=mail&a=toggle_status&s=send_pushbullet&id=<?php echo $alert->id;
|
||||
?>"><img src="static/images/<?php
|
||||
echo !$alert->send_pushbullet?"disable":"enable"; ?>.png" alt="" /></a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["notifymyandroid"]) : ?>
|
||||
<td>
|
||||
<a href="?mod=mail&a=toggle_status&s=send_notifymyandroid&id=<?php echo $alert->id;
|
||||
?>"><img src="static/images/<?php
|
||||
echo !$alert->send_notifymyandroid?"disable":"enable"; ?>.png" alt="" /></a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($notification["pushover"]) : ?>
|
||||
<td>
|
||||
<a href="?mod=mail&a=toggle_status&s=send_pushover&id=<?php echo $alert->id;
|
||||
?>"><img src="static/images/<?php
|
||||
echo !$alert->send_pushover?"disable":"enable"; ?>.png" alt="" /></a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<td>
|
||||
<a href="?mod=mail&a=toggle_status&s=suspend&id=<?php echo $alert->id;
|
||||
?>"><img src="static/images/<?php
|
||||
|
Reference in New Issue
Block a user