예제 #1
0
 public function process()
 {
     // Grant access only to site admin
     if (!UserManager::instance()->getCurrentUser()->isSuperUser()) {
         header('Location: ' . get_server_url());
     }
     include_once 'FullTextSearch/Controller/Search.class.php';
     $request = HTTPRequest::instance();
     $controller = new FullTextSearch_Controller_Search($request, $this->getSearchClient());
     switch ($request->get('func')) {
         case 'search':
             $controller->search();
             break;
         default:
             $controller->index();
     }
 }