diff --git a/admin/script.php b/admin/script.php index d612c10..bd0dfad 100644 --- a/admin/script.php +++ b/admin/script.php @@ -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 diff --git a/enigma.php b/enigma.php index ea7bf11..0c6f6c1 100644 --- a/enigma.php +++ b/enigma.php @@ -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