add fullpdf
This commit is contained in:
@@ -44,6 +44,14 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
|
|||||||
$pgfile = PGDIR.$hash.'/'.$hash.'-'.$page.'.pdf';
|
$pgfile = PGDIR.$hash.'/'.$hash.'-'.$page.'.pdf';
|
||||||
$cachefile = PDFDIR.$namefile;
|
$cachefile = PDFDIR.$namefile;
|
||||||
|
|
||||||
|
if (file_exists($cachefile)){
|
||||||
|
$fullpdf = '/pdf/'.$namefile;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$fullpdf = '/file/'.$hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (file_exists($pgfile)){
|
if (file_exists($pgfile)){
|
||||||
$pdfile = '/pages/'.$hash.'/'.$hash.'-'.$page.'.pdf';
|
$pdfile = '/pages/'.$hash.'/'.$hash.'-'.$page.'.pdf';
|
||||||
$pagenum = 1;
|
$pagenum = 1;
|
||||||
@@ -53,7 +61,7 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
|
|||||||
$pagenum = $page;
|
$pagenum = $page;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$pdfile = '/file/'.$hash;
|
$pdfile = $fullpdf;
|
||||||
$pagenum = $page;
|
$pagenum = $page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ _tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()});
|
|||||||
</div>
|
</div>
|
||||||
<p id="downloadtitle">
|
<p id="downloadtitle">
|
||||||
<?if ($filedown):?>
|
<?if ($filedown):?>
|
||||||
<a href="<?=$pdfile?>">Если, по какой-то причине у вас не загрузилась газета ниже, то нажмите сюда, чтобы скачать pdf</a><span id="downarrow">↑</span>
|
<a href="<?=$fullpdf?>">Если, по какой-то причине у вас не загрузилась газета ниже, то нажмите сюда, чтобы скачать pdf</a><span id="downarrow">↑</span>
|
||||||
<?else:?>
|
<?else:?>
|
||||||
<a href="https://argumenti.ru/robomail/486?utm_source=argumenti.ru&utm_medium=subscript&utm_campaign=promo">Получайте «Газету на @email»</a>
|
<a href="https://argumenti.ru/robomail/486?utm_source=argumenti.ru&utm_medium=subscript&utm_campaign=promo">Получайте «Газету на @email»</a>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
|
|||||||
Reference in New Issue
Block a user