init.php 627 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Shibboleth;
  3. /**
  4. * Initialize the Shibboleth authentication system. All scripts that can be directly
  5. * called must include this file
  6. *
  7. * @license see /license.txt
  8. * @author Laurent Opprecht <laurent@opprecht.info>, Nicolas Rod for the University of Geneva
  9. */
  10. $__dir = __DIR__.'/';
  11. $no_redirection = true; //no redirection in global.
  12. include_once($__dir . '/../../inc/global.inc.php');
  13. require_once $__dir . 'config.php';
  14. if (api_get_setting('server_type') == 'test')
  15. {
  16. include_once $__dir . '/test/shibboleth_test_helper.class.php';
  17. include_once $__dir . '/test/shibboleth_test.class.php';
  18. }