getting encrypted password from database

Robert Mann robmann at gp-racing.com
Tue Jun 5 08:51:31 CDT 2007


Opps the delmagic is a function

<?php
function delmagic( $value )
{
    // this function removes backslashes ig magic_quotes_gpc is on
    if( get_magic_quotes_gpc() ) return stripslashes( $value );
    else return $value;
}
?>

Example
<?php
$text = "\'test\'tester1\\delmagic";
$var = delmagic($text);
// $var will now equal 'test'tester1\delmagic
?>


-----Original Message-----
From: valentina-bounces at lists.macserve.net
[mailto:valentina-bounces at lists.macserve.net] On Behalf Of Robert Mann
Sent: Tuesday, June 05, 2007 9:14 AM
To: valentina at lists.macserve.net; use-revolution at lists.runrev.com
Subject: getting encrypted password from database

In my mysql database the users password is encrypted, to check and make sure
the password is correct when they login to my web site I use the following

 

$login_passwd = md5(addslashes(delmagic($_POST["login_passwd"])));

 

Can I do the same thing with the Valentina database in my standalone? 

 

Thanks

Rob 

_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list