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
| <?php | |
| /** | |
| * @package Joomla.Site | |
| * @subpackage com_users | |
| * | |
| * @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. | |
| * @license GNU General Public License version 2 or later; see LICENSE.txt | |
| */ | |
| defined('_JEXEC') or die; |
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
| RewriteCond %{HTTP:SSL} !1 | |
| RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301] | |
| RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] | |
| RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
| RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ | |
| RewriteRule ^index\.php$ http://domain.ru/ [R=301,L] |
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
| SELECT alias FROM ****_zoo_item WHERE created BETWEEN '2016-10-01 00:00:00' and '2016-10-29 23:59:59'; |
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
| function MobileDetect() { | |
| var UA = navigator.userAgent.toLowerCase(); | |
| return (/android|webos|iris|bolt|mobile|iphone|ipad|ipod|iemobile|blackberry|windows phone|opera mobi|opera mini/i.test(UA)) ? true : false; | |
| } | |
| jQuery(document).ready(function($) { | |
| if (!MobileDetect()) { | |
| var header = $("#header .main-menu"); | |
| $(window).scroll(function() { | |
| var scroll = $(window).scrollTop(); |
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
| $documentbody = JResponse::getBody(); | |
| $documentbody = str_replace ("</body>", $code." </body>", $documentbody); | |
| JResponse::setBody($documentbody); |
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
| $jinput = JFactory::getApplication()->input; | |
| return $jinput->server->get('REMOTE_ADDR', '', ''); |
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
| $session = JFactory::getSession(); | |
| $session->set('_smsc_request_id_last', $id); | |
| $id=$session->get('_smsc_request_id_last', false); |
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
| $user = JFactory::getUser(); | |
| $user->phone; |
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
| <?php | |
| defined('_JEXEC') or die; | |
| //need: https://github.com/Lullabot/amp-library | |
| require_once '/amp/vendor/autoload.php'; | |
| use Lullabot\AMP\AMP; | |
| use Lullabot\AMP\Validate\Scope; | |
| <?php $checkamp = $_SERVER['REQUEST_URI']; ?> |
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
| Попытка | |
| Лог("Начата выгрузка на ftp"); | |
| ИмяFTPСервера = "имя сервера"; | |
| ПортFTPСоединения = "21"; | |
| ПользовательFTPСоединения = "логин для подключения к ftp"; | |
| ПарольFTPСоединения = "пароль для подключения к ftp"; | |
| ПассивноеFTPСоединение = Ложь; | |
| Соединение = Новый FTPСоединение(ИмяFTPСервера, ПортFTPСоединения,ПользовательFTPСоединения,ПарольFTPСоединения, ,ПассивноеFTPСоединение); | |
| НайденныеФайлы = НайтиФайлы("D:\1C\SITEOBMEN\1cbitrix\", "*.*", Истина); //папка с которой все будет копировать на ftp |