| @@ 182-191 (lines=10) @@ | ||
| 179 | ||
| 180 | if ($this->form_validation->run($this) == FALSE) { |
|
| 181 | showMessage(validation_errors(), lang('Message', 'cmsemail'), 'r'); |
|
| 182 | } else { |
|
| 183 | $data = [ |
|
| 184 | 'locale' => $locale, |
|
| 185 | 'settings' => $this->input->post('settings'), |
|
| 186 | ]; |
|
| 187 | ||
| 188 | $this->email->setSettings($data); |
|
| 189 | showMessage(lang('Settings saved', 'cmsemail'), lang('Message', 'cmsemail')); |
|
| 190 | $this->lib_admin->log(lang('Template customization mails have been changed', 'cmsemail') . '. Id: '); // . $id);?? |
|
| 191 | } |
|
| 192 | ||
| 193 | $this->cache->delete_all(); |
|
| 194 | } |
|
| @@ 121-130 (lines=10) @@ | ||
| 118 | ||
| 119 | public function deleteUsers() { |
|
| 120 | ||
| 121 | if ($this->input->post('ids')) { |
|
| 122 | ||
| 123 | foreach ($this->input->post('ids') as $id) { |
|
| 124 | $this->db->delete('mail', ['id' => $id]); |
|
| 125 | } |
|
| 126 | ||
| 127 | showMessage(lang('Subscribers removal', 'mailer')); |
|
| 128 | } else { |
|
| 129 | showMessage(lang('There is not ID', 'mailer'), '', 'r'); |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| 133 | } |
|