a509e3389d
Uses pushState / popState to keep browser history correct and allow using back in the browser.
31 lines
902 B
PHP
31 lines
902 B
PHP
<?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>
|
|
*
|
|
*/
|
|
|
|
require_once ("config.php");
|
|
require_once ("base.php");
|
|
require_once ("author.php");
|
|
require_once ("serie.php");
|
|
require_once ("tag.php");
|
|
require_once ("language.php");
|
|
require_once ("customcolumn.php");
|
|
require_once ("book.php");
|
|
|
|
header ("Content-Type:application/json;charset=utf-8");
|
|
$page = getURLParam ("page", Base::PAGE_INDEX);
|
|
$query = getURLParam ("query");
|
|
$qid = getURLParam ("id");
|
|
$n = getURLParam ("n", "1");
|
|
$database = GetUrlParam (DB);
|
|
|
|
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
|
$currentPage->InitializeContent ();
|
|
|
|
echo json_encode ($currentPage->getContentArray ());
|
|
|
|
?>
|