add bookmark in text book

This commit is contained in:
Andrey Kuvshinov
2020-05-24 21:58:32 +03:00
parent e36392799c
commit 567772d79b

View File

@@ -402,6 +402,18 @@ function readbook_kuri($hash, $page = 1){
return 'page not found';
}
$bookmark = bookmark_get($hash);
if ($page == 0){ //  не читал ли ранее
$page = 1; //если нет страницы то первая
if ($bookmark !== false and $bookmark > 1){
return readbook_kuri($hash, $bookmark);
}
}
//устанавливаем закладку
bookmark_set($hash, $page);
$htmlfile = HTMLSOURCE.$price['price_id'].'.'.$price['html'];
$limit = 4000;