Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
change.php File Reference

Go to the source code of this file.

Functions

if(!function_exists("__")) _md5cr ($pass, $salt="")
 Hashe un mot de passe en clair en MD5 avec un salt aléatoire.

Variables

 $link

Function Documentation

if (!function_exists("__")) _md5cr (   $pass,
  $salt = "" 
)

Hashe un mot de passe en clair en MD5 avec un salt aléatoire.

Parameters
string$passMot de passe à crypter (max 32 caractères)
Returns
string Retourne le mot de passe crypté private

Definition at line 20 of file change.php.

References $i.

{
if (!$salt) {
$chars="./0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
for ($i=0;$i<12;$i++) {
$salt.=substr($chars,(mt_rand(0,strlen($chars))),1);
}
$salt="$1$".$salt;
}
return crypt($pass,$salt);
}
$link=mysql_connect(
ALTERNC_CHANGEPASS_MYSQL_HOST,
ALTERNC_CHANGEPASS_MYSQL_USER,
ALTERNC_CHANGEPASS_MYSQL_PASSWORD
);
if ($link) {
mysql_select_db(ALTERNC_CHANGEPASS_MYSQL_DB);
} else {

Variable Documentation

$link
Initial value:
mysql_connect(
ALTERNC_CHANGEPASS_MYSQL_HOST,
ALTERNC_CHANGEPASS_MYSQL_USER,
ALTERNC_CHANGEPASS_MYSQL_PASSWORD
)

Definition at line 31 of file change.php.

Referenced by m_mem\ChangeMail1().