Commit 42b4fecf authored by John Fox Woland's avatar John Fox Woland

+ config.php

+ Rewrite rule to redirect /favicon.ico to /img/favicon.ico
parent e6bb4d92
/details
/реквизиты
/openvpn
/img/face-.jpg
/config.php
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/favicon.ico$
RewriteRule ^.*$ /img/favicon.ico [R=301,L]
<?php
return (object) [
'verification' => (object) [
'google' => 'C8nVlOb8NcFugEJ-YfaoIqdeWH1q8lRjPr12t0G-oIg',
'yandex' => '7a77d8ac778b6f24',
],
'analitics' => (object) [
'google' => 'UA-63354568-1',
'yandex' => '30554687',
]
];
......@@ -2,6 +2,7 @@
require(__DIR__ . '/lib/Tools.php');
header("Content-type: text/html; charset=utf-8");
$cfg = require(__DIR__ . '/config.php');
?>
<!DOCTYPE html>
......@@ -30,8 +31,8 @@
?>
<link href="<?=Tools::res('img/favicon.ico')?>" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<meta name="google-site-verification" content="C8nVlOb8NcFugEJ-YfaoIqdeWH1q8lRjPr12t0G-oIg" />
<meta name='yandex-verification' content='7a77d8ac778b6f24' />
<meta name="google-site-verification" content="<?=$cfg->verification->google?>" />
<meta name='yandex-verification' content='<?=$cfg->verification->yandex?>' />
</head>
<body>
<!-- Yandex.Metrika counter -->
......@@ -39,7 +40,7 @@
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter30554687 = new Ya.Metrika({id:30554687,
w.yaCounter = new Ya.Metrika({id:<?=$cfg->analitics->yandex?>,
webvisor:true,
clickmap:true,
trackLinks:true,
......@@ -59,7 +60,7 @@
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/30554687" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<noscript><div><img src="//mc.yandex.ru/watch/<?=$cfg->analitics->yandex?>" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<!-- Google analitics -->
......@@ -69,7 +70,7 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-63354568-1', 'auto');
ga('create', '<?=$cfg->analitics->google?>', 'auto');
ga('send', 'pageview');
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment