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
<style>.ie-msg{padding:10px;background:darkred;color:#fff;width:100%;text-align:center;}.ie-msg a{color:#fff;text-decoration:underline;}.ie-msg a:hover{text-decoration:none;}</style><!--[if lt IE 11]><div class="ie-msg">Вы используете устаревший браузер: работа сайта может быть нестабильной, поэтому рекомендуем установить браузер <a href="https://www.google.ru/chrome/browser/desktop/" target="_blank">Google Chrome</a>.</div><![endif]--> |
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
<script> | |
$( document ).ready( function () { | |
var answer = $.ajax( { | |
'url': '/file.php?param=<?=$param?>', | |
'async': false, // для получения значения в переменную обязательно false | |
beforeSend: function () {}, | |
success: function ( data ) { | |
// console.log(data); | |
}, | |
error: function ( data ) { |
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
<div class="sort_by">Сортировать по: | |
<? | |
$sort_ar = array( | |
'наименованию' => 'NAME', | |
'цене' => 'PRICE', | |
); | |
$dir_ar = array( | |
'возр.' => 'ASC', | |
'убыв.' => 'DESC', | |
); |
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
/* mobile */ | |
@media (min-width: 320px) and (max-width: 1199px) {} | |
@media (min-width: 320px) and (max-width: 1024px) {} | |
@media (min-width: 320px) and (max-width: 768px) {} | |
@media (min-width: 320px) and (max-width: 767px) {} |
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
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE image/svg+xml | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript |
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 | |
$html = file_get_contents($url); | |
$doc = new DOMDocument(); | |
@$doc->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8')); | |
$images = $doc->getElementsByTagName('img'); | |
$images_count = count($images); | |
if ($images_count > 0) { | |
$imgs = array(); | |
foreach ($images as $key => $img) { | |
$imgs[$key]['src'] = substr($img->getAttribute('src'), 0, 1) != '/' ? '/' . $img->getAttribute('src') : $img->getAttribute('src'); |
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
$image = new JImage($_SERVER['DOCUMENT_ROOT'] . $img_path); | |
$thumbs = $image->createThumbs(array('300x300'), JImage::SCALE_INSIDE, JPATH_SITE . '/images/thumbs'); | |
$img = !empty($thumbs[0]->getPath()) ? '<img src="' . str_replace($_SERVER['DOCUMENT_ROOT'], '', $thumbs[0]->getPath()) . '" alt="" />' : ''; |
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
<script async defer src="/js/jquery.min.js"></script> | |
<script async defer src="/js/scripts.min.js"></script> | |
<link rel="stylesheet" href="/css/styles.min.css" media="none" onload="if(media!='all')media='all'"> | |
<noscript><link rel="stylesheet" href="/css/styles.min.css"></noscript> | |
<!-- <style><?php echo file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/css/css.min.css');?></style> --> |
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 | |
/** | |
* Mobile Detect Library | |
* ===================== | |
* | |
* Motto: "Every business should have a mobile detection script to detect mobile readers" | |
* | |
* Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). | |
* It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. | |
* |
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 | |
/** Adminer - Compact database management | |
* @link https://www.adminer.org/ | |
* @author Jakub Vrana, http://www.vrana.cz/ | |
* @copyright 2007 Jakub Vrana | |
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 | |
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) | |
* @version 4.2.5 | |
*/error_reporting(6135);$Jc=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($Jc||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Gh=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Gh)$$X=$Gh;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");if(isset($_GET["file"])){if($_SERVER["HTTP_IF_MODIFIED_SINCE"]){header("HTTP/1.1 304 Not Modified");exit;}header("Expires: ".gmdate("D, d M Y H:i:s",time()+365*24*60*60)." GMT");header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");if($_GET["file"]=="favicon.ico"){header("Content-Type: image/x-icon");echo | |
lzw_decompress("\0\0 |