hotspot.inc.php 593 B

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