Let admins create certificates that are needed to be
able to create a new user.
main work class: libs/class_mint.php
Configuration happens in site_conf.ini
change the password used for hmac_sha1 there.
also the maximum age of a certificate.
a python script is added to delete all expired
certificates from the database, run it once every month
or something.
There is no nifty interface yet for the creation of
certificates by admins, login as admin and click on
"Certificates" in the Administrator box.
You will see a valid certificate, press reload to
create more.
html templates etc should be made to give this a better
look, also add frontend options to validate existing
certificates and possibly deposit them too (in case you
accidently email it to the user without payment).
class_mint.php uses mhash for sha1 and hmac_sha1,
should be available on most systems.
in the dc.sql database is the table definition added
for the table "certificates", probably all kind of
postgresql smarts are missing.
PLEASE check this patch very carefully, release 100
test-monkeys on it, etc.
patch against distributedcity-0.98.1027297042