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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:html="http://www.w3.org/TR/REC-html40" | |
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> | |
<xsl:template match="/"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>XML Sitemap</title> |
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 | |
class JRegistry extends \Joomla\Registry\Registry {} | |
abstract class JRegistryFormat extends \Joomla\Registry\AbstractRegistryFormat {} | |
class JRegistryFormatIni extends \Joomla\Registry\Format\Ini {} | |
class JRegistryFormatJson extends \Joomla\Registry\Format\Json {} | |
class JRegistryFormatPhp extends \Joomla\Registry\Format\Php {} | |
class JRegistryFormatXml extends \Joomla\Registry\Format\Xml {} | |
class JStringInflector extends \Joomla\String\Inflector {} | |
abstract class JStringNormalise extends \Joomla\String\Normalise {} | |
class JData extends \Joomla\Data\DataObject {} |
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 | |
function getInfoBrowser($agent = '') | |
{ | |
if (empty($agent)) { | |
$agent = $_SERVER['HTTP_USER_AGENT']; | |
} | |
$browserInfo = []; | |
$browserInfo['ip'] = $_SERVER['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
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
WHITE='\033[0m' | |
site=test.ru | |
directory="/var/www/html" | |
adr=$( curl -s https://api.github.com/repos/joomla/joomla-cms/releases/latest | grep browser_download_url.*Stable-Full_Package.tar.gz | awk '{ print $2 }' | tr -d \" ) | |
cd $directory | |
wget $adr | |
tar xvzf *Stable-Full_Package.tar.gz -C $directory/$site | |
rm $directory/*Stable-Full_Package.tar.gz |
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 tableSearch(searchId, tableId) { | |
var phrase = document.getElementById(searchId); | |
var table = document.getElementById(tableId); | |
var regPhrase = new RegExp(phrase.value, 'i'); | |
for (var i = 1; i < table.rows.length; i++) { | |
flag = regPhrase.test(table.rows[i].cells[0].innerHTML); | |
if (flag) { | |
table.rows[i].style.display = ''; | |
} else { | |
table.rows[i].style.display = 'none'; |
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 () { | |
// matches | |
if (!Element.prototype.matches) { | |
Element.prototype.matches = Element.prototype.matchesSelector || | |
Element.prototype.webkitMatchesSelector || | |
Element.prototype.mozMatchesSelector || | |
Element.prototype.msMatchesSelector; | |
} |