This file contains hidden or 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
<?$APPLICATION->IncludeFile( | |
SITE_TEMPLATE_PATH."/include/file.php", | |
Array(), | |
Array("MODE"=>"text", "NAME" => "Название при редактировании") | |
);?> |
This file contains hidden or 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
#убираем <p> из таблиц | |
<p>(.*)([\n]*[\t]*)+</p> | |
$1 | |
#убираем <em> из таблиц | |
<em>(.*)([\n]*[\t]*)+</em> | |
$1 |
This file contains hidden or 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 | |
find . -name "*.jpg" -exec convert -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -monitor -colorspace RGB {} {} \; | |
find . -name "*.jpeg" -exec convert -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -monitor -colorspace RGB {} {} \; | |
find . -name "*.gif" -exec convert -monitor -strip {} {} \; | |
find . -name "*.png" -exec convert -monitor -strip {} {} \; | |
find . -iname *.png -print0 |xargs -0 optipng -o5; |
This file contains hidden or 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
<td>[\n\r\t]+<p>(.+)[\n\r\t]+</p>[\n\r\t]+</td> |
This file contains hidden or 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 | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] | |
вариант 2 | |
RewriteEngine On |
This file contains hidden or 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
<? | |
AddEventHandler("main", "OnEpilog", "OnEpilogHandler"); | |
function OnEpilogHandler() | |
{ | |
global $APPLICATION; | |
if (!defined('ERROR_404') && intval($_GET["PAGEN_1"]) > 0) { | |
$APPLICATION->SetPageProperty("title", $APPLICATION->GetPageProperty("title") . " - страница " . intval($_GET["PAGEN_1"]) ); | |
} | |
} |