better spamtrap

This commit is contained in:
Claude 2013-04-29 15:18:23 +02:00
parent 1b09e513b4
commit a34275283a
4 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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()

View File

@ -164,7 +164,7 @@ h4 {
margin-bottom: 10px;
}
.hidden {
.hidden, .email, .url {
display: none;
}

View File

@ -121,7 +121,9 @@
<?php } ?>
<?php
$set = array('name' => 'email', 'hidden' => 'hidden');
$set = array('name' => 'email', 'class' => 'email');
echo form_input($set);
$set = array('name' => 'url', 'class' => 'url');
echo form_input($set);
?>