cvs: php-master-web /entry user-note.php

From: Date: Sun, 18 May 2003 23:14:24 +0000
Subject: cvs: php-master-web /entry user-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17795@lists.php.net to get a copy of this message
alindeman Sun May 18 19:14:24 2003 EDT Modified files: /php-master-web/entry user-note.php Log: maybe that was better Index: php-master-web/entry/user-note.php diff -u php-master-web/entry/user-note.php:1.14 php-master-web/entry/user-note.php:1.15 --- php-master-web/entry/user-note.php:1.14 Sun May 18 14:25:53 2003 +++ php-master-web/entry/user-note.php Sun May 18 19:14:23 2003 @@ -23,7 +23,7 @@ flow of notes usually submitted. This prevents a large flood of notes from coming in. */ -$query = 'SELECT COUNT(*) FROM note WHERE ts >= (NOW() - 60)'; +$query = 'SELECT COUNT(*) FROM note WHERE ts >= (NOW() - INTERVAL 1 MINUTE)'; $result = @mysql_query ($query); if (!$result) { @@ -41,7 +41,8 @@ //the amount of allowed notes mail ('alindeman@php.net', 'Note quota exceeded', - 'Too many notes submitted in one minute. Consider increasing quota', + 'Too many notes submitted in one minute. Consider increasing quota + Occured at '.date ('M d, Y g:i:s A'), 'From: webmaster@php.net' ); die ('[TOO MANY NOTES]');

« previous php.mirrors (#17795) next »