Changeset 1009 for trunk/search.php


Ignore:
Timestamp:
Jan 20, 2006, 3:39:31 PM (18 years ago)
Author:
plg
Message:

Code cleaning (deletion of previously commented code)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/search.php

    r1008 r1009  
    8282  if (!empty($_POST['start_year']))
    8383  {
    84 //     $year = $_POST['start_year'];
    85 //     $month = $_POST['start_month'] != 0 ? $_POST['start_month'] : '01';
    86 //     $day = $_POST['start_day'] != 0 ? $_POST['start_day'] : '01';
    87 //     $date = $year.'-'.$month.'-'.$day;
    88    
    89 //     $search['fields'][$type_date.'-after']['words'] = array($date);
    90 //     $search['fields'][$type_date.'-after']['mode'] = 'inc';
    91 
    9284    $search['fields'][$type_date.'-after'] = array(
    9385      'date' => join(
     
    10597  if (!empty($_POST['end_year']))
    10698  {
    107 //     $year = $_POST['end_year'];
    108 //     $month = $_POST['end_month'] != 0 ? $_POST['end_month'] : '12';
    109 //     $day = $_POST['end_day'] != 0 ? $_POST['end_day'] : '31';
    110 //     $date = $year.'-'.$month.'-'.$day;
    111    
    11299    $search['fields'][$type_date.'-before'] = array(
    113100      'date' => join(
     
    128115    $search['mode'] = 'AND';
    129116
    130 //     echo '<pre>';
    131 //     print_r($_POST);
    132 //     echo '</pre>';
    133 
    134 //     echo '<pre>';
    135 //     print_r($search);
    136 //     echo '</pre>';
    137    
    138117    // register search rules in database, then they will be available on
    139118    // thumbnails page and picture page.
Note: See TracChangeset for help on using the changeset viewer.