cvs: pearweb /cron trackback-cleanup.php

From: Date: Tue, 07 Feb 2006 18:11:12 +0000
Subject: cvs: pearweb /cron trackback-cleanup.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-38036@lists.php.net to get a copy of this message
mj Tue Feb 7 18:11:12 2006 UTC Modified files: /pearweb/cron trackback-cleanup.php Log: * Comment and CS cleanup. http://cvs.php.net/viewcvs.cgi/pearweb/cron/trackback-cleanup.php?r1=1.1&r2=1.2&diff_format=u Index: pearweb/cron/trackback-cleanup.php diff -u pearweb/cron/trackback-cleanup.php:1.1 pearweb/cron/trackback-cleanup.php:1.2 --- pearweb/cron/trackback-cleanup.php:1.1 Tue Feb 7 07:51:45 2006 +++ pearweb/cron/trackback-cleanup.php Tue Feb 7 18:11:11 2006 @@ -1,15 +1,13 @@ <?php - /** - * Automated cleanup of trackbacks that have not been approved within a certain - * timespan. + * Automated deletion of TrackBack pings that have not been approved + * within a certain time span. * * @category pearweb - * @package PEPr * @author Tobias Schlitt <toby@php.net> - * @copyright Copyright (c) 1997-2005 The PHP Group + * @copyright Copyright (c) 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: trackback-cleanup.php,v 1.1 2006/02/07 07:51:45 toby Exp $ + * @version $Id: trackback-cleanup.php,v 1.2 2006/02/07 18:11:11 mj Exp $ */ ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR @@ -35,7 +33,7 @@ ); $dbh =& DB::connect(PEAR_DATABASE_DSN, $options); if (DB::isError($dbh)) { - die ("Failed to connect: $dsn\n"); + die("Failed to connect: $dsn\n"); } $sql = 'DELETE FROM trackbacks WHERE timestamp <= '.(time() - TRACKBACK_PURGE_TIME).' AND approved = "false"'; @@ -43,5 +41,3 @@ if (PEAR::isError($res = $dbh->query($sql))) { die("SQL <$sql> returned error: <{$res->getMessage()}>.\n"); } - -?>

« previous php.pear.cvs (#38036) next »