This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Controller_Admin_Ordersbundlespromocode extends Controller_AdminBase | |
| { | |
| public function before() | |
| { | |
| parent::before(); | |
| if (!Model_Users::canUser('administrate_order_bundles')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| defined('SYSPATH') or die('No direct script access.'); | |
| class Kohana_Exception extends Kohana_Kohana_Exception | |
| { | |
| const siteId = 1; | |
| const site = 'cms.obr.nd'; | |
| public static $dbException = false; | |
| public static $existedErrorLog = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Service_Casedeclination | |
| { | |
| // склонение дней по падежам | |
| public static function getDay(int $days): string | |
| { | |
| $case = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use YooKassa\Client; | |
| use YooKassa\Request\Payments\CreatePaymentResponse; | |
| class Service_Payment | |
| { | |
| /** | |
| * @var YooKassa\Client $kassa | |
| * клиент Юкассы |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template lang="pug"> | |
| div.transportAdvertisingPage | |
| .bgGray | |
| section.wrap(v-show="data.charIn") | |
| h1 Размещение рекламы на транспорте {{ data.charIn }} {{ data.city_where }}. Более <a v-tooltip="'Перейти к списку маршрутов'" :href="'/transport?location[]=' + location + '&now_page=1&action=initJq'">{{ data.moreRoutes }} маршрутов</a> {{ data.charIn }} {{ data.city_where }}<span v-if="data.stateWhere"> и {{ data.stateWhere }}</span>! | |
| .whiteBg.pTop20.noMBottom | |
| .wrap | |
| .mBottom20(style="font-size: 14px") На данной странице представлены актуальные цены всех вариантов размещения рекламы на общественном транспорте в {{ data.cityWhere }}. Мы предлагаем разместить рекламу любого формата как внутри, так и снаружи автобусов и других транспортных средств общественного транспорта {{ data.cityGent }}. | |
| .wrapDescription.wrap | |
| .fl.pRight20.advantage-list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template lang="pug"> | |
| section | |
| div.bgGray | |
| div.wrap.pBottom20 | |
| h1 Создайте медиаплан за минуту! | |
| div Результаты медиапланирования выдаются уже в виде списка рекламных поверхностей в Корзине. Также вы можете сохранить их в вашем кабинете. Обратите внимание, что стоимость печати рассчитывается отдельно. | |
| p(v-if="nothing_found" style='color:#F00; font-weight:bold;') Медиаплан не может быть сформирован, поскольку нет необходимого количества поверхностей, отвечающих заданным параметрам. Попробуйте изменить параметры медиаплана или воспользуйтесь #[a(href="/billboards") ручным поиском]. | |
| div.clear | |
| .whiteBg.mTop20.pBottom20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * пример простого А/Б тестирования страницы. | |
| * | |
| * Описание задачи: | |
| * Нужно сделать простейшую систему для сплит-тестирования (А-Б-тестирования). В любом виде: просто скрипт, функции, | |
| * класс, что угодно, просто чтобы это был рабочий и прозрачный код. | |
| * То есть, запускается какой-то скрипт, имеющий какой-то URL, система должна поочередно назначать каждому следующему | |
| * пользователю (=браузеру) вариант А (1) или Б (2), чередуя варианты строго по порядку, и запоминать, какой вариант | |
| * пользователю назначен (т.е. если пользователь зашел на вариант 2, то при любом следующем заходе он должен |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Класс-хэлпер для модуля прием платежей module/mod_payment.php | |
| * | |
| * документация по яндекс кассе | |
| * https://yandex.ru/support/checkout/payments/api.html | |
| * https://kassa.yandex.ru/docs/guides/#bystryj-start | |
| * https://kassa.yandex.ru/docs/checkout-api/#ispol-zowanie-api | |
| * кабинет https://money.yandex.ru/my/tunes | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //версия 200 - 2.13 | |
| function checkMail2MD_all() { | |
| // api_key для кабинета https://1atu.moidokumenti.ru | |
| var api_key = ''; | |
| var api_url = "https://1atu.moidokumenti.ru/api/"; | |
| // рекламные источники в Мои Документы: | |
| // [{id=6, title=Живосайт}, {id=7, title=Заявка}, {id=8, title=Booking}, {id=9, title=Звонок}] | |
| // id рекламного источника. задавать в каждой функции _checkMail в переменной var advertId; | |
| var advertId; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * Class resizeImageHelper | |
| * User: Smilik Anatolii | |
| * Date: 24.11.2016 | |
| * Time: 17:06 | |
| */ | |
| namespace allbb\lib\helpers\workWithImages; |