add static pdf file
This commit is contained in:
@@ -40,9 +40,18 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
|
|||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$namefile = $price['pricehash'].'.pdf';
|
||||||
|
$cachefile = PDFDIR.$namefile;
|
||||||
|
|
||||||
|
if (file_exists($cachefile)){
|
||||||
|
$pdfile = '/'.$namefile;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$pdfile = '/file/'.$hash;
|
||||||
|
}
|
||||||
|
|
||||||
$id = $price['price_id'];
|
$id = $price['price_id'];
|
||||||
$pdfile = "/file/$hash";
|
$maxpage = 24;
|
||||||
$maxpage = 32;
|
|
||||||
$title = $price['pricename'];
|
$title = $price['pricename'];
|
||||||
|
|
||||||
if (!$promo)
|
if (!$promo)
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ function anfilename($id){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function file_kuri($hash) {
|
function file_kuri($hash) {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user