Changeset 1653
- Timestamp:
- 05/26/2007 04:08:45 AM (20 months ago)
- Files:
-
- 1 modified
-
trunk/plugins/CommentCloser.jplug.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/CommentCloser.jplug.php
r1652 r1653 3 3 * @name: CommentCloser <jeenaparadies.net/projects/jlog/> 4 4 * @author: Robert Bienert <robertbienert@gmx.net> 5 * @version: 1.0 6 * @date: 2007-05-2 55 * @version: 1.0.1 6 * @date: 2007-05-26 7 7 * 8 8 * Dieses Plugin schliesst nach einer bestimmten, festzulegenden … … 50 50 "LIFETIME', $lifeTime);\n"); 51 51 @fwrite($f, 'define(\'COMMENT_CLOSER_'. 52 "TIMEUNIT', $timeUnit);\n");52 "TIMEUNIT', '$timeUnit');\n"); 53 53 @fwrite($f, '?>'); 54 54 @fclose($f); … … 58 58 } 59 59 60 # TODO Zeiteinheit selektieren 60 61 return <<<EOT 61 62 <form action="$self" method="post"> … … 87 88 } 88 89 89 $q = new Query('UPDATE kolumne_content SET comments=0 ' . 90 $q = new Query('UPDATE ' . JLOG_DB_PREFIX . 91 'content SET comments=0 ' . 90 92 'WHERE date < DATE_SUB(NOW(), INTERVAL ' . 91 COMMENT_CLOSER_LIFETIME . 93 COMMENT_CLOSER_LIFETIME . ' ' . 92 94 COMMENT_CLOSER_TIMEUNIT . 93 95 ') AND comments=1');
