From 6ab5e21605fee7b48e3dcb940d04729dcb613f6a Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 20 Jan 2006 14:39:31 +0000 Subject: Code cleaning (deletion of previously commented code) git-svn-id: http://piwigo.org/svn/trunk@1009 68402e56-0260-453c-a942-63ccdbb3a9ee --- search.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'search.php') diff --git a/search.php b/search.php index a61526d7b..6567f3fa8 100644 --- a/search.php +++ b/search.php @@ -81,14 +81,6 @@ if (isset($_POST['submit'])) if (!empty($_POST['start_year'])) { -// $year = $_POST['start_year']; -// $month = $_POST['start_month'] != 0 ? $_POST['start_month'] : '01'; -// $day = $_POST['start_day'] != 0 ? $_POST['start_day'] : '01'; -// $date = $year.'-'.$month.'-'.$day; - -// $search['fields'][$type_date.'-after']['words'] = array($date); -// $search['fields'][$type_date.'-after']['mode'] = 'inc'; - $search['fields'][$type_date.'-after'] = array( 'date' => join( '-', @@ -104,11 +96,6 @@ if (isset($_POST['submit'])) if (!empty($_POST['end_year'])) { -// $year = $_POST['end_year']; -// $month = $_POST['end_month'] != 0 ? $_POST['end_month'] : '12'; -// $day = $_POST['end_day'] != 0 ? $_POST['end_day'] : '31'; -// $date = $year.'-'.$month.'-'.$day; - $search['fields'][$type_date.'-before'] = array( 'date' => join( '-', @@ -127,14 +114,6 @@ if (isset($_POST['submit'])) // default search mode : each clause must be respected $search['mode'] = 'AND'; -// echo '
';
-//     print_r($_POST);
-//     echo '
'; - -// echo '
';
-//     print_r($search);
-//     echo '
'; - // register search rules in database, then they will be available on // thumbnails page and picture page. $query =' -- cgit v1.2.3