Install security images form code in existing Joomla code...

point A Open components\com_registration\registration.html.php line 54 in function registerForm($option, $useractivation)
  <tr>
<td>
<?php echo _PROMPT_EMAIL; ?>
</td>
<td>
<input type="text" name="confirmEmail" class="inputbox" size="40" />
</td>
</tr>


<?php
//security image by www.waltercedric.com
global $mosConfig_absolute_path;
if (file_exists($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.lostPassForm.php')) {
require_once($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.lostPassForm.php');
}
//end security image by www.waltercedric.com
?>


<tr>
<td colspan="2">
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="sendNewPass" /> <input type="submit" class="button" value="<?php echo _BUTTON_SEND_PASS; ?>" />
</td>
</tr>
point B Open components\com_registration\registration.html.at line 164 in function registerForm($option, $useractivation)
  <tr>
<td>
<?php echo _REGISTER_VPASS; ?> *
</td>
<td>
<input class="inputbox" type="password" name="password2" size="40" value="" />
</td>
</tr>

<?php
//security image by www.waltercedric.com
global $mosConfig_absolute_path;
if (file_exists($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.html.registerForm.php')) {
require_once($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.html.registerForm.php');
}
//end security image by www.waltercedric.com
?>

<tr>
<td colspan="2">
</td>
</tr>
point C  

 

Install security images checking code in existing Joomla code...

Point 1 Open \components\com_registration\registration.php after line 61 add what is in bold below
  $checkusername = mosGetParam( $_POST, 'checkusername', '' );
$checkusername = $database->getEscaped( $checkusername );
$confirmEmail = mosGetParam( $_POST, 'confirmEmail', '');
$confirmEmail = $database->getEscaped( $confirmEmail );

//securityimages by www.waltercedric.com
global $mosConfig_absolute_path;
if (file_exists($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.SendNewPass.php')) {
include_once($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.SendNewPass.php');
}
//end security images by www.waltercedric.com


$query = "SELECT id"
Point 2 Open \components\com_registration\registration.php after line 123 (123 is after added the point 1)
  function saveRegistration( $option ) {
global $acl;
$database = & JFactory::getDBO(); global $mosConfig_sitename, $mosConfig_live_site, $mosConfig_useractivation, $mosConfig_allowUserRegistration;
global $mosConfig_mailfrom, $mosConfig_fromname, $mosConfig_mailfrom, $mosConfig_fromname;

if ($mosConfig_allowUserRegistration=='0') {
mosNotAuth();
return;
}

//securityimages by www.waltercedric.com
global $mosConfig_absolute_path;
if (file_exists($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.SaveRegistration.php')) {
include_once($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/registration.SaveRegistration.php');
}
//end security images by www.waltercedric.com

$row = new mosUser( $database );

if (!$row->bind( $_POST, 'usertype' )) {
echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
exit();
}
Point 3 Open includes\joomla.php after line 610
  $passwd = md5( $passwd );
$bypost = 1;
}
$remember = mosGetParam( $_POST, 'remember', '' );


//securityimages by www.waltercedric.com
global $mosConfig_absolute_path;
if (file_exists($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/joomla.login.php')) {
include_once($mosConfig_absolute_path.'/administrator/components/com_securityimages/patches/joomla.login.php');
}
//end security images by www.waltercedric.com


if (!$username || !$passwd) {
echo "<script> alert(\""._LOGIN_INCOMPLETE."\&quote; window.history.go(-1); </script>\n";
exit();
} else {

   

 

Comments