cops/getJSON.php

18 lines
372 B
PHP
Raw Permalink Normal View History

2013-12-05 11:50:53 +02:00
<?php
/**
* COPS (Calibre OPDS PHP Server) HTML main script
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Sébastien Lucas <sebastien@slucas.fr>
*
*/
2013-12-05 11:52:51 +02:00
2013-12-05 11:50:53 +02:00
require_once ("config.php");
require_once ("JSON_renderer.php");
2013-12-05 11:52:51 +02:00
2013-12-05 11:50:53 +02:00
header ("Content-Type:application/json;charset=utf-8");
2013-12-05 11:52:51 +02:00
echo json_encode (JSONRenderer::getJson ());
2013-12-05 11:50:53 +02:00