new anpromo

This commit is contained in:
Andrey Kuvshinov
2020-05-21 19:28:09 +03:00
parent 1175cb825a
commit 9ec33612b8
2 changed files with 3 additions and 2 deletions

View File

@@ -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'; //центральный шаблон

View File

@@ -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);