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
<? | |
if (isset($_GET['useinit']) && !empty($_GET['useinit'])) | |
{ | |
session_start(); | |
$initStatus = strval($_GET['useinit']); | |
if ($initStatus == 'N') | |
{ | |
if (isset($_SESSION['USE_INIT'])) |
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
<? | |
AddEventHandler('main', 'OnEpilog', array('CMainHandlers', 'OnEpilogHandler')); | |
class CMainHandlers | |
{ | |
public static function OnEpilogHandler() | |
{ | |
global $APPLICATION; | |
if (isset($_GET['PAGEN_1']) && intval($_GET['PAGEN_1']) > 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
var show = true; | |
var countbox = ".factoid-block"; | |
if ($(countbox).length) { | |
$(window).on("scroll resize", function() { | |
if (!show) return false; | |
var e_top = $(countbox).offset().top; | |
var w_height = $(window).height(); | |
var e_height = $(countbox).outerHeight(); | |
var w_top = $(window).scrollTop(); |
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
Установка и настройка XAMPP | |
1. Скачать дистрибутив - https://www.apachefriends.org/download.html | |
2. Добавить флаг исполняемости: | |
chmod u+x ~/Загрузки/xampp-linux-x64-7.3.3-1-installer.run | |
3. Запустите от суперпользователя: | |
sudo ~/Загрузки/xampp-linux-x64-7.3.3-1-installer.run | |
4. Далее --> Галочка напротив XAMPP Core Files --> ... | |
5. В файле /opt/lampp/etc/httpd.conf раскомментировать строку: | |
Include etc/extra/httpd-vhosts.conf |
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 | |
$dateNum = $scriptProperties['date']; | |
$fullDate = $scriptProperties['full'] ? true : false; | |
if (!$fullDate) { | |
$monthNum = substr($dateNum,5,2); | |
$rusMonth = array( | |
'01' => 'Январь', | |
'02' => 'Февраль', | |
'03' => 'Март', |
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
================== | |
Общие | |
================== | |
{ | |
"binary_file_patterns": | |
[ | |
"*.dds", | |
"*.eot", | |
"*.gif", | |
"*.ico", |
NewerOlder