timeline.ajax.php 406 B

12345678910111213141516171819
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once '../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. /*echo '<pre>';
  11. echo json_encode($items);
  12. echo '</pre>';
  13. var_dump($items);*/
  14. break;
  15. }