strtotime hash pdf

This commit is contained in:
Andrey Kuvshinov
2020-04-29 22:19:45 +03:00
parent 0e0b9f9866
commit df0a374f42
4 changed files with 18 additions and 15 deletions

View File

@@ -10,6 +10,7 @@ function anpromo_kuri($page = 1, $scale = 1){
$pdfile = '/pub/files/pdf/promo.pdf';
$title = 'Номер 12(706)';
$baseurl = '/';
$newcurr = strtotime('2006-05-12');
$nextpage = $page + 1;
if (file_exists(SITEPATH.$pdfile)){
@@ -36,7 +37,7 @@ function anpromo_kuri($page = 1, $scale = 1){
function read_kuri($hash, $page = 1, $scale = 1, $promo = false){
$price = db_get("SELECT `price_id`, `pricename` FROM `price` WHERE `pricehash` = '$hash' LIMIT 1");
$price = db_get("SELECT `price_id`, `pricename`, `BeginDate` FROM `price` WHERE `pricehash` = '$hash' LIMIT 1");
if (!isset($price['price_id'])){
header("HTTP/1.0 404 Not Found");
@@ -48,6 +49,10 @@ function read_kuri($hash, $page = 1, $scale = 1, $promo = false){
$basepg = PGDIR.$hash.'/'.$hash.'-';
$pgfile = $basepg.$page.'.pdf';
$cachefile = PDFDIR.$namefile;
$newcurr = strtotime($price['BeginDate']);
if (file_exists($cachefile)){
$fullpdf = '/pdf/'.$namefile;