26 января 2023
Нет комментариев
if(str_ireplace($array,'',$str)!=$str){ echo 'found'; }
if(str_ireplace($array,'',$str)!=$str){ echo 'found'; }
В примере нужен для работы эквайринга от СберБанка.
Проверить работу:
curl -I https://securepayments.sberbank.ru/
Загрузить сертификаты
wget --no-check-certificate https://securepayments.sberbank.ru/wiki/lib/exe/fetch.php/certificates:add:cert.rar
Распаковать
yum install unar
unar certificates:add:cert.rar
или
yum install unrar
unrar x certificates:add:cert.rar
Установка
update-ca-trust enable cp Cert_CA.pem /etc/pki/ca-trust/source/anchors/ update-ca-trust extract
$mail->SMTPOptions=array( 'ssl'=>array( 'verify_peer'=>false, 'verify_peer_name'=>false, 'allow_self_signed'=>true ) );
input[type=radio]{ accent-color:green; }
function responsiveCarousel(){ var ww=$(window).width(); var owl_structure=$(".escort .structure .items"); if(ww>767){ if(typeof owl_structure.data('owl.carousel')!='undefined'){ owl_structure.data('owl.carousel').destroy(); } owl_structure.removeClass('owl-carousel').removeClass('owl-theme'); } else if(ww<768){ owl_structure.addClass('owl-carousel').addClass('owl-theme'); owl_structure.owlCarousel({ loop:false, dots:false, nav:true, items:1, margin:0, }); owl_structure.on('changed.owl.carousel',function(e){ $('.escort .structure .counter span').text(e.item.index+1); }); } } $(document).ready(function(){ responsiveCarousel(); $(window).on('resize',function(){ responsiveCarousel(); }); });
wget --no-check-certificate https://www.rarlab.com/rar/rarlinux-x64-5.7.1.tar.gz tar -xvzf rarlinux-x64-5.7.1.tar.gz ~/rar/unrar x public_html.rar
Например, изменить расширение файлов с .jpg-productpagedesktop на .jpg
mmv \*.jpg-productpagedesktop \#1.jpg