Code cleanup - unused variables
| | |
| | | |
| | | // Saved searches |
| | | $sources = $RCMAIL->user->list_searches(rcube_user::SEARCH_ADDRESSBOOK); |
| | | foreach ($sources as $j => $source) { |
| | | $id = $source['id']; |
| | | foreach ($sources as $source) { |
| | | $id = $source['id']; |
| | | $js_id = rcube::JQ($id); |
| | | |
| | | // set class name(s) |
| | |
| | | function rcmail_import_group_id($group_name, $CONTACTS, $create, &$import_groups) |
| | | { |
| | | $group_id = 0; |
| | | foreach ($import_groups as $key => $group) { |
| | | foreach ($import_groups as $group) { |
| | | if (strtolower($group['name']) == strtolower($group_name)) { |
| | | $group_id = $group['ID']; |
| | | break; |
| | |
| | | } |
| | | else { |
| | | $data = $storage->get_raw_body($message->uid); |
| | | $curr_mem += $message->size; |
| | | } |
| | | |
| | | $attachment = array( |
| | |
| | | */ |
| | | function rcmail_messagecontent_frame($attrib) |
| | | { |
| | | global $OUTPUT, $RCMAIL; |
| | | global $OUTPUT; |
| | | |
| | | if (empty($attrib['id'])) |
| | | $attrib['id'] = 'rcmailcontentwindow'; |
| | |
| | | /** |
| | | * return block to show full message headers |
| | | */ |
| | | function rcmail_message_full_headers($attrib, $headers=NULL) |
| | | function rcmail_message_full_headers($attrib) |
| | | { |
| | | global $OUTPUT, $RCMAIL; |
| | | |
| | |
| | | return $out; |
| | | } |
| | | |
| | | function rcmail_message_error($uid=null) |
| | | function rcmail_message_error() |
| | | { |
| | | global $RCMAIL; |
| | | |
| | |
| | | |
| | | function rcmail_get_form_part($form, $attrib = array()) |
| | | { |
| | | global $RCMAIL; |
| | | |
| | | $content = ''; |
| | | |
| | | if (is_array($form['content']) && !empty($form['content'])) { |
| | |
| | | |
| | | function rcube_response_form($attrib) |
| | | { |
| | | global $RCMAIL, $OUTPUT, $RESPONSE_RECORD; |
| | | global $RCMAIL, $RESPONSE_RECORD; |
| | | |
| | | // Set form tags and hidden fields |
| | | $disabled = !empty($RESPONSE_RECORD['static']); |
| | |
| | | $out = "$form_start\n"; |
| | | |
| | | $table = new html_table(array('cols' => 2)); |
| | | $label = $RCMAIL->gettext('responsename'); |
| | | |
| | | $table->add('title', html::label('ffname', rcube::Q($RCMAIL->gettext('responsename')))); |
| | | $table->add(null, rcube_output::get_edit_field('name', $RESPONSE_RECORD['name'], |
| | |
| | | |
| | | // create list of available folders |
| | | foreach ($list_folders as $i => $folder) { |
| | | $idx = $i + 1; |
| | | $sub_key = array_search($folder['id'], $a_subscribed); |
| | | $subscribed = $sub_key !== false; |
| | | $protected = $protect_default && isset($special_folders[$folder['id']]); |
| | |
| | | $select_default_font->add('', ''); |
| | | |
| | | $fonts = rcmail::font_defs(); |
| | | foreach ($fonts as $fname => $font) { |
| | | foreach (array_keys($fonts) as $fname) { |
| | | $select_default_font->add($fname, $fname); |
| | | } |
| | | |
| | |
| | | $tagname = $attrib['tagname']; |
| | | $tabs = array(); |
| | | |
| | | foreach ($plugin['actions'] as $k => $action) { |
| | | foreach ($plugin['actions'] as $action) { |
| | | if (!$action['command'] && !$action['href'] && $action['action']) { |
| | | $action['href'] = $RCMAIL->url(array('_action' => $action['action'])); |
| | | } |