Change the way format are handled in HTML catalog.
More work remaining to make it clean
This commit is contained in:
parent
9a8e9bacae
commit
06ce256e55
4 changed files with 36 additions and 12 deletions
11
fetch.php
11
fetch.php
|
@ -14,10 +14,17 @@
|
|||
header("Pragma: public");
|
||||
header("Cache-Control: maxage=".$expires);
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
|
||||
$bookId = $_GET["id"];
|
||||
$book = Book::getBookById($bookId);
|
||||
$bookId = getURLParam ("id", NULL);
|
||||
$type = getURLParam ("type", "jpg");
|
||||
$idData = getURLParam ("data", NULL);
|
||||
if (is_null ($bookId))
|
||||
{
|
||||
$book = Book::getBookByDataId($idData);
|
||||
}
|
||||
else
|
||||
{
|
||||
$book = Book::getBookById($bookId);
|
||||
}
|
||||
|
||||
switch ($type)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue