Changeset 442
- Timestamp:
- Jun 25, 2004, 10:31:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_category.inc.php
r437 r442 556 556 $page['cat_nb_images'] = 0; 557 557 $page['title'] = $lang['calendar']; 558 if ( isset( $_GET['year'])559 and preg_match( '/^\d+$/', $_GET['year'] ))558 if (isset($_GET['year']) 559 and preg_match('/^\d+$/', $_GET['year'])) 560 560 { 561 561 $page['calendar_year'] = (int)$_GET['year']; 562 562 } 563 if ( isset( $_GET['month'])564 and preg_match( '/^(\d+)\.(\d{2})$/', $_GET['month'], $matches ))563 if (isset($_GET['month']) 564 and preg_match('/^(\d+)\.(\d{2})$/', $_GET['month'], $matches)) 565 565 { 566 566 $page['calendar_year'] = (int)$matches[1]; 567 567 $page['calendar_month'] = (int)$matches[2]; 568 568 } 569 if ( isset( $page['calendar_year'] ) 570 or isset( $page['calendar_month'] ) ) 569 if (isset($_GET['day']) 570 and preg_match('/^(\d+)\.(\d{2})\.(\d{2})$/', 571 $_GET['day'], 572 $matches)) 573 { 574 $page['calendar_year'] = (int)$matches[1]; 575 $page['calendar_month'] = (int)$matches[2]; 576 $page['calendar_day'] = (int)$matches[3]; 577 } 578 if (isset($page['calendar_year'])) 571 579 { 572 580 $page['title'] .= ' ('; 573 if ( isset( $page['calendar_month'] ) ) 581 if (isset($page['calendar_day'])) 582 { 583 $unixdate = mktime(0,0,0, 584 $page['calendar_month'], 585 $page['calendar_day'], 586 $page['calendar_year']); 587 $page['title'].= $lang['day'][date("w", $unixdate)]; 588 $page['title'].= ' '.$page['calendar_day'].', '; 589 } 590 if (isset($page['calendar_month'])) 574 591 { 575 592 $page['title'] .= $lang['month'][$page['calendar_month']].' '; … … 578 595 $page['title'] .= ')'; 579 596 } 580 if ( isset( $forbidden ))581 { 582 $page['where'] = ' 597 if (isset($forbidden)) 598 { 599 $page['where'] = 'WHERE '.$forbidden; 583 600 } 584 601 else 585 602 { 586 $page['where'] = ' 587 } 588 } 589 590 if ( 603 $page['where'] = 'WHERE 1=1'; 604 } 605 } 606 607 if (isset($query)) 591 608 { 592 609 $result = mysql_query( $query );
Note: See TracChangeset
for help on using the changeset viewer.