I'm playing around CouchCMS and it comes very handy to use <cms:log -something- />.
I hope someone could hint me why this simple code creates a log file, where that -something- outputs twice.
So, the output to log.txt goes like this:
I'm in no way a JS-programmer, and I guess, Couch does everything fine. However all my sites would have this Y counter. I just don't want the things get messed somehow.
I'm new here, so hello everybody from Ryazan, RUS and God bless the people created & contributing to CouchCMS.
I hope someone could hint me why this simple code creates a log file, where that -something- outputs twice.
- Code: Select all
<?php require_once'admin/cms.php'; ?>
<!DOCTYPE html>
<html lang="ru">
<head></head>
<body>
<ul>
<cms:log k_is_list />
</ul>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter25031039 = new Ya.Metrika({id:25031039,
webvisor:true,
clickmap:true,
trackLinks:true});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<!-- /Yandex.Metrika counter -->
</body>
</html>
<?php COUCH::invoke(); ?>
So, the output to log.txt goes like this:
=======================[2014-05-22 16:09:19]=======================
1
=======================[2014-05-22 16:09:21]=======================
1
I'm in no way a JS-programmer, and I guess, Couch does everything fine. However all my sites would have this Y counter. I just don't want the things get messed somehow.
I'm new here, so hello everybody from Ryazan, RUS and God bless the people created & contributing to CouchCMS.