index.php 661 B

1234567891011121314151617181920212223
  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. /**
  9. * Code
  10. */
  11. $language_file = array('admin');
  12. require_once '../inc/global.inc.php';
  13. $this_section = SECTION_COURSES;
  14. if (extension_loaded('xapian')) {
  15. //api_block_anonymous_users(); // only users who are logged in can proceed
  16. require '../newscorm/lp_list_search.php';
  17. } else {
  18. Display::display_header(get_lang('Search'));
  19. Display::display_error_message(get_lang('SearchXapianModuleNotInstalled'));
  20. Display::display_footer();
  21. exit;
  22. }