compilatio_ajax.php 491 B

1234567891011121314151617
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once '../../inc/global.inc.php';
  4. if (isset($_GET['workid'])) {
  5. $workIdList = $_GET['workid']; // list of workid separate by the :
  6. $result = '';
  7. $tabWorkId = explode('a', $workIdList);
  8. $compilatio = new Compilatio();
  9. for ($i = 0; $i < count($tabWorkId); $i++) {
  10. if (is_numeric($tabWorkId[$i])) {
  11. $result .= $compilatio->giveWorkIdState($tabWorkId[$i]);
  12. }
  13. }
  14. echo $result;
  15. }