diff --git a/README.md b/README.md index 7d3f2ae..0fa0aec 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Changelog * Themes! Configure a different theme in config/stikked.php - or create your own * Multilanguage support. Configure a different language in config/stikked.php * Diff view for paste replies! View differences between the original paste and its reply + * see it in action: http://paste.scratchbook.ch/view/de81a093/diff * Possibility to set default expiration time * Updated GeSHi to version 1.0.8.11 * Updated CodeMirror to version 3.11 diff --git a/htdocs/application/controllers/main.php b/htdocs/application/controllers/main.php index aa9ff43..aa0136d 100644 --- a/htdocs/application/controllers/main.php +++ b/htdocs/application/controllers/main.php @@ -712,7 +712,7 @@ class Main extends CI_Controller $this->form_validation->set_message('_autofill_check', lang('robot')); //check - return !$this->input->post('email'); + return (!$this->input->post('email') && !$this->input->post('url')); } function _valid_authentication() diff --git a/htdocs/themes/default/css/main.css b/htdocs/themes/default/css/main.css index cb5d03b..8666e92 100644 --- a/htdocs/themes/default/css/main.css +++ b/htdocs/themes/default/css/main.css @@ -164,7 +164,7 @@ h4 { margin-bottom: 10px; } -.hidden { +.hidden, .email, .url { display: none; } diff --git a/htdocs/themes/default/views/defaults/paste_form.php b/htdocs/themes/default/views/defaults/paste_form.php index 8a3d401..f6fbdc3 100644 --- a/htdocs/themes/default/views/defaults/paste_form.php +++ b/htdocs/themes/default/views/defaults/paste_form.php @@ -121,7 +121,9 @@ 'email', 'hidden' => 'hidden'); + $set = array('name' => 'email', 'class' => 'email'); + echo form_input($set); + $set = array('name' => 'url', 'class' => 'url'); echo form_input($set); ?>