| | |
| | | |
| | | foreach (array('Check environment', 'Create config', 'Test config') as $i => $item) { |
| | | $j = $i + 1; |
| | | $link = ($RCI->step >= $j || $RCI->configured) ? '<a href="./index.php?_step='.$j.'">' . Q($item) . '</a>' : Q($item); |
| | | $link = ($RCI->step >= $j || $RCI->configured) ? '<a href="./index.php?_step='.$j.'">' . rcube::Q($item) . '</a>' : rcube::Q($item); |
| | | printf('<li class="step%d%s">%s</li>', $j+1, $RCI->step > $j ? ' passed' : ($RCI->step == $j ? ' current' : ''), $link); |
| | | } |
| | | ?> |
| | |
| | | |
| | | if (isset($_POST['imaptest']) && !empty($_POST['_host']) && !empty($_POST['_user'])) { |
| | | |
| | | echo '<p>Connecting to ' . Q($_POST['_host']) . '...<br />'; |
| | | echo '<p>Connecting to ' . rcube::Q($_POST['_host']) . '...<br />'; |
| | | |
| | | $imap_host = trim($_POST['_host']); |
| | | $imap_port = $RCI->getprop('default_port'); |
| | |
| | | $archive_type->add($this->gettext('archivetypefolder'), 'folder'); |
| | | |
| | | $args['blocks']['archive'] = array( |
| | | 'name' => Q($this->gettext('settingstitle')), |
| | | 'name' => rcube::Q($this->gettext('settingstitle')), |
| | | 'options' => array('archive_type' => array( |
| | | 'title' => $this->gettext('archivetype'), |
| | | 'content' => $archive_type->show($rcmail->config->get('archive_type')) |
| | |
| | | $mout .= '<div id="rule_date_header_div' .$id. '" class="adv"'. ($rule['test'] != 'date' ? ' style="display:none"' : '') .'>'; |
| | | $mout .= '<span class="label">' . rcube::Q($this->plugin->gettext('dateheader')) . '</span>'; |
| | | $mout .= '<input type="text" name="_rule_date_header[]" id="rule_date_header'.$id |
| | | . '" value="'. Q($rule['test'] == 'date' ? $rule['header'] : '') |
| | | . '" value="'. rcube::Q($rule['test'] == 'date' ? $rule['header'] : '') |
| | | . '" size="15"' . $this->error_class($id, 'test', 'dateheader', 'rule_date_header') .' />'; |
| | | $mout .= '</div>'; |
| | | } |
| | |
| | | $out .= '<span class="label">'. rcube::Q($this->plugin->gettext('vacationreason')) .'</span><br />' |
| | | .'<textarea name="_action_reason['.$id.']" id="action_reason' .$id. '" ' |
| | | .'rows="3" cols="35" '. $this->error_class($id, 'action', 'reason', 'action_reason') . '>' |
| | | . Q($action['reason'], 'strict', false) . "</textarea>\n"; |
| | | . rcube::Q($action['reason'], 'strict', false) . "</textarea>\n"; |
| | | $out .= '<br /><span class="label">' .rcube::Q($this->plugin->gettext('vacationsubject')) . '</span><br />' |
| | | .'<input type="text" name="_action_subject['.$id.']" id="action_subject'.$id.'" ' |
| | | .'value="' . (is_array($action['subject']) ? rcube::Q(implode(', ', $action['subject']), 'strict', false) : $action['subject']) . '" size="35" ' |
| | |
| | | */ |
| | | function pass($name, $message = '') |
| | | { |
| | | echo Q($name) . ': <span class="success">OK</span>'; |
| | | echo rcube::Q($name) . ': <span class="success">OK</span>'; |
| | | $this->_showhint($message); |
| | | } |
| | | |
| | |
| | | $this->failures++; |
| | | } |
| | | |
| | | echo Q($name) . ': <span class="fail">NOT OK</span>'; |
| | | echo rcube::Q($name) . ': <span class="fail">NOT OK</span>'; |
| | | $this->_showhint($message, $url); |
| | | } |
| | | |
| | |
| | | */ |
| | | function optfail($name, $message = '', $url = '') |
| | | { |
| | | echo Q($name) . ': <span class="na">NOT OK</span>'; |
| | | echo rcube::Q($name) . ': <span class="na">NOT OK</span>'; |
| | | $this->_showhint($message, $url); |
| | | } |
| | | |
| | |
| | | */ |
| | | function na($name, $message = '', $url = '') |
| | | { |
| | | echo Q($name) . ': <span class="na">NOT AVAILABLE</span>'; |
| | | echo rcube::Q($name) . ': <span class="na">NOT AVAILABLE</span>'; |
| | | $this->_showhint($message, $url); |
| | | } |
| | | |
| | | |
| | | function _showhint($message, $url = '') |
| | | { |
| | | $hint = Q($message); |
| | | $hint = rcube::Q($message); |
| | | |
| | | if ($url) |
| | | $hint .= ($hint ? '; ' : '') . 'See <a href="' . Q($url) . '" target="_blank">' . Q($url) . '</a>'; |
| | | $hint .= ($hint ? '; ' : '') . 'See <a href="' . rcube::Q($url) . '" target="_blank">' . rcube::Q($url) . '</a>'; |
| | | |
| | | if ($hint) |
| | | echo '<span class="indent">(' . $hint . ')</span>'; |