Adsense

Update joomla password


$plaintext=$_POST['password'];
function getCryptedPassword($plaintext, $salt = '', $encryption = 'md5-hex', $show_encrypt = false)
{

// Get the salt to use.
$salt = JUserHelper::getSalt($encryption, $salt, $plaintext);
$encrypted = ($salt) ? md5($plaintext.$salt) : md5($plaintext);
return ($show_encrypt) ? '{MD5}'.$encrypted : $encrypted;      
} // END getCryptedPassword
$password = getCryptedPassword($_POST['password'], $salt= '', $encryption= 'md5-hex', $show_encrypt=false);
echo $password;

1 comment:

  1. Joomla is one of the most powerful CMS for developing small and medium scale websites.
    joomla developer

    ReplyDelete

comment here

newest questions on wordpress