This file contains 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
function save_utm(){ | |
if( isset( $_GET['utm_source'] ) ) { | |
setcookie('utm_source',$_GET['utm_source'], time()+ (90*86400)); | |
} | |
if( isset( $_GET['utm_medium'] ) ) { | |
setcookie('utm_medium',$_GET['utm_medium'], time()+ (90*86400)); | |
} |
This file contains 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 | |
/** | |
* Template Name: Оплата | |
*/ | |
?> | |
<?php while( have_posts() ) : the_post(); | |
$more = 1; // отображаем полностью всё содержимое поста | |
the_title(); // эта функция выводит заголовок | |
the_content(); // выводим контент |
This file contains 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
<pre> | |
<?php | |
$leadData = [ | |
'price_ot' => 4000, // Цена от... | |
'price_do' => 12000, // Цена до... | |
's_yers[1]' => 2016, //Год выпуска от... | |
'po_yers[1]' => 2019, //Год выпуска до... | |
'marka_id[0]' => 0, //Все марки модели |
This file contains 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 | |
namespace App\Http\Controllers\telegram; | |
use App\Http\Controllers\bitrix\user; | |
use App\Http\Controllers\BX; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Telegram\Bot\Api; | |
use Telegram\Bot\Keyboard\Keyboard; |
This file contains 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
preg_match_all('/([a-z0-9_\.\-])+\@(([a-z0-9\-])+\.)+([a-zа-я0-9]{2,4})+/i', $string, $matches); | |
$result=implode(", ", $matches[0]); |
This file contains 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
$("#liveSearchRims").on('keyup', function(){ | |
var value = $(this).val().toLowerCase(); | |
$(".colTableSearch").each(function () { | |
if ($(this).text().toLowerCase().search(value) > -1) { | |
$(this).show(); | |
$(this).last().show(); | |
} else { | |
$(this).hide(); | |
} | |
}); |
This file contains 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
/* | |
* | |
* ████████████████████████████████████████████████████████ | |
* █────██────██────███───██─████────█████────██────██────█ | |
* █─██─██─██─██─██──███─███─████─██─█████─██─██─██─██─██─█ | |
* █────██────██─██──███─███─████─██─█████────██────██─██─█ | |
* █─█████─██─██─██──███─███─████─██─█████─█████─█─███─██─█ | |
* █─█████─██─██────███───██───██────██─██─█████─█─███────█ | |
* ████████████████████████████████████████████████████████ |
This file contains 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
curl -d "line2=1&smskey=5b28cf9r&action=SMS&telnum=14043833639&smscontent=test padilo&send=Send" -H "Content-Type: application/x-www-form-urlencoded" -X POST "http://admin:[email protected]:28000/default/en_US/sms_info.html?type=sms" |
This file contains 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
function save_utm(){ | |
if( isset( $_GET['utm_source'] ) ) { | |
setcookie('utm_source',$_GET['utm_source'], time()+ (90*86400)); | |
} | |
if( isset( $_GET['utm_medium'] ) ) { | |
setcookie('utm_medium',$_GET['utm_medium'], time()+ (90*86400)); | |
} |
This file contains 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 BX extends Controller{ | |
/* | |
Этот класс для добавления/редактирования/обновления сущностей. | |
По конструкту требует url вебхука | |
*/ | |