Subject: CAcert Code Development list.
List archive
- From: Michael Tänzer <michael.taenzer AT cacert.org>
- To: "critical-admin AT cacert.org" <critical-admin AT cacert.org>
- Cc: cacert-devel AT lists.cacert.org, Benny Baumann <benbe AT cacert.org>, Marcus Mängel <inopiae AT cacert.org>, Eva Stöwe <eva.stoewe AT cacert.org>
- Subject: Patch request: Bug #1045
- Date: Wed, 20 Nov 2013 15:35:20 +0100
- Openpgp: id=9940BEF1
Hi folks,
We have a fix for https://bugs.cacert.org/view.php?id=1045
"Review the code regarding the new point calculation in
./scripts/cron/removedead.php"
The fix was reviewed by Benny Baumann (BenBE) and me (NEOatNHNG).
Testing was not possible as it only touched dead code.
Diff is attached.
Changed files:
scripts/cron/removedead.php
--
Have a nice day,
Michael Tänzer
diff --git a/scripts/cron/removedead.php b/scripts/cron/removedead.php index 2257dc8..f473788 100755 --- a/scripts/cron/removedead.php +++ b/scripts/cron/removedead.php @@ -20,7 +20,7 @@ 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); @@ -47,6 +47,9 @@ (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(`created`)) >= 21600"; mysql_query($query); +// the folloing part is presently not used as there is no running programme that uses temporary increase +// in case that there is a new one the procedure needs a rework regarding the point claculation +/* $query = "select * from `notary` where `expire`!=0 and `expire`<NOW()"; $res = mysql_query($query); while($row = mysql_fetch_assoc($res)) @@ -84,4 +87,5 @@ mysql_query($query); fix_assurer_flag($row[to]); } +*/ ?>
Attachment:
signature.asc
Description: OpenPGP digital signature
- Patch request: Bug #1045, Michael Tänzer, 11/20/2013
- Re: Patch request: Bug #1045, Wytze van der Raay, 11/20/2013
Archive powered by MHonArc 2.6.18.