diff --git a/ext/index/main.php b/ext/index/main.php index 3494edef..a35d0a9d 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -30,8 +30,8 @@ * *
Search items can be combined to search for images which match both, @@ -226,9 +226,10 @@ class Index extends 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\*]*)?)$/", $event->term, $matches)) { - $val = str_replace("*", "%", $matches[1]); - $event->add_querylet(new Querylet('images.posted LIKE "%'.$val.'%"')); + else if(preg_match("/^posted(<|>|<=|>=|=)([0-9-]*)$/", $event->term, $matches)) { + $cmp = $matches[1]; + $val = $matches[2]; + $event->add_querylet(new Querylet("images.posted $cmp :val", array("val"=>$val))); } else if(preg_match("/^size(<|>|<=|>=|=)(\d+)x(\d+)$/", $event->term, $matches)) { $cmp = $matches[1]; diff --git a/favicon.png b/favicon.png new file mode 100644 index 00000000..397cf6ff Binary files /dev/null and b/favicon.png differ diff --git a/favicon_64.png b/favicon_64.png new file mode 100644 index 00000000..5844fec9 Binary files /dev/null and b/favicon_64.png differ diff --git a/index.php b/index.php index 0a9438d2..8fff3a58 100644 --- a/index.php +++ b/index.php @@ -63,7 +63,7 @@ require_once "lib/context.php"; if(CONTEXT) { ctx_set_log(CONTEXT); } -ctx_log_start($_SERVER["REQUEST_URI"], true, true); +ctx_log_start(@$_SERVER["REQUEST_URI"], true, true); if(COVERAGE) { _start_coverage(); register_shutdown_function("_end_coverage");