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_value open_basedir "/path:/tmp" | |
php_value mail.add_x_header 1 | |
php_value mail.log /path/mail.log | |
php_value auto_prepend_file /path/postlogger.php |
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 | |
/** | |
* Bitrix24 | |
* | |
* Интеграция с Битрикс24 - создание лидов | |
* | |
* @category snippet | |
* @version 0.1 | |
* @internal @properties &url=URL;text; &user_id=Assigned user ID;text; | |
* @internal @installset sample |
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 | |
/** | |
* UploadSeparator | |
* | |
* Separate upload folders for each user group | |
* | |
* @category plugin | |
* @version 0.1.0 | |
* @author kassio | |
* @internal @properties &folders=Groups to folders relation;text;1==44w9mFQp||2==jG7h8-Mv &common_folder=Name of the common folder;text;common |
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 | |
if (!class_exists('ZipArchive')) { | |
echo 'ZipArchive not available!'; | |
} | |
ini_set('memory_limit', -1); | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); |
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 | |
return [ | |
'title' => 'Слайд', | |
'show_in_templates' => 1, | |
'container' => 'main_cycle', | |
'templates' => [ |
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 CFormCustomValidatorPhone | |
{ | |
public function GetDescription() | |
{ | |
return [ | |
'NAME' => 'custom_phone', // идентификатор | |
'DESCRIPTION' => 'Телефон', // наименование | |
'TYPES' => ['text'], // типы полей |
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
#!/bin/bash | |
# basic script, before use need change logins,passwords in this script | |
# put this script in project folder and run: sh evo.sh | |
#variables | |
EVO_VERSION="3.x-dev" | |
INSTALL_TYPE=1 | |
DATABASE_TYPE="mysql" | |
DATABASE_SERVER="localhost" | |
DATABASE_NAME="DB" |
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() { | |
var wrap = document.querySelector('.tdb-autoload-wrap'), | |
base = location.href; | |
if (wrap) { | |
window.addEventListener('scroll', function(e) { | |
var wndTop = window.scrollY, | |
wndBottom = wndTop + window.innerHeight, | |
wndHeight = window.innerHeight, | |
currentArticle, |
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 | |
if ($modx->event->name == 'OnDocFormSave') { | |
$document = $modx->getDocument($id); | |
if ($document['template'] == 6) { | |
$content = $modx->runSnippet('PageBuilder', [ | |
'docid' => $id, | |
'container' => 'page', | |
'placement' => 'tv', | |
'tv' => '11', |
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
#redirect http to https | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteCond %{HTTP_HOST} ^(.*)$ | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] | |
# without www all domains | |
RewriteCond %{HTTP_HOST} . | |
RewriteCond %{HTTP_HOST} !^domain\.ru$ [NC] | |
RewriteRule ^(.*)$ https://domain.ru/$1 [R=301,L] |
OlderNewer