Compare commits

...

10 Commits

Author SHA1 Message Date
arlemp@selectel.ru
88d2e1bf6c correct phones 2025-05-16 16:18:15 +03:00
arlemp@selectel.ru
47947dd13e correct text main 2025-03-11 22:04:36 +03:00
arlemp@selectel.ru
1ef13a75a2 delete samo 2024-11-05 18:22:30 +03:00
arlemp@selectel.ru
44b3fe2704 add preorder 2024-08-07 23:17:49 +03:00
arlemp@selectel.ru
aee2ed7207 correct no subscript books 2024-08-06 15:29:57 +03:00
arlemp@selectel.ru
d8767e4c9d add right click page prev 2024-05-31 20:48:45 +03:00
arlemp@selectel.ru
d82fbdaf8f correct nav book 2024-05-31 18:45:45 +03:00
arlemp@selectel.ru
4189d0e19f add click to next page 2024-05-31 16:41:17 +03:00
arlemp@selectel.ru
c033ac05d1 add reader lite 2024-05-31 11:46:26 +03:00
arlemp@selectel.ru
1ceb7ee85c correct new pdf format 2024-05-30 20:16:21 +03:00
15 changed files with 351 additions and 156 deletions

View File

@@ -79,17 +79,22 @@ set('noreply',
]);
if ( $_SERVER['HTTP_HOST'] == 'vklan.argumenti.ru') {
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
db_config('chitatel', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
db_config('klan', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
}
else {
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh');
db_config('chitatel', 'mysql:host=mysql;dbname=argumentiru', 'chitatel', 'hjYu78kl*90Uio');
db_config('klan', 'mysql:host=mysql;dbname=argumentiru', 'klan', 'zpFGhyuRty765Jk');
}
//if ( $_SERVER['HTTP_HOST'] == 'vklan.argumenti.ru') {
// db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
// db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
// db_config('chitatel', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
// db_config('klan', 'mysql:host=mysql;dbname=argumentiru', 'root', '234ASasdYa56UIkol');
//}
//else {
db_config('argumentiru', 'mysql:host=87.249.36.139;dbname=argumentiru', 'argumentiru', 'hjYu78kl*90-Uio23');
db_config('reader', 'mysql:host=87.249.36.139;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
db_config('chitatel', 'mysql:host=87.249.36.139;dbname=argumentiru', 'argumentiru', 'hjYu78kl*90-Uio23');
db_config('klan', 'mysql:host=87.249.36.139;dbname=argumentiruu', 'argumentiru', 'hjYu78kl*90-Uio23');
//db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
//db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh');
//db_config('chitatel', 'mysql:host=mysql;dbname=argumentiru', 'chitatel', 'hjYu78kl*90Uio');
//db_config('klan', 'mysql:host=mysql;dbname=argumentiru', 'klan', 'zpFGhyuRty765Jk');
//}
// GRANT ALL PRIVILEGES ON argumentiru.* TO 'hitatel'@'%' IDENTIFIED BY 'hjYu78kl*90Uio'

View File

@@ -15,6 +15,7 @@ require 'routes/anpay.php';
require 'routes/sendmail.php';
require 'routes/report.php';
require 'routes/generation.php';
require 'routes/push.php';
#lib
require 'libs/logsave.php';
#api

View File

@@ -311,16 +311,26 @@ h1 {
color: white;
font-size: 1.4em;
justify-content: center;
padding-left: 6px;
}
#stuff-bar a {
color: white;
}
#zoomnav, #pagenav {
width: 45%;
display: flex;
justify-content: center;
align-items: center;
}
#zoomnav{
width: 40%;
}
#pagenav {
width: 60%;
}
#zoomnav div, #pagenav div {
margin-right: 15px;
}
@@ -359,6 +369,11 @@ h1 {
font-size: 1.2em;
}
.click-info{
font-size: .78em;
text-align: right;
}
.book_small{
position:relative;
}
@@ -483,6 +498,26 @@ input[type="email"],input[type="password"], input[type="text"], input[type="tel"
font-size: 1.2em;
}
.footer-text{
margin-top:10px;
background: white;
border: 1px solid #dcdcdc;
padding: 10px;
font-size: .8em;
line-height: 17px;
}
embed[type="application/pdf"] {
display: block;
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
}
@media screen and (max-width: 1260px) {
.book_mini{
font-size: .9em;
@@ -596,9 +631,11 @@ input[type="email"],input[type="password"], input[type="text"], input[type="tel"
margin-right: 0px;
}
#zoomnav, #pagenav {
width: 100%;
font-size: 1.3em;
}
.zoomstatus{
display: none;
}
.firstpage{
margin-right: 15px!important;
}

View File

@@ -7,7 +7,7 @@ function renderPage() {
var el_title = document.getElementById('pdfprogress');
//el_title.innerHTML = 'Идет подготовка страницы ...';
el_title.innerHTML = 'Идет подготовка страницы ...';
pageRendering = true;
// Using promise to fetch the page
@@ -34,6 +34,8 @@ function renderPage() {
canvas.height = viewport.height;
canvas.width = viewport.width;
canvas.innerHTML = '';
// Render PDF page into canvas context
var renderContext = {
canvasContext: context,
@@ -50,7 +52,7 @@ function renderPage() {
pageNumPending = null;
}
// el_title.innerHTML = '';
el_title.innerHTML = '';
});
});
@@ -172,18 +174,18 @@ function startpdfviewer(newcurr){
}
var detect = new MobileDetect(window.navigator.userAgent);
var isOpera = window.opera | window.opr | ( navigator.userAgent.indexOf(' OPR/') > -1 ) | ( navigator.userAgent.indexOf(' Coast/') > -1 ) | ( navigator.userAgent.indexOf(' OPiOS/') > -1 );
//var isOpera = window.opera | window.opr | ( navigator.userAgent.indexOf(' OPR/') > -1 ) | ( navigator.userAgent.indexOf(' Coast/') > -1 ) | ( navigator.userAgent.indexOf(' OPiOS/') > -1 );
if (category == 1){
embed = false;
}
else if (category == 3){
embed = true;
embed = false; //true;
}
if(isOpera){
embed = true;
}
//if(isOpera){
// embed = false;
//}
if (detect.phone()){
embed = false;
@@ -191,7 +193,8 @@ function startpdfviewer(newcurr){
if (embed){
document.getElementById(pdfcanvas).innerHTML = '<embed src="'+ url +'" width="100%" type="application/pdf" style="height: 100vh;">';
//document.getElementById(pdfcanvas).innerHTML = '<embed src="'+ url +'" width="100%" type="application/pdf" style="height: 100vh;">';
document.getElementById(pdfcanvas).innerHTML = '<object data="'+ url +'" type="application/pdf" width="100%" height="100%" style="border: none;"><param name="toolbar" value="0"><param name="navpanes" value="0"><param name="view" value="FitH"></object>';
}
else {

View File

@@ -240,7 +240,7 @@ function sendstatus_kuri(){
$message = "Ваш заказ выполнен.<br/><br/>
Он будет всегда доступен в Вашем личном кабинете. <br/><br/>
Чтобы войти в КЛАН перейдите по ссылке - <a href='https://klan.argumenti.ru/login'>https://klan.argumenti.ru/login</a>. Введите свой логин и пароль. Если Вы еще не пользовались кабинетом создайте пароль, использую эту электронную почту. Если пароль забыли, воспользуйтесь опцией Забыли пароль, используя эту электронную почту.";
Чтобы войти в КЛАН перейдите по ссылке - <a href='https://klan.argumenti.ru/login'>https://klan.argumenti.ru/login</a>. Введите свой логин и пароль. Если Вы еще не пользовались кабинетом создайте пароль, используя эту электронную почту. Если пароль забыли, воспользуйтесь опцией Забыли пароль, используя эту электронную почту.";
$subject = "Аргументы Недели: заказ выполнен";
$result = klanmail($order['buy_email'], $subject, $message, set('klanmail'));
}

View File

@@ -207,6 +207,13 @@ function read_kuri($hash, $page = 0, $promo = 'full', $version = null){
$file = PDFSOURCE."${price['price_id']}.pdf";
$data = pdfs_init($file, $page);
if (!$data) {
$text = '<p>Книга временно недоступна. Просим прощение за неудобство</p>';
$tempcontent = $text; //подшаблон
include VIEWPATH.'layout.phtml'; //центральный шаблон
return;
}
if ($price['pages'] == 0){
$data['pages'] = pdfs_count($file);
$count = $data['pages'];
@@ -283,8 +290,8 @@ function read_kuri($hash, $page = 0, $promo = 'full', $version = null){
if ($page > 1) {
//$title = $price['pricename']." / $page стр.";
$title = $price['pricename'];
$title = $price['pricename']." / стр. $page - Аргументы Недели";
//$title = $price['pricename'];
$prevpage = $page - 1;
$prevurl = "$baseurl$prevpage";
if ($promo == 'full'){
@@ -299,7 +306,9 @@ function read_kuri($hash, $page = 0, $promo = 'full', $version = null){
$htmlurl = "/readtext/$hash/$page/$promo";
$tempcontent = VIEWPATH.'anpdf3.phtml'; //подшаблон
include VIEWPATH.'layout.phtml'; //центральный шаблон
include VIEWPATH.'layout_lite.phtml'; //центральный шаблон
//include $tempcontent;

View File

@@ -3,7 +3,49 @@
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
function sendmail($config, $mail){
function sendmail($config, $mail) {
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$send = new PHPMailer(true);
try {
//$send->SMTPDebug = 2; // Включить отладку
//$send->Debugoutput = 'html';
$send->isSMTP();
$send->Host = 'mail.argumenti.ru';
$send->SMTPAuth = true;
$send->CharSet = 'UTF-8';
$send->Username = 'klan@mail.argumenti.ru';
$send->Password = 'Adfhj789-jkhgk6F';
$send->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$send->Port = 587;
$send->setFrom('klan@mail.argumenti.ru', 'Аргументы Недели');
$send->addAddress($mail['mail'], $mail['mail']);
if (isset($mail['html'])) {
$send->isHTML(true);
} else {
$send->ContentType = 'text/plain';
$send->isHTML(false);
}
$send->Subject = $mail['subject'];
$send->Body = $mail['message'];
return $send->send();
} catch (Exception $e) {
//echo "Ошибка отправки: {$e->getMessage()}";
echo '<p>К сожалению в данный момент письмо невозможно отправить.</p><p>Попробуйте позже.</p>';
}
}
function sendmail_old($config, $mail){
$send = new PHPMailer;
$send->isSMTP();
@@ -39,4 +81,6 @@ function sendmail($config, $mail){
return $send->send();
}
}

View File

@@ -41,6 +41,14 @@ function checkout_kuri($priceslug, $delivery_id = 1){
echo 'товар не найден';
return false;
}
$preorder = 0;
$current_date = date('Y-m-d H:i:s');
$datestart = $price_id['BeginDate'];
if (strtotime($datestart) > strtotime($current_date)) {
$preorder = 1; // Если дата из MySQL больше текущей, устанавливаем предзаказ = 1
}
# отправляем цену на форму в js
if ($delivery_id == 1){ // тип товара = 1 (только электронная)
@@ -63,6 +71,7 @@ function checkout_kuri($priceslug, $delivery_id = 1){
}
# если пришла форма
if (count($_POST) > 0){
@@ -159,10 +168,10 @@ function checkout_kuri($priceslug, $delivery_id = 1){
$price = $price * $count;
$delivery = db_get("SELECT * FROM `delivery` WHERE `delivery_id` = '$delivery_id' LIMIT 1");
$curr_delivery = db_get("SELECT * FROM `delivery` WHERE `delivery_id` = '$delivery_id' LIMIT 1");
if (isset($delivery['delivery_id']) and $delivery['delivery_price'] !== '0.00' ) {
$price = $price + $delivery['delivery_price'] ;
if (isset($curr_delivery['delivery_id']) and $curr_delivery['delivery_price'] !== '0.00' ) {
$price = $price + $curr_delivery['delivery_price'] ;
}
@@ -188,7 +197,7 @@ function checkout_kuri($priceslug, $delivery_id = 1){
#создаем заказ
if ($add_order){
$add['buy_status'] = 0;
$add['mail_status'] = 0;
$add['number_id'] = $price_id['price_id'];
@@ -212,7 +221,7 @@ function checkout_kuri($priceslug, $delivery_id = 1){
else { # заказ создался
if ( $delivery_id == 1){
if ( $delivery_id == 1 or $preorder == 1){
//уводим на оплату онлайн в Юкассу
return anpay_kuri($order_id);
}
@@ -246,7 +255,7 @@ function checkout_kuri($priceslug, $delivery_id = 1){
Наименование: {$price_id['pricename']}<br>
Цена: {$price_id['offline_price']}<br>
Кол-во: $count<br>
Доставка: {$delivery_id['delivery']}<br>
Доставка: {$delivery['delivery']}<br>
Сумма заказа: $price руб.<br>
Оплата: при получении<br>
E-mail: {$add['buy_email']}<br>
@@ -270,6 +279,8 @@ function checkout_kuri($priceslug, $delivery_id = 1){
$submit_link = SITE."checkout/$priceslug";
$tempcontent = VIEWPATH.'checkout.phtml';
include VIEWPATH.'layout_pay.phtml';

View File

@@ -84,7 +84,7 @@ function addhash_kuri(){
$hash = md5("$id$date");
$usql = "UPDATE `price` SET `pricehash` = '$hash' WHERE `price_id` = '$id'";
dbl_get($usql, 'reader');
dbl_get($usql, 'argumentiru');
echo $usql."\n";
}

View File

@@ -8,78 +8,40 @@
pageNumPending = null,
nexturl = '<?=$nexturl?>?ver=2',
newcurr ='<?=$newcurr?>?ver=2',
prevurl = '<?=$prevurl?>?ver=2';
prevurl = '<?=$prevurl?>?ver=2';
</script>
<p id="downloadtitle">
<?if ($promo == 'pr'):?>
<a href="https://argumenti.ru/robomail/486?utm_source=argumenti.ru&utm_medium=subscript&utm_campaign=promo" target="_blank">Получайте «Газету на @email»</a>
<?else:?>
<?if ($filedown):?>
<a href="<?=$fullpdf?>?ver=1" target="_blank"><?=$downtitle?></a>
<?endif?>
<?endif?>
<?if ($category == 1):?>
<span id="downarrow">/ <a href="<?=$htmlurl?>">режим PDF</a></span>
<span id="downarrow">/ <a href="<?=$htmlurl?>">Режим для чтения</a></span>
<?endif?>
</p>
<div id="stuff-bar">
<div id="zoomnav">
<div id="title_minus" onclick="resize_minus()">
<span><i class="fas fa-search-minus"></i></span>
</div>
<div id="zoomstatus_up" class="zoomstatus">100%</div>
<div id="title_plus" onclick="resize_plus()">
<span><i class="fas fa-search-plus"></i></span>
</div>
</div>
<div id="pagenav">
<?if (isset($prevurl)):?>
<div class="firstpage">
<a href="<?=$baseurl?>1">
<i class="fas fa-angle-double-left"></i>
</a>
</div>
<div class="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
<?endif?>
<div id="currpage">
<select id="pages" onchange="changepage()">
<?for ($i = 1; $i <= $count; $i++):?>
<?$selected = ($page == $i) ? ' selected' : ''?>
<option value="<?=$i?>"<?=$selected?>><?=$i?></option>
<?endfor?>
</select>
<i class="fas fa-chevron-down"></i>
</div>
<?if (isset($nexturl)):?>
<div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
<?if (isset($endurl)):?>
<div class="navpage"><a href="<?=$endurl?>"><i class="fas fa-angle-double-right"></i></a></div>
<?endif?>
<?endif?>
</div>
</div>
<div id="the-canvas">
<div id="pdfprogress"></div>
<noscript>
<embed src="<?=$pdfile?>" width="100%" type="application/pdf" style="height: 100vh;">
</noscript>
</div>
<script>startpdfviewer(newcurr);</script>
<script>startpdfviewer(newcurr);
var canvasDiv = document.getElementById('the-canvas');
canvasDiv.addEventListener('click', function() {
window.location.href = nexturl;
});
canvasDiv.addEventListener('contextmenu', function(event) {
event.stopPropagation();
window.location.href = prevurl;
});
</script>
<p class="click-info"><i class="fa fa-mouse-pointer" aria-hidden="true"></i> кликайте чтобы листать страницы</p>
<div id="stuff-bar">
<a href="<?=SITE?>"><i class="fas fa-home"></i></a>
<div id="zoomnav">
<div id="title_minus" onclick="resize_minus()">
<span><i class="fas fa-search-minus"></i></span>
@@ -93,13 +55,48 @@
<div id="pagenav">
<?if (isset($prevurl)):?>
<div class="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
<div class="firstpage">
<a href="<?=$baseurl?>1">
<i class="fas fa-angle-double-left"></i>
</a>
</div>
<div class="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
<?endif?>
<div id="currpage"><?=$page?></div>
<div id="currpage">
<select id="pages" onchange="changepage()">
<?for ($i = 1; $i <= $count; $i++):?>
<?$selected = ($page == $i) ? ' selected' : ''?>
<option value="<?=$i?>"<?=$selected?>><?=$i?></option>
<?endfor?>
</select>
</div>
<?if (isset($nexturl)):?>
<div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
<?endif?>
<div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
<?if (isset($endurl)):?>
<div class="navpage"><a href="<?=$endurl?>"><i class="fas fa-angle-double-right"></i></a></div>
<?endif?>
<?endif?>
</div>
</div>
<p id="downloadtitle">
<?if ($promo == 'pr'):?>
<a href="https://argumenti.ru/robomail/486?utm_source=argumenti.ru&utm_medium=subscript&utm_campaign=promo" target="_blank">Получайте «Газету на @email»</a>
<?else:?>
<?if ($filedown):?>
<a href="<?=$fullpdf?>?ver=1" target="_blank"><?=$downtitle?></a>
<?endif?>
<?endif?>
<?if ($category == 1):?>
<span id="downarrow">/ <a href="<?=$htmlurl?>">режим PDF</a></span>
<span id="downarrow">/ <a href="<?=$htmlurl?>">Режим для чтения</a></span>
<?endif?>
</p>

View File

@@ -18,7 +18,7 @@
<?endif?>
<div class="textanons"><?=$book['priceanons']?></div>
<?if ($buy_status): // если книжка куплена?>
<p class="price"><a href="<?=$book['links']['pdf']?>">Читать PDF</a></p>
<p class="price"><a href="<?=$book['links']['pdf']?>" target="_blank">Читать PDF</a></p>
<!-- <p><a href="<?=$book['links']['text']?>">Читать текст</a></p> -->
<?if ($book['category_id'] == 1):?>
<p class="price"><a href="<?=$book['links']['download']?>">Скачать PDF</a></p>
@@ -33,14 +33,12 @@
<p>Или <strong><a href="https://klan.argumenti.ru/login">войдите</a></strong> в личный кабинет если покупка уже оформлена</p>
<?else:?>
<?if ($book['date_subscript'] !== '0000-00-00 00:00:00'):?>
<p>в подписке с <?=date('d.m.Y', strtotime($book['date_subscript']))?>
<?else:?>
<p>Скоро в подписке
<?endif?>
<p>в подписке с <?=date('d.m.Y', strtotime($book['date_subscript']))?>.
<?if (SUBSTATUS == 0):?>
<strong><a href="https://argumenti.ru/klan_landing">за 540 рублей в год</a></strong>
<?endif?>
</p>
<strong> Оформить <a href="https://argumenti.ru/klan_landing">за 540 рублей в год</a></strong>
<?endif?>
</p>
<?endif?>
<?endif?>
<?if ($book['offline_price'] > 0 && $book['pieces'] > 0):?>

View File

@@ -10,16 +10,29 @@
var count = document.getElementById('count').value;
<?foreach($delivery as $ditem):?>
<?$nn++;?>
<?if ($ditem['delivery_id'] == 2){
continue;
}?>
<?if ( $price_id['fullprice'] and $ditem['delivery_id'] == 4 or $ditem['delivery_id'] == 5 ){
continue;
}?>
<? if($nn == 1): ?>
if (document.getElementById('devilery_id<?=$ditem['delivery_id']?>').checked) {
<?else:?>
else if (document.getElementById('devilery_id<?=$ditem['delivery_id']?>').checked){
<?endif?>
itog = product_price * count;
itog = product_price * count;
<?if ($ditem['delivery_price'] !== '0.00'):?>
itog = itog + <?=$ditem['delivery_price']?>;
<?endif?>
}
<?endforeach?>
@@ -45,18 +58,25 @@
el_adress.placeholder='Адрес в свободной форме';
}
else if(document.getElementById('devilery_id4').checked){
document.getElementById("form_adress").style.display='block';
document.getElementById("form_samo").style.display='none';
el_adress.placeholder='Индекс (обязательно). Далее область, населенный пункт и Ваш адрес';
}
else if(document.getElementById('devilery_id5').checked){
document.getElementById("form_adress").style.display='block';
document.getElementById("form_samo").style.display='none';
el_adress.placeholder='Индекс (обязательно). Далее область, населенный пункт и Ваш адрес';
}
<?if ( $price_id['fullprice'] ):?>
if(document.getElementById('devilery_id6').checked){
document.getElementById("form_adress").style.display='block';
document.getElementById("form_samo").style.display='none';
el_adress.placeholder='Индекс (обязательно). Далее область, населенный пункт и Ваш адрес';
}
<?else:?>
if(document.getElementById('devilery_id4').checked){
document.getElementById("form_adress").style.display='block';
document.getElementById("form_samo").style.display='none';
el_adress.placeholder='Индекс (обязательно). Далее область, населенный пункт и Ваш адрес';
}
else if(document.getElementById('devilery_id5').checked){
document.getElementById("form_adress").style.display='block';
document.getElementById("form_samo").style.display='none';
el_adress.placeholder='Индекс (обязательно). Далее область, населенный пункт и Ваш адрес';
}
<?endif?>
}
</script>
@@ -100,12 +120,23 @@
<p><input id="buy_tel" name="buy_tel" value="<?=post_value("buy_tel")?>" type="tel"></textarea></p>
<p style="font-weight: bold;font-size: 22px;"><label for="devilery_id">Доставка:</label></p>
<?foreach($delivery as $ditem):?>
<?foreach($delivery as $ditem):
if ($ditem['delivery_id'] == 2){
continue;
}?>
<?$checked = ($ditem['delivery_id'] == $delivery_id) ? ' checked': '';?>
<?if ( $price_id['fullprice'] and $ditem['delivery_id'] == 4 ){
continue;
}
if ( !$price_id['fullprice'] and $ditem['delivery_id'] == 6 ){
continue;
}?>
<?if ($ditem['delivery_weight_max'] > 0):?>
<?if ($price_id['weight'] > $ditem['delivery_weight'] and $price_id['weight'] < $ditem['delivery_weight_max']):?>
<div>
@@ -127,13 +158,7 @@
</p>
<?endif?>
<?endforeach?>
<div id="form_samo" class="adress_box" style="display: <?= ($delivery_id == 2) ? 'block' : 'none' ?>;">
<p>Москва, метро "Аэропорт", Авиационный переулок, д. 4А (здание МФЮА), к. 104</p>
<p>Мы работаем пн.-пт. c 10:00 - 18:00</p>
<p><strong><em>Резерв - 3 рабочих дня<em></strong></p>
</div>
<?endforeach?>
<div id="form_adress" class="adress_box" style="display: <?= ($delivery_id == 3 or $delivery_id == 4) ? 'block' : 'none' ?>;">
<p style="margin:0px;"><label for="buy_adress">Адрес:</label></p>
@@ -141,7 +166,7 @@
</div>
<div>
<p>Телефоны для консультаций: <strong><a href="tel:+74959804560">8(495)980-45-60</a></strong>, <strong><a href="tel:+79686365180">8(958)636-51-80</a></strong></p>
<p>Телефоны для консультаций: <strong><a href="tel:+74959804560">8(495)980-45-60</a></strong></p>
</div>
<div>
@@ -150,14 +175,15 @@
<div id="form_pay">
<p style="font-weight: bold;font-size: 22px;"><label for="buy_adress">Оплата:</label></p>
<?foreach($pay_ids as $pkey=>$pitem):?>
<?$p++;
$pchecked = ($pkey == $pay_id) ? ' checked': '';?>
<? if ($pkey == 2):?>
<p><input name="pay_id" type="radio" value="<?=$pkey?>" id="pay_id<?=$p?>" <?=$pchecked?>><?=$pitem?></p>
<?endif?>
<?endforeach?>
<?if ($preorder == 0):?>
<?foreach($pay_ids as $pkey=>$pitem):?>
<?$p++;
$pchecked = ($pkey == $pay_id) ? ' checked': '';?>
<? if ($pkey == 2):?>
<p><input name="pay_id" type="radio" value="<?=$pkey?>" id="pay_id<?=$p?>" <?=$pchecked?>><?=$pitem?></p>
<?endif?>
<?endforeach?>
<?endif?>
</div>
<div id="form_itog">

View File

@@ -100,7 +100,11 @@ else {
</div>
<?if (isset($tempcontent))
include($tempcontent);
if (file_exists($tempcontent))
include($tempcontent);
else
echo $tempcontent;
?>
<p style="margin-top:10px;background: white;border: 1px solid #dcdcdc;padding: 10px;font-size: .8em;line-height: 17px;">Распространение электронной версии еженедельника «Аргументы недели» осуществляется учредителем - ООО «Издательство «Аргументы недели», юр.адрес: 119002,ул.Арбат, д.29,1-й эт, пом.IV.ком.2, ОГРН 1207700354223</p>

View File

@@ -1,29 +1,86 @@
<html>
<head>
<meta charset="utf-8">
<title>Еженедельник Аргументы Недели - <?=$title?></title>
<title><?=$title?></title>
<//base href="<?=SITE?>">
<script src="/pub/scripts/pdf.min.js"></script>
<script src="/pub/scripts/anviewer.js?ver=43"></script>
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=76">
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
<script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.4/mobile-detect.min.js"></script>
<script src="/pub/scripts/klanviewer.js?ver=44"></script>
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=259">
<link rel="shortcut icon" href="/favicon.ico?ver=2" type="image/x-icon" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png?ver=2" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png?ver=2" />
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png?ver=2" />
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png?ver=2" />
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png?ver=2" />
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png?ver=2" />
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png?ver=2" />
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png?ver=2" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png?ver=2" />
<link rel="icon" type="image/ico" href="/favicon.ico?ver=2" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?ver=2">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?ver=2">
<?if (isset($description)):?>
<meta name="description" content="<?=$description?>">
<?endif?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/pub/fontawesome/css/all.css">
<link rel="stylesheet" href="/pub/fontawesome/css/v4-shims.css">
</head>
<body>
<header style="justify-content:center;">
<div class="lite-logo">
<a href="https://klan.argumenti.ru">
<img src="https://argumenti.ru/images/argumenti/klan_logo.png?ver=1">
</a>
</div>
</header>
<!-- Rating Mail.ru counter -->
<script type="text/javascript">
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()});
(function (d, w, id) {
if (d.getElementById(id)) return;
var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
ts.src = "https://top-fwz1.mail.ru/js/code.js";
var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
})(document, window, "topmailru-code");
</script><noscript><div>
<img src="https://top-fwz1.mail.ru/counter?id=1069168;js=na" style="border:0;position:absolute;left:-9999px;" alt="Top.Mail.Ru" />
</div></noscript>
<!-- //Rating Mail.ru counter -->
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(26004090, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/26004090" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-11186859-1', 'auto');
ga('send', 'pageview');
</script>
<?if (isset($tempcontent))
include($tempcontent);
if (file_exists($tempcontent))
include($tempcontent);
else
echo $tempcontent;
?>
<p class="footer-text">Распространение электронной версии еженедельника «Аргументы недели» осуществляется учредителем - ООО «Издательство «Аргументы недели», юр.адрес: 119002,ул.Арбат, д.29,1-й эт, пом.IV.ком.2, ОГРН 1207700354223</p>
</body>
</html>

View File

@@ -3,4 +3,7 @@
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/root
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
#bash /home/arlemp/vhosts/anpdf/scripts/push_mail.sh
docker exec arlemp_pdftk_1 php /vhosts/anpdf/app/index.php sendstatus
docker exec arlemp_pdftk_1 php /vhosts/anpdf/app/index.php addhash