| | |
| | | * New Mail Notifier plugin |
| | | * |
| | | * Supports three methods of notification: |
| | | * 1. Basic - focus browser window and change favicon |
| | | * 2. Sound - play wav file |
| | | * 3. Desktop - display desktop notification (using webkitNotifications feature, |
| | | * supported by Chrome and Firefox with 'HTML5 Notifications' plugin) |
| | | * 1. Basic - focus browser window and change favicon |
| | | * 2. Sound - play wav file |
| | | * 3. Desktop - display desktop notification (using window.Notification API) |
| | | * |
| | | * @version @package_version@ |
| | | * @author Aleksander Machniak <alec@alec.pl> |
| | | * |
| | | * |
| | | * Copyright (C) 2011, Kolab Systems AG |
| | | * Copyright (C) 2011-2016, Kolab Systems AG |
| | | * |
| | | * This program is free software: you can redistribute it and/or modify |
| | | * it under the terms of the GNU General Public License as published by |
| | |
| | | foreach (array('basic', 'desktop', 'sound') as $type) { |
| | | $key = 'newmail_notifier_' . $type; |
| | | if (!in_array($key, $dont_override)) { |
| | | $args['prefs'][$key] = rcube_utils::get_input_value('_'.$key, rcube_utils::INPUT_POST) ? true : false; |
| | | $args['prefs'][$key] = !empty(rcube_utils::get_input_value('_' . $key, rcube_utils::INPUT_POST)); |
| | | } |
| | | } |
| | | |