Fix the URL encoding by changing urlencode to rawurlencode, since the former uses + instead of %20 to encode an URL and is meant for form submissions. Rawurlencode is meant for creating URLs, and should fix bug #1120
* Added Tele2 API
* Fixed mistake, added to readme, added number formatting
Co-authored-by: larsec <larsec@novea.nu>
Co-authored-by: Lars Scheibling <lars.scheibling@hoglandet.se>
Co-authored-by: Tim Zandbergen <TimZ99@users.noreply.github.com>
* add error message for missing/invalid header
* Code cleanup
- simplify the check
- do not invert the result of `preg_match()`
- do not set the `$result` in loop, it is already set after the loop
- fix the order of code, first set `$this->error` then `$result`
* Add more variables for webhook json
To allow status specific icons and a special Text defined in the json, not only provide #message as variable, but also #server_ip, #server_label, #server_last_offline_duration and #status.
* Add #server_error as additional variable for webhooks
Resolved#967.
* add feature "add url" to email and telegram
* Added missing brackets
* Changed $body to correct var $message
And changed PHP_EOL to <br>.
* Changed text a little
* Add dutch translation
Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>
* Composer dependency added
* Updated code for language and config controller
* Added LDAP auth code
* Added blank discord value for new user during install
With the low cost default value, SMS are sometimes received many hours after. For a monitoring software, this has no sense, we need to be sure to receive the alert by SMS instantly to repair the problem as quick as possible. Otherwise, SMS is useless, email is free and good enough. Moreover, the price difference between low cost and premium is small.
* Added support for Discord using Webhooks
* Bumped version
* Fixed broken upgrade
* Moved discord below Jabber
* Fixed broken comment
* Added missing translation
* Updated version
* Typo
* Moved Discord under Jabber
* Fixed icons
* Moved Webhook and discord after Jabber
Co-authored-by: Tim <TimZ99@users.noreply.github.com>
* use openssl_x509_parse to parse certinfo (avoid literal case conflict)
* use OS specific ping (CLI/socket)
* Moved Windows and non-Windows check to a private class
Co-authored-by: TimZ99 <TimZ99@users.noreply.github.com>