compilatio_ajax.php 490 B

12345678910111213141516171819
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once '../../inc/global.inc.php';
  4. api_protect_course_script();
  5. if (isset($_GET['workid'])) {
  6. $workIdList = $_GET['workid']; // list of workid separate by the :
  7. $workList = explode('a', $workIdList);
  8. $compilatio = new Compilatio();
  9. $result = '';
  10. foreach ($workList as $workId) {
  11. if (!empty($workId)) {
  12. $result .= $compilatio->giveWorkIdState($workId);
  13. }
  14. }
  15. echo $result;
  16. }