Skip to content
Snippets Groups Projects
Commit 09f72aba authored by Jonas Leder's avatar Jonas Leder
Browse files

decide on track url between normal and tor version

parent 4c202ff3
No related branches found
No related tags found
No related merge requests found
Pipeline #515 passed
<?php
include "config.php";
include "menue.php";
function getHeader($pagetitle, $navselect)
{
$menu = getMenu($navselect);
if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) {
$trackURL = $trackURLTor;
} else {
$trackURL = $trackURLNormal;
}
echo(<<<EOF
<!DOCTYPE html >
<html lang = "de" >
......@@ -45,7 +52,7 @@ function getHeader($pagetitle, $navselect)
</header >
<div id = "content" >
<!--Matomo Image Tracker -->
<img src = "https://matomo.jonasled.de/matomo.php?idsite=1&amp;rec=1" style = "border:0" alt = "" />
<img src = "$trackURL" style = "border:0" alt = "" />
<!--End Matomo -->
EOF);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment