search by post date

This commit is contained in:
Shish 2008-12-31 12:41:57 -08:00
parent 9908a617b3
commit 1e5b2ac6aa

View file

@ -107,6 +107,10 @@ class Index implements Extension {
$filename = strtolower($matches[2]);
$event->add_querylet(new Querylet("images.filename LIKE '%$filename%'"));
}
else if(preg_match("/posted=(([0-9\*]*)?(-[0-9\*]*)?(-[0-9\*]*)?)/",$term,$matches)) {
$val = str_replace("*", "%", $matches[1]);
$img_search->append(new Querylet("images.posted LIKE '%$val%'"));
}
}
}
}