add author

This commit is contained in:
Andrey Kuvshinov
2020-05-24 21:40:42 +03:00
parent 11e6f2ce8f
commit 637ef12d6d
3 changed files with 18 additions and 6 deletions

View File

@@ -419,13 +419,18 @@ function readbook_kuri($hash, $page = 1){
$baseurl = SITE.'/readbook/'.$hash.'/';
$endurl = $baseurl.$count;
$nextpage = $page + 1;
$nexturl = $baseurl.$nextpage;
if ($page < $count) {
$nextpage = $page + 1;
$nexturl = $baseurl.$nextpage;
}
$prevpage = $page - 1;
$prevurl = $baseurl.$prevpage;
if ($page > 1) {
$prevpage = $page - 1;
$prevurl = $baseurl.$prevpage;
}
$title = $price['pricename'];
$author = $price['author'];
$tempcontent = VIEWPATH.'epub.phtml'; //подшаблон
include VIEWPATH.'layout.phtml'; //центральный шаблон