hotspot.inc.php 593 B

12345678910111213141516171819202122232425262728
  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. }