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
This implements the following new classes
- mailer.php Class to handle smtp/mail related tasks. This implements
support for PHPMailer()
- notification.php Class to handle notification to subscribers.
- subscriber.php Class to handle the self-managment of subscribers.
- subscriptions.php Class to handle subscription to services for
subscribers.