add test_epub

This commit is contained in:
Andrey Kuvshinov
2020-05-23 23:19:05 +03:00
parent 780f82099b
commit 21b1e6db49
2 changed files with 39 additions and 0 deletions

View File

@@ -389,6 +389,38 @@ function initpageurls($page, $count, $baseurl){
function epub_kuri($page = 1){
require (APPPATH.'functions/xhtmltransform.php');
$dir = APPPATH.'pub/ops/';
$limit = 4000;
$count = 20;
$html = convert2html($dir.'toc.xhtml');
$html .= convert2html($dir.'chapter-1.xhtml');
$pagehtml = pagehtml($html, $page, $limit);
$baseurl = SITE.'/epub/';
$endurl = $baseurl.$count;
$nextpage = $page + 1;
$nexturl = $baseurl.$nextpage;
$prevpage = $page - 1;
$prevurl = $baseurl.$prevpage;
$title = 'Млечин - Тайна фюрера';
$tempcontent = VIEWPATH.'epub.phtml'; //подшаблон
include VIEWPATH.'layout.phtml'; //центральный шаблон
}
function pdfscan_kuri(){
$pdfsql = "SELECT price_id, pricehash FROM price WHERE category_id = 1";