$str_0 = '';
$str_1 = '';
$str_2 = '';
$y = 0;
for($x = 1; $x <= 30; $x++) {
if($x % 2 !== 0) {
$str_1 .= $x . ',';
} else {
$str_2 .= $x . ',';
}
$y++;
if($y == 10) {
$str_0 .= $str_1 . $str_2;
$str_1 = '';
$str_2 = '';
$y = 0;
}
}
echo substr($str_0, 0, strlen($str_0) - 1);
//1,3,5,7,9,2,4,6,8,10,11,13,15,17,19,12,14,16,18,20,21,23,25,27,29,22,24,26,28,30
Я знаю, что форумы сейчас не особо актуальны, но есть ощущение, что через 1-2 года они вновь будут популярны. Так как люди потихоньку уже понимают, что крупные корпорации и соц. сети за ними следят.
.brands__item:hover .brands__image;{
.brands__item:hover .brands__image {
$path = '';
$path = dirname(__FILE__) . '/';
$line = 25;
$distance = 94;
if($distance > $line) {
$parts = intval($distance / $line);
for($x = 0; $x < $parts; $x++) {
echo 'Устанавливаем точку номер: ', $x . PHP_EOL;
}
}
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
if(strpos($user_agent, 'bot') !== false) {
echo 'бот';
}
46.229.168.148 - - [07/Oct/2019:06:25:11 +0300] "GET /shop/239349910-zerkalo-toyota-wish HTTP/1.1" 200 7292 "-" "Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html)"
144.76.3.79 - - [07/Oct/2019:06:25:11 +0300] "GET /shop/621533900-blok-upravleniya-klimat-kontrolem-toyota-ist HTTP/1.1" 200 7143 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)"
144.76.3.79 - - [07/Oct/2019:06:25:13 +0300] "GET /shop/621533911-blok-upravleniya-klimat-kontrolem-nissan-avenir HTTP/1.1" 200 7192 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)"
46.229.168.143 - - [07/Oct/2019:06:25:13 +0300] "GET /shop/1633709-podnozhka-mitsubishi-delica HTTP/1.1" 200 7000 "-" "Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html)"
144.76.3.79 - - [07/Oct/2019:06:25:14 +0300] "GET /shop/621533914-blok-upravleniya-klimat-kontrolem-nissan-terrano HTTP/1.1" 200 7195 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)"
178.154.200.66 - - [07/Oct/2019:06:25:15 +0300] "GET /shop/446937721-zerkalo-dlya-nissan-cedric HTTP/1.1" 404 3699 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)"
178.154.200.66 - - [07/Oct/2019:06:26:19 +0300] "GET /turbo_feed/index HTTP/1.1" 200 7591 "-" "Mozilla/5.0 (compatible; YandexTurbo/1.0; +http://yandex.com/bots)"
54.36.148.50 - - [07/Oct/2019:06:26:21 +0300] "GET /userfiles/product_img/photos/8635/863561_0.jpg HTTP/1.1" 404 3699 "-" "Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/)"
178.154.200.66 - - [07/Oct/2019:06:26:25 +0300] "GET /shop/31984020-fara-honda-fit HTTP/1.1" 200 7091 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)"
178.154.200.66 - - [07/Oct/2019:06:26:30 +0300] "GET /robots.txt HTTP/1.1" 200 83 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)"
46.229.168.143 - - [07/Oct/2019:06:26:30 +0300] "GET /shop/290815930-stop-signal-nissan-skyline HTTP/1.1" 200 7110 "-" "Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html)"
178.154.200.66 - - [07/Oct/2019:06:26:33 +0300] "GET /turbo_feed/index HTTP/1.1" 200 7594 "-" "Mozilla/5.0 (compatible; YandexTurbo/1.0; +http://yandex.com/bots)"
66.249.64.42 - - [07/Oct/2019:06:26:33 +0300] "GET /video/ HTTP/1.1" 200 5979 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
31.173.241.45 - - [07/Oct/2019:06:26:39 +0300] "GET /shop/?brand=Toyota&category=Nose%20Cut&page=17 HTTP/2.0" 200 30338 "https://abakan.domain.com/shop/?brand=Toyota&category=Nose%20Cut&page=16" "Mozilla/5.0 (Linux; Android 5.1; LYO-L21 Build/HUAWEILYO-L21; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/75.0.3770.101 Mobile Safari/537.36 YandexSearch/8.60 YandexSearchBrowser/8.60"
<a class="logo-link" href="https://korolev.by/">
<img src="https://korolev.by/wp-content/uploads/2019/09/logo.png" alt="Korolev." class="regular-logo">
<img src="http://wp.magnium-themes.com/saxon/saxon-1/wp-content/uploads/2018/11/saxon-mainlogo-white2x.png" alt="Korolev." class="light-logo">
</a>
var re = 'яблоки';
var reg = new RegExp(re,"g");
var str = 'яблоки круглые и яблоки сочные.';
var str = str.replace(reg, '<a href="#">' + re + '</a>');
alert(str);
5.46
Методы messages.send и messages.sendSticker принимают параметр random_id вместо guid. Метод account.getPushSettings возвращает поле peer_id вместо chat_id и user_id. Метод account.setSilenceMode принимает параметр peer_id вместо chat_id и user_id. Метод messages.getHistoryAttachments возвращает товары, записи со стены и комментарии в виде ссылок.
Влияет на методы messages.send, account.getPushSettings, account.setSilenceMode, messages.getHistoryAttachments
5.38
Методы apps.get и apps.getCatalog возвращают объект photo для полей screenshots. Добавлены поля in_read, out_read в ответы методов messages.getDialogs и messages.getHistory.
Добавлен параметр peer_id для методов messages.send, messages.sendSticker, messages.deleteDialog, messages.setActivity и messages.getHistory.
Влияет на методы messages.send, messages.deleteDialog, messages.setActivity, messages.getDialogs, messages.getHistory, apps.get, apps.getCatalog
(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");
var domain_name = window.location.hostname;
let metrics = {};
metrics["domain1.ru"] = 11223344;
metrics["domain2.com"] = 33556677;
metrics["domain3.su"] = 88776655;
ym(metrics[domain_name], "init", {clickmap: true, webvisor: true});