Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] Testers needed...

Quote Reply
Re: [Paul] Testers needed... In reply to
In Reply To:
How does your plugin know what letters are contained in the image?

Putting it simply, the plugin adds a new table to the database. That table contains two fields. 'SessionID' and 'SessionRand'. SessionID is a timestamp (which should, in theory be totally unique), and then SessionRand holds the value of the string.

The date is then hidden in a variable, which is passed along to the PRE hook. The PRE hook then looks up in the database for a session ID the same as what was submitted, and see's if the string is the same. If it is, the submission is accepted. If not, they are returned to the add page, with an error.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Testers needed... Andy 4744 May 27, 2003, 9:29 AM
Thread Re: [Andy] Testers needed...
Paul 4648 May 27, 2003, 9:39 AM
Thread Re: [Paul] Testers needed...
webslicer 4626 May 27, 2003, 1:13 PM
Thread Re: [webslicer] Testers needed...
Paul 4619 May 27, 2003, 2:36 PM
Post Re: [Paul] Testers needed...
webslicer 4622 May 27, 2003, 2:55 PM
Post Re: [Paul] Testers needed...
Andy 4617 May 28, 2003, 1:16 AM
Thread Re: [Andy] Testers needed...
DogTags 4598 May 28, 2003, 4:36 AM
Post Re: [DogTags] Testers needed...
Andy 4612 May 28, 2003, 4:40 AM
Thread Re: [DogTags] Testers needed...
Andy 4605 May 28, 2003, 6:24 AM
Thread Re: [Andy] Testers needed...
pugdog 4561 May 28, 2003, 9:29 AM
Thread Re: [pugdog] Testers needed...
Andy 4555 May 28, 2003, 1:57 PM
Post Re: [Andy] Testers needed...
Andy 4569 May 30, 2003, 1:27 AM
Post Re: [Andy] Testers needed...
Paul 4565 May 28, 2003, 9:32 AM
Post Re: [Andy] Testers needed...
DogTags 4575 May 28, 2003, 9:39 AM