| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | program/steps/settings/responses.inc | |
| | | | | |
| | |
| | | |
| | | if (!empty($_POST['_insert'])) { |
| | | $name = trim(rcube_utils::get_input_value('_name', rcube_utils::INPUT_POST)); |
| | | $text = trim(rcube_utils::get_input_value('_text', rcube_utils::INPUT_POST)); |
| | | $text = trim(rcube_utils::get_input_value('_text', rcube_utils::INPUT_POST, true)); |
| | | |
| | | if (!empty($name) && !empty($text)) { |
| | | $dupes = 0; |
| | |
| | | $RCMAIL->output->send(); |
| | | } |
| | | |
| | | if ($RCMAIL->action == 'delete-response') { |
| | | if ($key = rcube_utils::get_input_value('_key', rcube_utils::INPUT_GPC)) { |
| | | if ($RCMAIL->action == 'delete-response' && $RCMAIL->output->ajax_call) { |
| | | if ($key = rcube_utils::get_input_value('_key', rcube_utils::INPUT_POST)) { |
| | | $responses = $RCMAIL->get_compose_responses(false, true); |
| | | foreach ($responses as $i => $response) { |
| | | if (empty($response['key'])) |
| | |
| | | $RCMAIL->output->command('remove_response', $key); |
| | | } |
| | | |
| | | if ($RCMAIL->output->ajax_call) { |
| | | $RCMAIL->output->send(); |
| | | } |
| | | $RCMAIL->output->send(); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | global $RCMAIL, $OUTPUT; |
| | | |
| | | $attrib += array('id' => 'rcmresponseslist', 'tagname' => 'table', 'cols' => 1); |
| | | $attrib += array('id' => 'rcmresponseslist', 'tagname' => 'table'); |
| | | |
| | | $plugin = $RCMAIL->plugins->exec_hook('responses_list', array( |
| | | 'list' => $RCMAIL->get_compose_responses(true), |