The code to handle sending of notification was missing. This change
makes two different options available on how notifications will be
handled which will be controlled by CRON_SERVER_IP config option.
- If CRON_SERVER_IP is set, the server with the given IP should
call URL ../admin/?task=cron every x minutes. If the config
is left empty, the notification will be called once the
incident has been saved. (The latter meothod might cause
server timeout if there are large numbers of subscribers!)
Other minor changes:
- Removed old commented code
- Removed call to syslog used for debugging
In preparation for adding subscription notification a number of
new configuration options has been added. These are as follows:
- SUBSCRIBE_EMAIL : True/False to allow email subscription
- SUBSCRIBE_TELEGRAM : True/False to allow Telegram
subscription
- GOOGLE_RECAPTCHA : True/False to enable reCapthca for
e-mail signup form
- GOOGLE_RECAPTCHA_SITEKEY : Google reCaptcha sitekey
- GOOGLE_RECAPTCHA_SECRET : Google reCaptcha secret
- PHP_MAILER : True/False to allow the use of PHPMailer()
library for emails.
- PHP_MAILER_PATH: Path to where PHPMailer() class is
located on the system
- PHP_MAILER_SMTP : True/False if SMTP is to be used with
PHPmailer(). Default will be mail().
- PHP_MAILER_HOST : SMTP Host to use if PHP_MAILER_SMTP
is enabled.
- PHP_MAILER_PORT : SMTP Port
- PHP_MAILER_SECURE : tls/ssl option for PHPMailer()
- PHP_MAILER_USER : Username for SMTP
- PHP_MAILER_PASS : Password for SMTP
- Also moved the gitbug icon to the left of the footer as it looked like it was part of the imprint/policy link.
- Fixed Imprint & Privacy policy text so that it will be translated.