strtotime hash pdf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user