diff --git a/base.php b/base.php index 654af50..dbf8d55 100644 --- a/base.php +++ b/base.php @@ -413,7 +413,8 @@ class PageBookDetail extends Page { public function InitializeContent () { - $this->title = "Book"; + $book = Book::getBookById ($this->idGet); + $this->title = $book->title; } } diff --git a/book.php b/book.php index 2e6112a..20e4dda 100644 --- a/book.php +++ b/book.php @@ -89,6 +89,19 @@ class Book extends Base { return self::ALL_BOOKS_ID.":letter:".$startingLetter; } + public function getUri () { + return "?page=".parent::PAGE_BOOK_DETAIL."&id=$this->id"; + } + + public function getDetailUrl () { + global $config; + if ($config['cops_use_fancyapps'] == 0) { + return 'index.php' . $this->getUri (); + } else { + return 'bookdetail.php?id=' . $this->id; + } + } + public function getTitle () { return $this->title; } diff --git a/bookdetail.php b/bookdetail.php index ff55374..1edd2f3 100644 --- a/bookdetail.php +++ b/bookdetail.php @@ -23,7 +23,7 @@ $book->getLinkArray (); hasCover) { ?> - cover + cover @@ -38,7 +38,7 @@ $book->getLinkArray (); } ?> -
title) ?>
+
" alt="permalink" />title) ?>
diff --git a/fetch.php b/fetch.php index f6340ed..325a4c3 100644 --- a/fetch.php +++ b/fetch.php @@ -92,7 +92,10 @@ $book->getUpdatedEpub ($idData); return; } - - header('Content-Disposition: attachment; filename="' . basename ($file) . '"'); + if ($type == "jpg") { + header('Content-Disposition: filename="' . basename ($file) . '"'); + } else { + header('Content-Disposition: attachment; filename="' . basename ($file) . '"'); + } header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file); ?> \ No newline at end of file diff --git a/images/Link.png b/images/Link.png new file mode 100644 index 0000000..2a5278e Binary files /dev/null and b/images/Link.png differ diff --git a/index.php b/index.php index 34e0651..0f97424 100644 --- a/index.php +++ b/index.php @@ -234,7 +234,7 @@ ?>
- +
title) ?> (book->pubdate) ?>) book->getRating () ?>
book->getAuthorsName ()) ?>
book->getTagsName ()) ?>