cvs: phpweb / cal.php
| From: | Gabor Hojtsy | Date: | Wed, 31 Dec 2003 13:04:29 +0000 |
| Subject: | cvs: phpweb / cal.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-22774@lists.php.net to get a copy of this message | ||
goba Wed Dec 31 08:04:29 2003 EDT
Modified files:
/phpweb cal.php
Log:
allow a year ahead to be displayed
Index: phpweb/cal.php
diff -u phpweb/cal.php:1.46 phpweb/cal.php:1.47
--- phpweb/cal.php:1.46 Sat Aug 16 08:32:02 2003
+++ phpweb/cal.php Wed Dec 31 08:04:27 2003
@@ -1,5 +1,5 @@
<?php
-// $Id: cal.php,v 1.46 2003/08/16 12:32:02 goba Exp $
+// $Id: cal.php,v 1.47 2003/12/31 13:04:27 goba Exp $
$_SERVER['BASE_PAGE'] = 'cal.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
@@ -361,8 +361,8 @@
// Get current year and compare to one sent in
$current_year = date("Y");
- // We only allow this year for displays
- if ($year != $current_year) {
+ // We only allow this and the next year for displays
+ if ($year != $current_year && $year != $current_year+1) {
return FALSE;
}