Joomla
Extensions
SecurityImages
Migration SecurityImages 4.X to SecurityImages 5.X how toSecurityImages 5.X is only running with Joomla! 1.5 and the redesign of API has introduced some incompatibilities.
Developers/Hackers/Individuals who want to use the latest version of SecurityImages may want to read the
following. Basic PHP knowledge is recommended.
with SecurityImages 4.0.X |
In your PHP code displaying the form, can be a Pat template or a html code 1. Include my library in page scope if (file_exist($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php')) { <?php include ($mosConfig_absolute_path.'/administrator/components/com_securityimages/client.php'); ?>} $packageName = 'securityChooseUniqueKeyName';2. At the position where You want the Captcha image to be inserted <?php echo insertSecurityImage($packageName); ?> 3. This insert the help text and the input box where the user will have to enter his text <?php echo getSecurityImageText($packageName); ?> Line at point 3. can be, in some case, depending how much space You have in the presentation HTML layer, replace with //will be replace at runtime, depending on user locale //with "Please Enter what You see:" <?php echo getSecurityImageTextHeader(); ?> //will be replace at run time, depending on user locale with //"If You do not see ...Hit reload" <?php echo getSecurityImageTextHelp(); ?> //will be replace at run time with the input box <?php echo getSecurityImageField($packageName); ?> The code above insert the image, and the text, You page normally submit information to the server for processing. Most of the time, the last 2 lines are inserted in a <form> </form> HTML tags In the server code where you process the data... if (file_exist($mosConfig_absolute_path.'/administrator/components/com_securityimages/server.php')) { include ($mosConfig_absolute_path.'/administrator/components/com_securityimages/server.php');} $packageName = 'securityChooseUniqueKeyName';$security_refid = mosGetParam( $_POST, $packageName.'_refid', '' ); $security_try = mosGetParam( $_POST, $packageName.'_try', '' ); $security_reload = mosGetParam( $_POST, $packageName.'_reload', '' ); $checkSecurity = checkSecurityImage($security_refid, $security_try);
|
Post your questions in the forums or enhance the WIKI with your finding. I will start to maintain more and more the WIKI and put
good documentation there.
Privacy Statement | Copyright Notice | Licenses
© 1999-2012 Waltercedric.com. Designed by Cédric Walter. Sitemap
Reproduction without explicit permission is prohibited. All Rights Reserved.
Disclaimer: The editor(s) reserve the right to edit any comments that are found to be abusive, offensive, contain profanity, serves as spam, is largely self-promotional, or displaying attempts to harbour irrelevant text links for any purpose.