From d4feb77eaf204ae37f60067e7f083b44338cba89 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Sat, 29 Sep 2012 14:45:22 +0200 Subject: Remove unused search code --- search/index.php | 51 ---------------------------------------------- search/templates/index.php | 17 ---------------- 2 files changed, 68 deletions(-) delete mode 100644 search/index.php delete mode 100644 search/templates/index.php (limited to 'search') diff --git a/search/index.php b/search/index.php deleted file mode 100644 index 9c515ff3dd3..00000000000 --- a/search/index.php +++ /dev/null @@ -1,51 +0,0 @@ -. -* -*/ - - -// Init owncloud -require_once '../lib/base.php'; - -// Check if we are a user -OC_Util::checkLoggedIn(); - -// Load the files we need -OC_Util::addStyle( 'search', 'search' ); - -$query=(isset($_POST['query']))?$_POST['query']:''; -if($query) { - $results=OC_Search::search($query); -}else{ - OC_Util::redirectToDefaultPage(); -} - -$resultTypes=array(); -foreach($results as $result) { - if(!isset($resultTypes[$result->type])) { - $resultTypes[$result->type]=array(); - } - $resultTypes[$result->type][]=$result; -} - -$tmpl = new OC_Template( 'search', 'index', 'user' ); -$tmpl->assign('resultTypes', $resultTypes); -$tmpl->printPage(); diff --git a/search/templates/index.php b/search/templates/index.php deleted file mode 100644 index 7241553e7fc..00000000000 --- a/search/templates/index.php +++ /dev/null @@ -1,17 +0,0 @@ - -- cgit v1.2.3