mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 01:49:28 +00:00
Compare commits
3 commits
2c5a66c069
...
32c3f60db4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32c3f60db4 | ||
|
|
a943668d66 | ||
|
|
ce775b8c16 |
3 changed files with 4 additions and 3 deletions
|
|
@ -231,7 +231,7 @@
|
|||
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
|
||||
|
||||
$SendNotification2 ({ origin=$ScriptName; \
|
||||
subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
|
||||
subject=([ $SymbolForNotification "lock-with-ink-pen,warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
|
||||
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . [ $FormatInfo $Cert ]) });
|
||||
$LogPrint info $ScriptName ("The certificate '" . ($CertVal->"name") . "' " . $State . \
|
||||
", it is invalid after " . ($CertVal->"invalid-after") . ".");
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ p.foot {
|
|||
text-align: center;
|
||||
}
|
||||
p.heading {
|
||||
font-size: 110%;
|
||||
margin: 0px;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@
|
|||
$LogPrint warning $ScriptName ("Failed to remove message: " . $Err);
|
||||
}
|
||||
} else={
|
||||
:set Messages ($Messages . "\n\nOn " . $SmsVal->"timestamp" . \
|
||||
" type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
|
||||
:set Messages ($Messages . "\n\n" . [ $SymbolForNotification "incoming-envelope" ] . \
|
||||
"On " . $SmsVal->"timestamp" . " type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
|
||||
:foreach Hook in=$SmsForwardHooks do={
|
||||
:if ($Phone~($Hook->"allowed-number") && ($SmsVal->"message")~($Hook->"match")) do={
|
||||
:if ([ $ValidateSyntax ($Hook->"command") ] = true) do={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue