old mode 100755
new mode 100644
| | |
| | | * Copyright (C) 2013 Thomas Yu - Sian, Liu |
| | | * Copyright (C) 2013, 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 version 2 |
| | | * as published by the Free Software Foundation. |
| | | * 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 |
| | | * the Free Software Foundation, either version 3 of the License, or |
| | | * (at your option) any later version. |
| | | * |
| | | * This program is distributed in the hope that it will be useful, |
| | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | | * GNU General Public License for more details. |
| | | * |
| | | * You should have received a copy of the GNU General Public License along |
| | | * with this program; if not, write to the Free Software Foundation, Inc., |
| | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| | | * You should have received a copy of the GNU General Public License |
| | | * along with this program. If not, see <http://www.gnu.org/licenses/> |
| | | */ |
| | | |
| | | class attachment_reminder extends rcube_plugin |
| | |
| | | $rcmail = rcube::get_instance(); |
| | | |
| | | if ($rcmail->task == 'mail' && $rcmail->action == 'compose') { |
| | | $this->include_script('attachment_reminder.js'); |
| | | $this->add_texts('localization/', array('keywords', 'forgotattachment')); |
| | | if ($rcmail->config->get('attachment_reminder')) { |
| | | $this->include_script('attachment_reminder.js'); |
| | | $this->add_texts('localization/', array('keywords', 'forgotattachment')); |
| | | $rcmail->output->add_label('addattachment', 'send'); |
| | | } |
| | | } |
| | | |
| | | if ($rcmail->task == 'settings') { |