hotspot.inc.php 633 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Hotspot languae conversion.
  5. *
  6. * @package chamilo.exercise
  7. */
  8. /**
  9. * Code.
  10. */
  11. session_cache_limiter('none');
  12. $language_file = 'hotspot';
  13. require_once __DIR__.'/../inc/global.inc.php';
  14. header('Content-Type: text/html; charset=UTF-8');
  15. $file = file(api_get_path(SYS_LANG_PATH).'english/hotspot.inc.php');
  16. foreach ($file as &$value) {
  17. $variable = explode('=', $value, 2);
  18. if (count($variable) > 1) {
  19. $variable = substr(trim($variable[0]), 1);
  20. $variable = '&'.$variable.'='.api_utf8_encode(get_lang($variable)).' ';
  21. echo $variable;
  22. }
  23. }