index.php 558 B

12345678910111213141516171819
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * This file includes lp_list_search to avoid duplication of code, it
  5. * bootstraps chamilo api enough to make lp_list_search work.
  6. * @package chamilo.search
  7. */
  8. require_once __DIR__.'/../inc/global.inc.php';
  9. $this_section = SECTION_COURSES;
  10. if (extension_loaded('xapian')) {
  11. require '../lp/lp_list_search.php';
  12. } else {
  13. Display::display_header(get_lang('Search'));
  14. echo Display::return_message(get_lang('SearchXapianModuleNotInstalled'), 'error');
  15. Display::display_footer();
  16. exit;
  17. }