check_anti_spam
Usage: bool check_anti_spam (string session_id, string keycode )
Purpose: Checks user is running a valid session.
Availability: IPB SDK 1.5
Purpose: Checks user is running a valid session.
Availability: IPB SDK 1.5
Returns true if keycode (user-submitted 6-char keycode) and session_id (anti-spam session id) match a valid entry in the anti-spam table.
The keycode for an entry can be generated to appear in an image, by making use of the anti_spam_image_html function.
// Check user is running valid session
// - $keycode is user-submitted keycode
// - $session_id is current session id
if($SDK->check_anti_spam($keycode,$session_id)) {
// User is authentic...
echo 'Hooray... you aren\'t a bot!';
}
// - $keycode is user-submitted keycode
// - $session_id is current session id
if($SDK->check_anti_spam($keycode,$session_id)) {
// User is authentic...
echo 'Hooray... you aren\'t a bot!';
}
See also: register_anti_spam, anti_spam_image_html
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 08:04:43 -0700
Find the latest version at http://ipbsdk.sourceforge.net
There are currently no user contributed notes for this page.