1
0

searchKeywordContent.php 713 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaCore UNA Core
  7. * @{
  8. */
  9. require_once('./inc/header.inc.php');
  10. require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
  11. if (bx_get('keyword')){
  12. bx_import('BxDolLanguages');
  13. $sClass = bx_get_search_class_name();
  14. $o = new $sClass(bx_get('section'));
  15. $o->setLiveSearch(bx_get('live_search') ? 1 : 0);
  16. $o->setMetaType(bx_process_input(bx_get('type')));
  17. $o->setCategoryObject(bx_process_input(bx_get('cat')));
  18. $s = $o->response();
  19. if (!$s)
  20. $s = $o->getEmptyResult();
  21. header('Content-type: text/html; charset=utf-8');
  22. echo $s;
  23. }
  24. /** @} */