trashbin/include/functions.inc.php

13 lines
290 B
PHP

<?
// generates a hash for an user
function mkhash() {
//$hash = getenv('HTTP_USER_AGENT');
//$hash .= getenv('REMOTE_ADDR').time().rand(1,9);
//return md5($hash);
return substr(time(),-6,3).preg_replace('/([ ])/e', 'chr(rand(97,122))', ' ').substr(time(),-3);
}
?>