default page anpromo
This commit is contained in:
@@ -7,22 +7,26 @@ error_reporting(E_ALL);
|
||||
function anpromo_kuri($page = 1, $scale = 1){
|
||||
|
||||
// $pdfile = 'https://argumenti.ru/templinks/md5files/f9598f88e667146d50d106eeedbd74c1.pdf';
|
||||
$pdfile = '/pub/files/promo.pdf';
|
||||
$maxpage = 32;
|
||||
$pdfile = '/pub/files/pdf/promo.pdf';
|
||||
$title = 'Номер 12(706)';
|
||||
$baseurl = '/';
|
||||
|
||||
if ($page < $maxpage){
|
||||
$nextpage = $page + 1;
|
||||
$nexturl = "/anpromo/$nextpage";
|
||||
$nextpage = $page + 1;
|
||||
if (file_exists(SITEPATH.$pdfile)){
|
||||
$nexturl = "$baseurl$nextpage";
|
||||
}
|
||||
|
||||
if ($page > 1) {
|
||||
$prevpage = $page - 1;
|
||||
$prevurl = "/anpromo/$prevpage";
|
||||
$prevurl = "$baseurl$prevpage";
|
||||
}
|
||||
|
||||
$baseurl = "/anpromo/";
|
||||
$pagenum = 1;
|
||||
|
||||
include ('anpdf2.phtml');
|
||||
$tempcontent = VIEWPATH.'anpdf2.phtml'; //подшаблон
|
||||
include VIEWPATH.'layout.phtml'; //центральный шаблон
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -111,6 +115,7 @@ function text_kuri(){
|
||||
}
|
||||
|
||||
|
||||
|
||||
function promo_kuri($hash, $page = 1, $scale = 2, $promo = false){
|
||||
|
||||
return read_kuri($hash, $page, $scale, true);
|
||||
|
||||
Reference in New Issue
Block a user