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 | |
/** | |
* Использование буферизации вывода для включения файла PHP в строку. | |
* http://php.net/manual/ru/function.ob-start.php | |
* http://php.net/manual/ru/function.ob-get-clean.php | |
*/ | |
$string = get_include_contents('somefile.php'); | |
function get_include_contents($filename) { | |
if (is_file($filename)) { |
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
https://docs.modx.com/extras/revo/formit | |
https://modx.com/extras/package/formit | |
https://modx.com/extras/package/recaptchav2 | |
// Обработчик формочки перед <form... | |
[[!FormIt? | |
&hooks=`recaptchav2,spam,email,redirect,FormItAutoResponder` | |
&emailTpl=`email-send-tpl` | |
&emailTo=`[[++email]]` |
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
alias lampp="sudo /opt/lampp/lampp start" | |
alias lampp-start="sudo /opt/lampp/lampp start" | |
alias lampp-stop="sudo /opt/lampp/lampp stop" | |
alias lampp-status="sudo /opt/lampp/lampp status" | |
alias lampp-restart="sudo /opt/lampp/lampp restart" | |
alias lampp-reload="sudo /opt/lampp/lampp reload" | |
alias nr="npm run" | |
alias rc="~/clearcache.sh" | |
alias ffd="/home/common/apps/firefoxdev/firefox" | |
alias gfns="find ./ -printf '%f\n'" |
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
/************************************** | |
1. sudo gedit /opt/lampp/etc/httpd.conf | |
uncomment line: | |
**************************************/ | |
Include etc/extra/httpd-vhosts.conf | |
/*************************************************** | |
2. sudo gedit /opt/lampp/etc/extra/httpd-vhosts.conf | |
add this code to the end file: | |
***************************************************/ |
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
@font-face { | |
font-family: 'Proxima Nova'; | |
src: url('../fonts/proximanova-bold-webfont.eot'); | |
src: url('../fonts/proximanova-bold-webfont.eot?#iefix') | |
format('embedded-opentype'), | |
url('../fonts/proximanova-bold-webfont.woff2') format('woff2'), | |
url('../fonts/proximanova-bold-webfont.woff') format('woff'), | |
url('../fonts/proximanova-bold-webfont.ttf') format('truetype'), | |
url('../fonts/proximanova-bold-webfont.svg#proxima_novabold') | |
format('svg'); |
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
Осуществляется по данному адресу: | |
https://vk.com/dev/pages.clearCache | |
В инпут нужно вставить ссылку и нажать выполнить. | |
После этого кэш ссылки в вконтакте очистится и можно будет получить новый контент например: | |
<meta property="og:image" content="image.jpg" /> |
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
<meta property="og:title" content="Name of copany" /> | |
<meta property="og:site_name" content="Name of copany" /> | |
<meta property="og:locale" content="ru_RU" /> | |
<meta property="og:description" content="Desc of company" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:url" content="test.com" /> | |
<meta property="og:image" content="/path/to/the/img.jpg" /> | |
<meta property="vk:image" content="/path/to/the/img.jpg" /> |
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
RewriteEngine On | |
# Редирект с домена на домен | |
RewriteCond %{HTTP_HOST} a-b.ru | |
RewriteRule (.*) http://ab.ru/$1 [R=301,L] | |
# Редирект с пути на путь | |
Redirect /path/to/old/file/old.html /path/to/new/file/new.html | |
#Редирект на url другого сайта |
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
<div class="question__main"> | |
<div class="question__icon"></div> | |
<div class="question__content"> | |
<div class="question__title"> | |
ВОПРОС:<br> | |
Можно ли выписать такого человека без его согласия? | |
</div> | |
<div class="question__answer"> |