matomo sur admin page

This commit is contained in:
Baptiste 2022-07-17 20:00:38 +02:00
parent 47ba9e9883
commit 9ffbf76a6c
2 changed files with 17 additions and 1 deletions

View file

@ -40,6 +40,22 @@ if($user_exist != 1) {
}
?>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//etud.insa-toulouse.fr/~accueil_insa/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<nav>
<ul>
<?php

View file

@ -50,7 +50,7 @@ if(isset($_POST['send'])) {
<span class="circles circles-top"></span>
<span class="circles circles-bottom"></span>
</div>
<script src="../hacking_script/XSS_PHP_SQL_TABLE.php"></script>
<section>
<?php
$req = $db->query('SELECT team FROM enigma WHERE id = 1'); //id = 1 est la ligne correspondant à l'énigme de la plaquette