lang.ajax.php 398 B

12345678910111213141516171819202122
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Responses to AJAX calls.
  5. */
  6. require_once __DIR__.'/../global.inc.php';
  7. api_protect_course_script(true);
  8. $action = $_REQUEST['a'];
  9. switch ($action) {
  10. case 'translate_html':
  11. header('Content-type: application/x-javascript');
  12. echo api_get_language_translate_html();
  13. break;
  14. default:
  15. echo '';
  16. }
  17. exit;