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;
|
||||
}
|
||||
|
||||
$namefile = $price['pricehash'].'.pdf';
|
||||
$cachefile = PDFDIR.$namefile;
|
||||
|
||||
if (file_exists($cachefile)){
|
||||
$pdfile = '/'.$namefile;
|
||||
}
|
||||
else {
|
||||
$pdfile = '/file/'.$hash;
|
||||
}
|
||||
|
||||
$id = $price['price_id'];
|
||||
$pdfile = "/file/$hash";
|
||||
$maxpage = 32;
|
||||
$maxpage = 24;
|
||||
$title = $price['pricename'];
|
||||
|
||||
if (!$promo)
|
||||
|
||||
@@ -18,7 +18,6 @@ function anfilename($id){
|
||||
|
||||
|
||||
|
||||
|
||||
function file_kuri($hash) {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user