| | |
| | | $group_id = is_array($record[$group_field]) ? $record[$group_field][0] : $record[$group_field]; |
| | | |
| | | if ($group) { |
| | | $users[] = array('name' => ($prefix ? $prefix : '') . $group_id, 'display' => $group, 'type' => 'group'); |
| | | $users[] = array('name' => ($prefix ?: '') . $group_id, 'display' => $group, 'type' => 'group'); |
| | | $keys[] = $group; |
| | | } |
| | | } |
old mode 100755
new mode 100644
old mode 100755
new mode 100644
| | |
| | | */ |
| | | protected function _key($args) |
| | | { |
| | | $uname = $args['path'] ? $args['path'] : $args['name']; |
| | | $uname = $args['path'] ?: $args['name']; |
| | | return $args['group'] . md5(time() . $uname . $_SESSION['user_id']); |
| | | } |
| | | |
| | |
| | | $this->debug_messages[] = $msg; |
| | | $this->run_log[] = array( |
| | | 'type' => 'note', |
| | | 'tag' => $tag ? $tag:"text", |
| | | 'tag' => $tag ?: 'text', |
| | | 'value' => htmlentities($msg), |
| | | 'time' => microtime(true), |
| | | 'parents' => $this->parent_stack, |
| | |
| | | |
| | | function getData($name) |
| | | { |
| | | if ($name) { |
| | | return $this->data[$name]; |
| | | } |
| | | else { |
| | | return $this->data; |
| | | } |
| | | return $name ? $this->data[$name] : $this->data; |
| | | } |
| | | } |
| | |
| | | { |
| | | $this->checkParams(); |
| | | |
| | | $eol = !empty($this->build_params['eol']) ? $this->build_params['eol'] : "\r\n"; |
| | | $eol = $this->build_params['eol'] ?: "\r\n"; |
| | | |
| | | // multipart message: and boundary |
| | | if (!empty($this->build_params['boundary'])) { |
| | |
| | | // resolve language placeholder |
| | | $rcmail = rcmail::get_instance(); |
| | | $langmap = $rcmail->config->get('help_language_map', array('*' => 'en_US')); |
| | | $lang = !empty($langmap[$_SESSION['language']]) ? $langmap[$_SESSION['language']] : $langmap['*']; |
| | | $lang = $langmap[$_SESSION['language']] ?: $langmap['*']; |
| | | |
| | | return str_replace('%l', $lang, $path); |
| | | } |
| | | } |
| | |
| | | |
| | | $args['blocks']['main']['options']['hide_blockquote_limit'] = array( |
| | | 'title' => $this->gettext('quotelimit'), |
| | | 'content' => $input->show($limit ? $limit : '') |
| | | 'content' => $input->show($limit ?: '') |
| | | ); |
| | | |
| | | return $args; |
| | |
| | | */ |
| | | public function error() |
| | | { |
| | | return $this->error ? $this->error : false; |
| | | return $this->error ?: false; |
| | | } |
| | | |
| | | /** |
| | |
| | | foreach ($sizeitems as $item) |
| | | $items[] = $item; |
| | | |
| | | $this->form['disabled'] = $_POST['_disabled'] ? true : false; |
| | | $this->form['join'] = $join=='allof' ? true : false; |
| | | $this->form['disabled'] = !empty($_POST['_disabled']); |
| | | $this->form['join'] = $join == 'allof'; |
| | | $this->form['name'] = $name; |
| | | $this->form['tests'] = array(); |
| | | $this->form['actions'] = array(); |
| | |
| | | $test = $rule['type']; |
| | | } |
| | | else if (in_array($rule['test'], $set)) { |
| | | $test = ($rule['not'] ? 'not' : '') . ($rule['type'] ? $rule['type'] : 'is'); |
| | | $test = ($rule['not'] ? 'not' : '') . ($rule['type'] ?: 'is'); |
| | | } |
| | | else { |
| | | $test = ($rule['not'] ? 'not' : '') . $rule['test']; |
| | |
| | | if (empty($filter['actions'])) { |
| | | continue; |
| | | } |
| | | $fname = $filter['name'] ? $filter['name'] : "#$i"; |
| | | $fname = $filter['name'] ?: "#$i"; |
| | | $result[] = array( |
| | | 'id' => $idx, |
| | | 'name' => $fname, |
| | |
| | | } |
| | | } |
| | | |
| | | $this->rc->output->show_message($error ? $error : 'managesieve.saveerror', 'error'); |
| | | $this->rc->output->show_message($error ?: 'managesieve.saveerror', 'error'); |
| | | $this->rc->output->send(); |
| | | } |
| | | |
| | |
| | | $seconds_extension = in_array('vacation-seconds', $this->exts); |
| | | |
| | | // build FORM tag |
| | | $form_id = !empty($attrib['id']) ? $attrib['id'] : 'form'; |
| | | $form_id = $attrib['id'] ?: 'form'; |
| | | $out = $this->rc->output->request_form(array( |
| | | 'id' => $form_id, |
| | | 'name' => $form_id, |
| | |
| | | } |
| | | } |
| | | |
| | | return $interval ? $interval : ''; |
| | | return $interval ?: ''; |
| | | } |
| | | |
| | | /** |
| | |
| | | $include_path .= ini_get('include_path'); |
| | | set_include_path($include_path); |
| | | |
| | | $class_name = 'rcube_sieve_' . ($type ? $type : 'engine'); |
| | | $class_name = 'rcube_sieve_' . ($type ?: 'engine'); |
| | | $this->engine = new $class_name($this); |
| | | } |
| | | |
| | |
| | | |
| | | if ($rcmail->action == '' || $rcmail->action == 'show') { |
| | | $skin_path = $this->local_skin_path(); |
| | | $this->include_script('markasjunk.js'); |
| | | if (is_file($this->home . "/$skin_path/markasjunk.css")) |
| | | $this->include_stylesheet("$skin_path/markasjunk.css"); |
| | | |
| | | $this->add_texts('localization', true); |
| | | $this->include_script('markasjunk.js'); |
| | | |
| | | if (is_file($this->home . "/$skin_path/markasjunk.css")) { |
| | | $this->include_stylesheet("$skin_path/markasjunk.css"); |
| | | } |
| | | |
| | | $this->add_button(array( |
| | | 'type' => 'link', |
| | |
| | | 'class' => 'button buttonPas junk disabled', |
| | | 'classact' => 'button junk', |
| | | 'title' => 'buttontitle', |
| | | 'domain' => 'markasjunk'), 'toolbar'); |
| | | 'domain' => 'markasjunk' |
| | | ),'toolbar'); |
| | | } |
| | | } |
| | | |
| | |
| | | $rcmail->output->command('display_message', $this->gettext('reportedasjunk'), 'confirmation'); |
| | | $rcmail->output->send(); |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | private function _key($args) |
| | | { |
| | | $uname = $args['path'] ? $args['path'] : $args['name']; |
| | | $uname = $args['path'] ?: $args['name']; |
| | | return $args['group'] . md5(time() . $uname . $_SESSION['user_id']); |
| | | } |
| | | |
| | |
| | | $rcmail = rcmail::get_instance(); |
| | | $use_subscriptions = $rcmail->config->get('use_subscriptions'); |
| | | |
| | | $args['prefs']['use_subscriptions'] = isset($_POST['_use_subscriptions']) ? true : false; |
| | | $args['prefs']['use_subscriptions'] = isset($_POST['_use_subscriptions']); |
| | | |
| | | // if the use_subscriptions preference changes, flush the folder cache |
| | | if (($use_subscriptions && !isset($_POST['_use_subscriptions'])) || |
| | |
| | | { |
| | | $rcmail = rcmail::get_instance(); |
| | | $user = $rcmail->user; |
| | | $identity = $user->get_identity(); |
| | | |
| | | $table = new html_table(array('cols' => 2, 'cellpadding' => 3)); |
| | | |
| | |
| | | $table->add('title', rcube::Q($this->gettext('lastlogin'))); |
| | | $table->add('', rcube::Q($user->data['last_login'])); |
| | | |
| | | $identity = $user->get_identity(); |
| | | $table->add('title', rcube::Q($this->gettext('defaultidentity'))); |
| | | $table->add('', rcube::Q($identity['name'] . ' <' . $identity['email'] . '>')); |
| | | |
| | | return html::tag('h4', null, rcube::Q('Infos for ' . $user->get_username())) . $table->show(); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | $zip->close(); |
| | | |
| | | $filename = ($message->subject ? $message->subject : 'roundcube') . '.zip'; |
| | | $filename = ($message->subject ?: 'roundcube') . '.zip'; |
| | | $this->_deliver_zipfile($tmpfname, $filename); |
| | | |
| | | // delete temporary files from disk |
| | |
| | | $subject = $this->_convert_filename($subject); |
| | | $subject = substr($subject, 0, 16); |
| | | |
| | | $disp_name = ($subject ? $subject : 'message_rfc822') . ".eml"; |
| | | $disp_name = ($subject ?: 'message_rfc822') . ".eml"; |
| | | $disp_name = $path . $uid . "_" . $disp_name; |
| | | |
| | | $tmpfn = tempnam($temp_dir, 'zipmessage'); |