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
<?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
JURI::getInstance()->toString() |
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
// API | |
$mainframe = JFactory::getApplication(); | |
$document = JFactory::getDocument(); | |
// Assign paths | |
$sitePath = JPATH_SITE; | |
$siteUrl = JURI::root(true); | |
// Requests | |
$option = JRequest::getCmd('option'); |
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_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
php_flag display_errors Off | |
###activate mod_deflate | |
SetOutputFilter DEFLATE | |
# Add caching headers for all files | |
ExpiresActive On | |
<FilesMatch \.css$> | |
ExpiresDefault "access plus 7 days" |
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
if ($_GET[from]=='targetmailru'){ | |
session_set_cookie_params(10800); | |
if (isset($_REQUEST[session_name()])) session_start(); | |
$_SESSION[tel]='216-45-27'; | |
} | |
if ($_GET[from]=='yadirect'){ | |
session_set_cookie_params(10800); |
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
atom-text-editor::shadow { | |
.wrap-guide { | |
visibility: hidden; | |
} | |
} |
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 echo JText::_('COM_ADVPOLL_VOTES'); ?> |
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 $alias = JFactory::getURI()->getPath(); | |
$jinput = JFactory::getApplication()->input; | |
$Itemid = $jinput->getInt('Itemid'); ?> | |
<form action="<?php echo $alias; ?>" method="post" > | |
<input name="searchword" id="mod-search-searchword" maxlength="200" class="input-text search" type="search" placeholder="Поиск по сайту"> | |
<input type="hidden" name="task" value="search"> | |
<input type="hidden" name="option" value="com_search"> | |
<input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>"> | |
</form> |