Re-enable autocomplete attribute for login form (#1485211)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2008/07/14 (thomasb) |
| | | ---------- |
| | | - Re-enable autocomplete attribute for login form (#1485211) |
| | | |
| | | 2008/06/30 (alec) |
| | | ---------- |
| | | - Added flag column on messages list (#1484623) |
| | |
| | | { |
| | | protected $tagname; |
| | | protected $attrib = array(); |
| | | protected $allowed; |
| | | protected $allowed = array(); |
| | | protected $content; |
| | | |
| | | public static $common_attrib = array('id','class','style','title','align'); |
| | |
| | | */ |
| | | public function show() |
| | | { |
| | | return self::tag($this->tagname, $this->attrib, $this->content, $this->allowed); |
| | | return self::tag($this->tagname, $this->attrib, $this->content, array_merge(self::$common_attrib, $this->allowed)); |
| | | } |
| | | |
| | | /****** STATIC METHODS *******/ |
| | |
| | | { |
| | | protected $tagname = 'input'; |
| | | protected $type = 'text'; |
| | | protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked'); |
| | | |
| | | public function __construct($attrib = array()) |
| | | { |
| | |
| | | class html_textarea extends html |
| | | { |
| | | protected $tagname = 'textarea'; |
| | | protected $allowed_attrib = array('name','rows','cols','wrap','tabindex'); |
| | | protected $allowed = array('name','rows','cols','wrap','tabindex'); |
| | | |
| | | /** |
| | | * Get HTML code for this object |
| | |
| | | $value = Q($value, 'strict', false); |
| | | } |
| | | |
| | | return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed_attrib)); |
| | | return self::tag($this->tagname, $this->attrib, $value, array_merge(self::$common_attrib, $this->allowed)); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | $_SESSION['temp'] = true; |
| | | |
| | | $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30, 'autocomplete' => 'off')); |
| | | $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30)); |
| | | $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30) + $attrib); |
| | | $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30) + $attrib); |
| | | $input_action = new html_hiddenfield(array('name' => '_action', 'value' => 'login')); |
| | | $input_host = null; |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | else if (!strlen($default_host)) { |
| | | else if (empty($default_host)) { |
| | | $input_host = new html_inputfield(array('name' => '_host', 'id' => 'rcmloginhost', 'size' => 30)); |
| | | } |
| | | |
| | |
| | | $table = new html_table(array('cols' => 2)); |
| | | |
| | | $table->add('title', html::label('rcmloginuser', Q(rcube_label('username')))); |
| | | $table->add(null, $input_user->show(get_input_value('_user', RCUVE_INPUT_POST))); |
| | | $table->add(null, $input_user->show(get_input_value('_user', RCUBE_INPUT_POST))); |
| | | |
| | | $table->add('title', html::label('rcmloginpwd', Q(rcube_label('password')))); |
| | | $table->add(null, $input_pass->show()); |
| | |
| | | // add host selection row |
| | | if (is_object($input_host)) { |
| | | $table->add('title', html::label('rcmloginhost', Q(rcube_label('server')))); |
| | | $table->add(null, $input_host->show(get_input_value('_host', RCUVE_INPUT_POST))); |
| | | $table->add(null, $input_host->show(get_input_value('_host', RCUBE_INPUT_POST))); |
| | | } |
| | | |
| | | $out = $input_action->show(); |
| | |
| | | <div class="boxcontent"> |
| | | |
| | | <form name="form" action="./" method="post"> |
| | | <roundcube:object name="loginform" form="form" /> |
| | | <roundcube:object name="loginform" form="form" autocomplete="off" /> |
| | | |
| | | <p style="text-align:center;"><input type="submit" class="button" value="<roundcube:label name='login' />" /></p> |
| | | |