* */ require_once ("config.php"); require_once ("base.php"); require_once ("author.php"); require_once ("serie.php"); require_once ("tag.php"); require_once ("customcolumn.php"); require_once ("book.php"); // If we detect that an OPDS reader try to connect try to redirect to feed.php if (preg_match("/(MantanoReader|FBReader|Stanza|Aldiko|Moon+ Reader)/", $_SERVER['HTTP_USER_AGENT'])) { header("location: feed.php"); exit (); } $withToolbar = false; if (!isset($_COOKIE['toolbar'])) $withToolbar = true; header ("Content-Type:application/xhtml+xml;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 (); /* Test to see if pages are opened on an Eink screen * test Kindle, Kobo Touch and Sony PRS-T1 Ereader. * HTTP_USER_AGENT = "Mozilla/5.0 (Linux; U; en-us; EBRD1101; EXT) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" */ if (preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) { $isEink = 1; } else { $isEink = 0; } ?> <?php echo htmlspecialchars ($currentPage->title) ?> " media="screen" /> " media="screen" />
" alt="Settings and menu" />

title) ?>

>
" />
containsBook ()) { ?>
<?php echo localize (" />
entryArray as $entry) { if (get_class ($entry) != "EntryBook") { ?>
title) ?>
content) ?>
linkArray as $link) { if ($link->type != Link::OPDS_NAVIGATION_TYPE) { continue; } ?> nav
book->hasCover) { ?> <?php echo localize(" />
book->getDataFormat ($format)) { $i++; ?>
title) ?> book->getPubDate() != "") { ?> (book->getPubDate() ?>) book->getRating () ?>
book->getAuthorsName ()) ?>
book->getTagsName ()) ?>
book->getSerie (); if (!is_null ($serie)) { ?>
name) . " (" . $entry->book->seriesIndex . ")" ?>
isPaginated ()) { ?>
" alt="" />

n . " / " . $currentPage->getMaxPage () . " " ?>

" alt="" />