kennyt Sun Jul 18 14:04:54 2004 EDT
Modified files: /phpdoc/scripts notes_stats.php Log: simplified regex; changed 'then' to comparative 'than' http://cvs.php.net/diff.php/phpdoc/scripts/notes_stats.php?r1=1.3&r2=1.4&ty=u Index: phpdoc/scripts/notes_stats.php diff -u phpdoc/scripts/notes_stats.php:1.3 phpdoc/scripts/notes_stats.php:1.4 --- phpdoc/scripts/notes_stats.php:1.3 Tue Jun 29 11:02:28 2004 +++ phpdoc/scripts/notes_stats.php Sun Jul 18 14:04:54 2004 @@ -17,7 +17,7 @@ | Vincent Gevers <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: notes_stats.php,v 1.3 2004/06/29 15:02:28 vincent Exp $ + $Id: notes_stats.php,v 1.4 2004/07/18 18:04:54 kennyt Exp $ */ /* @@ -71,7 +71,7 @@ * note ID moved from SECTION to SECTION by EDITOR (not matched yet) */ -$reg = '/^note (\d*) (.*) (?:from|in) ([^ ]*) by ([a-z]*)/'; +$reg = '/^note (\d*) (.*) (?:from|in) (\S*) by (\w*)/'; if (preg_match($reg, $subj, $d)) { if ($d[2] == 'rejected and deleted') @@ -128,7 +128,7 @@ <table border='0' cellspacing="10"><tr valign="top"><td valign="top"> <table border='1'> <tr> - <td colspan="5" align="center">Editors Stats with more then <?php echo $minact; ?> actions</td> + <td colspan="5" align="center">Editors Stats with more than <?php echo $minact; ?> actions</td> </tr> <tr> <td>user</td> @@ -165,7 +165,7 @@ </table> </td><td valign="top"> -Last half year (with more then <?php echo $minact; ?> actions counted) +Last half year (with more than <?php echo $minact; ?> actions counted) <table border='1'> <tr> <td colspan="5" align="center">Recent Editors stats</td> @@ -204,7 +204,7 @@ </table> <br /> -Before the last half year (with more then <?php echo $minact; ?> actions counted) +Before the last half year (with more than <?php echo $minact; ?> actions counted) <table border='1'> <tr> <td colspan="5" align="center">Older Editors Stats</td> @@ -407,4 +407,4 @@ } -?> \ No newline at end of file +?>