<?php

$id = $_REQUEST['id'];

$id = trim( $id );
$id = substr( $id , 0 , 69 );

$if = "json/{$id}.json";

if( !file_exists( $if )) $if = "json/default.json";

$data = file_get_contents( $if );

header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json; charset=utf-8');

echo $data;

?>