<<O>> Difference Topic VisualConfirmPlugin (r1.5 - 03 Jan 2006 - KoenMartens?) |
Line: 1 136 to 1 136 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Line: 139 to 140 | ||||||||
Added: | ||||||||
> > |
| |||||||
Line: 145 to 146 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
|
<<O>> Difference Topic VisualConfirmPlugin (r1.4 - 10 Oct 2005 - KoenMartens?) |
Line: 1 138 to 1 139 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
|
<<O>> Difference Topic VisualConfirmPlugin (r1.3 - 09 Oct 2005 - KoenMartens?) |
Line: 1 4 to 1 4 | |||||||||
---|---|---|---|---|---|---|---|---|---|
Changed: | |||||||||
< < |
Plugin for visual confirmation of new user registration. | ||||||||
> > |
Plugin for visual confirmation of new user registration, to prevent automated scripts to create users and spam your wiki with their url's to get a better google ranking. | ||||||||
Line: 16 to 16 | |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
Line: 28 to 28 | |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
Line: 42 to 47 | |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
Line: 44 to 52 | |||||||||
Added: | |||||||||
> > |
<Directory "/path/to/twiki/pub/visualconfirm/db"> deny from all </Directory>
| ||||||||
Line: 46 to 67 | |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
<tr> <td valign="top" align="right"><IMG SRC="%VISUALCONFIRMURL%">: <br /> (..) </td> <td><input type="hidden" name="Twk1VisualConfirmHash" value="%VISUALCONFIRMHASH%"> <input type="text" name="Twk1VisualConfirm" size="5"></td> </tr>
Manually patching the register binaryFind the line inbin/register that says:
# everything OKInsert the code below directly BEFORE that line: # check valid visual confirmation for( $x = 0; $x < $formLen; $x++ ) { $vcHash=$formDataValue[$x] unless(not($formDataName[$x] eq "Visual Confirm Hash")); $vcTxt=$formDataValue[$x] unless(not($formDataName[$x] eq "Visual Confirm")); } open(LOCKFILE,">".&TWiki::getPubDir()."/visualconfirm/db/hashes.lock"); flock(LOCKFILE,2); dbmopen(%database, &TWiki::getPubDir()."/visualconfirm/db/hashes" ,0644); if(!defined($database{$vcHash})) { $url = &TWiki::getOopsUrl( $webName, $topic, "oopsregvisualconfirm", "The visual confirmation has expired."); TWiki::redirect( $query, $url ); return; } my ($time,$txt)=split(',',$database{$vcHash}); if(not(lc($txt) eq lc($vcTxt))) { $url = &TWiki::getOopsUrl( $webName, $topic, "oopsregvisualconfirm", "The character string you entered for visual confirmation is incorrect."); TWiki::redirect( $query, $url ); return; } dbmclose(%database); close(LOCKFILE); Further Development
| ||||||||
Line: 67 to 152 | |||||||||
Changed: | |||||||||
< < |
-- KoenMartens? - 07 Oct 2005 | ||||||||
> > |
-- TWiki:Main.KoenMartens - 07 Oct 2005 |
<<O>> Difference Topic VisualConfirmPlugin (r1.2 - 08 Oct 2005 - KoenMartens?) |
Line: 1 29 to 1 29 | ||||||||
---|---|---|---|---|---|---|---|---|
Changed: | ||||||||
< < |
| |||||||
> > |
|
<<O>> Difference Topic VisualConfirmPlugin (r1.1 - 07 Oct 2005 - KoenMartens?) |
Line: 1 to 1 | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | |||||||||||||||||||||||||||||||||||
> > |
VisualConfirmPluginPlugin for visual confirmation of new user registration.Syntax Rules
Examples
Plugin SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>% , i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
Plugin Info
|
Topic VisualConfirmPlugin . { View | Diffs | r1.5 | > | r1.4 | > | r1.3 | More } output as: { } |
Revision r1.1 - 07 Oct 2005 - 17:05 - KoenMartens? Revision r1.5 - 03 Jan 2006 - 22:07 - KoenMartens? |