[evolvis-commits] r18421: php54 pending merges:↵ Thorsten Glaser 2012-05-21 repeat after me: PHP is not shell scripting↵ /* … */ are comments, not #

mirabilos at evolvis.org mirabilos at evolvis.org
Mon May 21 11:53:41 CEST 2012


Author: mirabilos
Date: 2012-05-21 11:53:40 +0200 (Mon, 21 May 2012)
New Revision: 18421

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/cronjobs/project_cleanup.php
Log:
php54 pending merges:
  Thorsten Glaser 2012-05-21 repeat after me: PHP is not shell scripting
/* … */ are comments, not #

Modified: trunk/gforge_base/evolvisforge-5.1/src/cronjobs/project_cleanup.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/cronjobs/project_cleanup.php	2012-05-21 09:53:36 UTC (rev 18420)
+++ trunk/gforge_base/evolvisforge-5.1/src/cronjobs/project_cleanup.php	2012-05-21 09:53:40 UTC (rev 18421)
@@ -81,25 +81,25 @@
 			$then));
 $err .= db_error();
 
-#30 days ago for sessions
+/* 30 days ago for sessions */
 $then=(time()-(30*60*60*24));
 db_query_params ('DELETE FROM user_session WHERE time < $1',
 			array ($then));
 $err .= db_error();
 
-#one month ago for preferences
+/* one month ago for preferences */
 $then=(time()-604800*4);
 db_query_params ('DELETE FROM user_preferences WHERE set_date < $1',
 			array ($then));
 $err .= db_error();
 
-#3 weeks ago for jobs
+/* 3 weeks ago for jobs */
 $then=(time()-604800*3);
 db_query_params ('UPDATE people_job SET status_id = 3 where post_date < $1',
 			array ($then));
 $err .= db_error();
 
-#1 day ago for form keys
+/* 1 day ago for form keys */
 $then=(time()-(60*60*24));
 db_query_params ('DELETE FROM form_keys WHERE creation_date < $1',
 			array ($then));
@@ -117,5 +117,3 @@
 }
 
 cron_entry(7,$err);
-
-?>



More information about the evolvis-commits mailing list