|
Page 1 of 2 SecurityImages 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. Architecture SecurityImages 4.0.X - Only work with Joomla! 1.0.X
- Provide 2 files that 3rd party code must include:
- client.php in order to quickly create a captcha and the input box
- server.php in order to validate user entries and check correctness
- Everything is packed in one component.
- Patches for common 3rd party tool are included in code so it ca be referenced by external extensions :
akobook, akocomment, joomla to name a few. - You have to overwrite Joomla! files to add protection of form for login, register, lost password, contact
SecurityImages 5.0.X - Only work with Joomla! 1.5.X
- Use the event handling mechanism of Joomla! 1.5 to create captcha and check correctness
- You'll have to install a system content plugin and a component,
- it do not contains any patches anymore
- You have to overwrite Joomla! files to add protection of form for login, register, lost password, contact
Main differences in securityImages 5.X - There is no client.php and server.php file anymore
- API are a lot simpler, and dependency are reduced (no PHP code to include) as it use events.
- More object oriented
- Image creation is done inside the Joomla! framework while in 4.0.X it was done without any Joomla!
framework support.
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... Few lines are required...
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);
If the has entered the right text then $checkSecurity = true
|
Related Posts
-
Just in case I take too much time to deliver a ready to use download, duration 5 minutes, but you need to understand basic php coding Create a temporary directory c:\patch Copy an existing patch distribution, under a new name For example, lets download Joomla_1.5.13-Stable-Full_PackageForSecurityImages5.1.x_v01.01.00.zip into c:\patch\ 395 days ago
-
Only for SecurityImages 5.1.x and Joomla! 1.5.13 Allow login views, login modules, register, lost password, lost user account and contact section to be protected by SecurityImages Are for Joomla! 1.5.13 only and SecurityImages 5.1.x or later 14 files has been altered, mostly views, and com_contact/com_user controller, click on picture 405 days ago
-
Only for SecurityImages 5.1.x and Joomla! 1.5.12 Allow login views, login modules, register, lost password, lost user account and contact section to be protected by SecurityImages Are for Joomla! 1.5.12 only and SecurityImages 5.1.x or later 14 files has been altered, mostly views, and com_contact/com_user controller, click on picture 427 days ago
-
This version should improve installations on some host, where the plugin securityimages.php did not always install properly. The reason behind is that I did add falsely an additional file index.html in plugin.zip. This may lead to permissions issues during installation. SecurityImages 5.1.2 do not contains any other changes, so If you’re happil 427 days ago
-
The Joomla! community is pleased to announce the immediate availability of Joomla! 1.5.11 Since Joomla 1.5.11 is released...Here are the new patches for SecurityImages 5.1.1 AND Joomla! 1.5.11 Allow login views, login modules, register, lost password, lost user account and contact section to be protected by SecurityImages Are for J 458 days ago
-
The Joomla! community is pleased to announce the immediate availability of Joomla! 1.5.10 Since Joomla 1.5.10 is released...Here are the new patches for SecurityImages 5.1.1 Allow login views, login modules, register, lost password, lost user account and contact section to be protected by SecurityImages Are for Joomla! 1.5.10 only 524 days ago
-
Following the Preview of SecurityImages 5.2.0, I am currently developing a proof of concept using the Ajax library JQUERY jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write Jav 570 days ago
-
Some people have reported issue in the forum I've found the error in my code in some views but not all: img src="/<?php echo JURI :: root() ?>/index.php? as a result, there is in image URL a double / which cause issues on some web host (no image displayed) I now provide a new patches versions for Joomla! 1.5.8 and 1.5.9 that 592 days ago
-
The Joomla! community is pleased to announce the immediate availability of Joomla! 1.5.9 Since Joomla 1.5.9 is released...Here are the new patches for SecurityImages 5.1.0 Allow login views, login modules, register, lost password, lost user account and contact section to be protected by SecurityImages Are for Joomla! 1.5.9 only 599 days ago
-
An insight at securityimages 5.2.0 still in development, as usual, all comments are welcome either in this post or in my forum NEW: fonts are now auto detected, and a better widget is now available for selecting them, sorry still no font preview in php ;-) You can install your own true type fonts at /administrator/components/com_securityimages 640 days ago
relatedArticles
|