Change the way format are handled in HTML catalog.

More work remaining to make it clean
This commit is contained in:
Sébastien Lucas 2012-06-24 08:16:47 +02:00
parent 9a8e9bacae
commit 06ce256e55
4 changed files with 36 additions and 12 deletions

View file

@ -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)
{