Joined: Jun 23, 2005 Posts: 582 Location: United States
Posted: Thu Oct 04, 2007 8:47 pm Post subject: Feedback Module Security Code if STATEMENT
Greetings all, have completed adding CAPTCHA to Feedback module. A wee bit of a pain in the neck. Only issues now is adding if statement for CAPTCHA system off or on and getting script to validate security code. Here is the code thus far...
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2007 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Based on Feedback Addon 1.0 */
/* Copyright (c) 2001 by Jack Kozbial (jack@internetintl.com) */
/* http://www.InternetIntl.com */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
Understandbly, FB updated Feedback form layout with release of 8.o. Much more effecient, just don't know how to add if statement in code. Was easier with ECHO form_block coding, but now is in this format.
Code:
$form_block = " ";
And, adding this line to form layout, gives the dreaded WSOD!
Code:
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
if (extension_loaded("gd") AND $gfx_chk != 0 ) {
The file depository is now updated with changes made. I have updated download for 8.1.0.3.4.1 as well.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum