aboutsummaryrefslogtreecommitdiff
path: root/r7r_repo/main.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-01-06 01:40:17 +0100
committerKevin Chabowski <kevin@kch42.de>2012-01-06 01:40:17 +0100
commit9f0dc74fc89f89fed7e10dd027d14830cb97e7e2 (patch)
treec2e15dd0d2da362681fcea29cf85b2112fa74221 /r7r_repo/main.php
parentfca7d3ce3e20e6c89c798cb71a5260680e7fc1b4 (diff)
downloadr7r-repo-9f0dc74fc89f89fed7e10dd027d14830cb97e7e2.tar.gz
r7r-repo-9f0dc74fc89f89fed7e10dd027d14830cb97e7e2.tar.bz2
r7r-repo-9f0dc74fc89f89fed7e10dd027d14830cb97e7e2.zip
search implemented.
Diffstat (limited to 'r7r_repo/main.php')
-rw-r--r--r7r_repo/main.php6
1 files changed, 6 insertions, 0 deletions
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;