Changeset 24421 for extensions/UserCollections/include/functions.inc.php
- Timestamp:
- Sep 11, 2013, 6:44:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/include/functions.inc.php
r23551 r24421 20 20 return (bool)preg_match($regex, $mail_address); 21 21 } 22 } 23 24 function get_random_key($length=32) 25 { 26 $chars = '0123456789abcdefabcdef'; 27 for ($s=''; strlen($s)<$length; ) 28 { 29 $s.= $chars[rand(0, strlen($chars) - 1)]; 30 } 31 return $s; 22 32 } 23 33
Note: See TracChangeset
for help on using the changeset viewer.