diff options
author | INOPIAE <inopiae@cacert.org> | 2012-12-13 07:31:10 +0100 |
---|---|---|
committer | INOPIAE <inopiae@cacert.org> | 2012-12-13 07:31:10 +0100 |
commit | 774b4d67682dd4793dad0b438791ca23f684c03c (patch) | |
tree | 6a32020007469e4c12941778f8ed20a5d1cb3c58 /scripts | |
parent | 7baaa9a0ac611329539a43031ca3d0e81bba2b5f (diff) | |
download | cacert-devel-774b4d67682dd4793dad0b438791ca23f684c03c.tar.gz cacert-devel-774b4d67682dd4793dad0b438791ca23f684c03c.tar.xz cacert-devel-774b4d67682dd4793dad0b438791ca23f684c03c.zip |
bug 1121: introduced 4 new function into includes/notary.inc.php to process the cca recording, added the write_user_agreement to www/index.php and www/wot.php, added delete_user_agreement to the cron/removedead.php
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/cron/removedead.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/cron/removedead.php b/scripts/cron/removedead.php index aadda81..2257dc8 100755 --- a/scripts/cron/removedead.php +++ b/scripts/cron/removedead.php @@ -19,7 +19,8 @@ require_once(dirname(__FILE__).'/../../includes/mysql.php'); require_once(dirname(__FILE__).'/../../includes/lib/l10n.php'); - + require_once(dirname(__FILE__).'/../../includes/notary.inc.php'); + $query = "select * from `users` where `users`.`verified`=0 and (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`users`.`created`)) >= 172800"; $res = mysql_query($query); @@ -27,6 +28,7 @@ { mysql_query("delete from `email` where `memid`='".$row['id']."'"); mysql_query("delete from `users` where `id`='".$row['id']."'"); + delete_user_agreement($row['id']); } $query = "delete from `domains` where `hash`!='' and |