[php] as
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- if($cmd == 'Поддержка' || $cmd == 'поддержка'){
- date_default_timezone_set('Europe/tallinn');
- $today = date(N);
- if(intval($closing_hours[$today - 1]) > 0)
- $today = date(N,strtotime("-".intval($closing_hours[$today - 1])." hours"));
- if ((date("H:i") > $opening_hours[$today] && ((date("Y-m-d H:i") < date("Y-m-d H:i", strtotime('tomorrow +'.intval($closing_hours[$today]).' hours'))))) || date("H:i") < $closing_hours[$today] &&
- ((date("Y-m-d H:i") < date("Y-m-d H:i", strtotime('today +'.intval($opening_hours[$today]).' hours'))))) {
- $vk->request('messages.send', ['peer_id' => $id, 'message' => '', 'attachment' => "photo{$img9[$rand_img]}"]);
- $vk->sendMessage($id, "Вы сейчас в очереди. Один из наших живых специалистов рассмотрит ваше дело и ответит в течение следующих 30 минут.
- Мы хотим помочь вам как можно быстрее, поэтому расскажите нам подробнее о вашей проблеме.");
- $vk->sendMessage("$users_admin", "✉ EnotKeys: @id{$id} ({$first_name} {$first_name}) написал сообщение.<br>https://vk.com/gim188761943?msgid=67461&sel={$id}");
- $label_time = $closing_hours[$today];
- } else {
- $vk->request('messages.send', ['peer_id' => $id, 'message' => '', 'attachment' => "photo{$img11[$rand_img]}"]);
- $vk->sendMessage($id, "Все наши операторы сейчас оффлайн. Оставьте сообщение, и мы ответим на него в ближайшее время пн,вт,ср,чт,пт 09:00 - 23:00.");
- }
- }
Editor
You can edit this paste and save as new: