<?php
// Generates a code string
function
GenerateCodeString
(
$strKey
=
""
)
{
return
strtoupper
(
sha1
(
$strKey
.
mktime
(
)
*
rand
(
1
,
1000
)
)
)
;
}
?>