From 9f0dc74fc89f89fed7e10dd027d14830cb97e7e2 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Fri, 6 Jan 2012 01:40:17 +0100 Subject: search implemented. --- r7r_repo/main.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'r7r_repo/main.php') diff --git a/r7r_repo/main.php b/r7r_repo/main.php index 6f69cbe..d2497f0 100644 --- a/r7r_repo/main.php +++ b/r7r_repo/main.php @@ -513,6 +513,12 @@ $url_handlers = array( echo package_list($my_packages, "My Packages"); }, + "search" => function(&$data, $url_now, &$url_next) + { + $url_next = array(); + $search_result = Package::search($_POST["searchterm"]); + echo package_list($search_result, "Search Result"); + }, "setup" => function(&$data, $url_now, &$url_next) { global $settings, $ste; -- cgit v1.2.3-70-g09d2