add var pagenum
This commit is contained in:
@@ -46,12 +46,15 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
|
|||||||
|
|
||||||
if (file_exists($pgfile)){
|
if (file_exists($pgfile)){
|
||||||
$pdfile = '/pages/'.$hash.'/'.$hash.'-'.$page.'.pdf';
|
$pdfile = '/pages/'.$hash.'/'.$hash.'-'.$page.'.pdf';
|
||||||
|
$pagenum = 1;
|
||||||
}
|
}
|
||||||
elseif (file_exists($cachefile)){
|
elseif (file_exists($cachefile)){
|
||||||
$pdfile = '/pdf/'.$namefile;
|
$pdfile = '/pdf/'.$namefile;
|
||||||
|
$pagenum = $page;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$pdfile = '/file/'.$hash;
|
$pdfile = '/file/'.$hash;
|
||||||
|
$pagenum = $page;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id = $price['price_id'];
|
$id = $price['price_id'];
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
var pdfDoc = null,
|
var pdfDoc = null,
|
||||||
pageNum = <?=$page?>,
|
pageNum = <?=$pagenum?>,
|
||||||
scale = <?=$scale?>,
|
scale = <?=$scale?>,
|
||||||
url = '<?=$pdfile?>',
|
url = '<?=$pdfile?>',
|
||||||
pageRendering = false,
|
pageRendering = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user