From 9ec33612b8f12c2ad01ed4f6cfda3b905347370b Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Thu, 21 May 2020 19:28:09 +0300 Subject: [PATCH] new anpromo --- app/routes/anpdf.php | 3 ++- app/routes/pdfserver.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index a7824c0..10014e8 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -9,6 +9,7 @@ function anpromo_kuri($page = 1, $scale = 1){ $newcurr = strtotime('2006-05-12'); $file = SITEPATH.'pub/files/source/742.pdf'; + $data = pdfs_init($file, $page); $count = $data['count']; @@ -36,7 +37,7 @@ function anpromo_kuri($page = 1, $scale = 1){ $downtitle = 'Скачать в PDF формате'; - $tempcontent = VIEWPATH.'anpdf2.phtml'; //подшаблон + $tempcontent = VIEWPATH.'anpdf3.phtml'; //подшаблон include VIEWPATH.'layout.phtml'; //центральный шаблон diff --git a/app/routes/pdfserver.php b/app/routes/pdfserver.php index 18de16a..23468f9 100644 --- a/app/routes/pdfserver.php +++ b/app/routes/pdfserver.php @@ -47,7 +47,7 @@ function pdfs_init($source, $page = 1){ return false; $result['count'] = pdfs_count($source); // количество страниц - $result['pdfurl'] = pdfs_cachefile($source); //полный файл на скачку + $result['pdfurl'] = SITE.trim(pdfs_cachefile($source), '/'); //полный файл на скачку $name = pdfs_hash($source);