PHPXRef 0.7 : Joomla 1.0.15 DE : /
Ever use joomla and try to edit the script and find a function you need to define but cant find it? I did, I couldnt find how to define 'mosmakepassword()'. So I googled it, found this site, thought id give it a shot.. It said this.
Quote:
Function and Method Cross Reference
mosmakepassword()
Defined at:
* /installation/common.php -> line 47
* /includes/joomla.php -> line 4141
Referenced 16 times:
* /administrator/components/com_users/admin.users.php -> line 312
* /administrator/components/com_users/admin.users.php -> line 314
* /administrator/components/com_users/admin.users.php -> line 320
* /administrator/components/com_users/admin.users.php -> line 335
* /includes/joomla.php -> line 1077
* /includes/joomla.php -> line 6138
* /components/com_user/user.php -> line 124
* /administrator/index.php -> line 89
* /installation/install3.php -> line 196
* /components/com_registration/registration.php -> line 80
* /components/com_registration/registration.php -> line 88
* /components/com_registration/registration.php -> line 148
* /components/com_registration/registration.php -> line 159
* /CHANGELOG.php -> line 491
* /installation/install4.php -> line 201
* /installation/install4.php -> line 226
|
It gives you every time its defined and every time its used by default, thats awesome.
then you click on the function, and it shows it to you:
Quote:
function mosMakePassword($length) {
$salt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW XYZ0123456789";
$len = strlen($salt);
$makepass="";
mt_srand(10000000*(double)microtime());
for ($i = 0; $i < $length; $i++)
$makepass .= $salt[mt_rand(0,$len - 1)];
return $makepass;
}
|
I just figured that this would be great for joomla users
