# Blosxom Plugin: uniqueid # Author: David Williams # Version: 20040814 # http://www.kayakero.net/prof/blosxom/ # License: Public Domain # This just gives you a unique id to use for a new filename (or whatever) # to make wikieditish easier to use for a new entry. # It generates an id based on now and # the process id to be pretty sure it's unique. # I use this link for a new entry: # Add new entry (owner only) # $uniqueid::uniqueid is the unique value package uniqueid; sub start { return 1; } my $now = time(); my $pid = $$; $uniqueid = $now . $pid; 1;