timeline.ajax.php 313 B

12345678910111213141516
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once __DIR__.'/../global.inc.php';
  4. $timeline = new Timeline();
  5. $action = $_GET['a'];
  6. switch ($action) {
  7. case 'get_timeline_content':
  8. $items = $timeline->get_timeline_content($_GET['id']);
  9. echo json_encode($items);
  10. break;
  11. }