aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2006-01-20 14:39:31 +0000
committerplegall <plg@piwigo.org>2006-01-20 14:39:31 +0000
commit6ab5e21605fee7b48e3dcb940d04729dcb613f6a (patch)
tree43ddf64d962a231f14106ddeea05b5053f9a869d
parent7b2ff328cb31b60e52ab90102d519966258917a1 (diff)
Code cleaning (deletion of previously commented code)
git-svn-id: http://piwigo.org/svn/trunk@1009 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--search.php21
1 files changed, 0 insertions, 21 deletions
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 '<pre>';
-// print_r($_POST);
-// echo '</pre>';
-
-// echo '<pre>';
-// print_r($search);
-// echo '</pre>';
-
// register search rules in database, then they will be available on
// thumbnails page and picture page.
$query ='