Blame view

frontend/web/js/widget-carousel/HOME_SLIDER/examples/dynamic_flickr_feed.php 330 Bytes
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <?php
  
  header('Content-type: application/json; charset: utf-'.'8');
  //header('Cache-Control: must-revalidate');
  
  $url = 'http://api.flickr.com/services/feeds/photos_public.gne?format=json&nojsoncallback=1';
  
  if (!empty($_REQUEST['tags'])) {
      $url .= '&tags=' . urlencode($_REQUEST['tags']);
  }
  
  echo file_get_contents($url);
  
  ?>