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.
It gives you every time its defined and every time its used by default, thats awesome.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
then you click on the function, and it shows it to you:
I just figured that this would be great for joomla usersfunction 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;
}![]()
Last edited by phpforfun; 07-15-2008 at 10:30 AM.
Checkout my new forum! http://adminreference.com/
Well how do you know that PHP Cross Reference of Joomla, by the way i already knew that but it is nice to here same thing from another . thanks for sharing.
Not bad, thanks. For Joomla 1.5 you can use the developer network: Joomla! Developer Network
You do realize that Joomla 1.0.x has announced the EOL in July (Check out my blog)?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks