enuk

function keygen()


    
    function keygen()
    {
        $chars = "abcdefghijklmnopqrstuvwxyz";
        $chars .= "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        $chars .= "0123456789";
        while (1) {
            $key = '';
            srand((double) microtime() * 1000000);
            for ($i = 0; $i < 5; $i++) {
                $key .= substr($chars, (rand() % (strlen($chars))), 1);
            }
            break;
        }
        return $key;
    }