summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus2016-12-03 01:22:44 +0100
committerHorus2016-12-03 01:22:44 +0100
commit360a504a732bd061c44f227ed76d266d7a1af556 (patch)
tree0a338fdc3ed9e9701c45e65da402f95a5779ec95
parentfb1679e4e635968ba49826ec34e0f306ae0198f5 (diff)
downloadgospeladlershof.de-360a504a732bd061c44f227ed76d266d7a1af556.tar.gz
Integrates Piwik.
-rw-r--r--intern.gospeladlershof.de/chor.php4
-rw-r--r--intern.gospeladlershof.de/code/login.php2
-rw-r--r--intern.gospeladlershof.de/header.php23
3 files changed, 27 insertions, 2 deletions
diff --git a/intern.gospeladlershof.de/chor.php b/intern.gospeladlershof.de/chor.php
index a397ce2..57902f9 100644
--- a/intern.gospeladlershof.de/chor.php
+++ b/intern.gospeladlershof.de/chor.php
@@ -1,9 +1,9 @@
<?php
$title = "Chorbeschreibung";
-$class_konzert = 'class="active"';
+$class_konzert = '';
$class_index= '';
$class_proben= '';
-$class_chor= '';
+$class_chor= 'class="active"';
require_once __DIR__ . '/header.php';
require_once __DIR__ . '/code/db.php';
diff --git a/intern.gospeladlershof.de/code/login.php b/intern.gospeladlershof.de/code/login.php
index 9f8346c..ea758a4 100644
--- a/intern.gospeladlershof.de/code/login.php
+++ b/intern.gospeladlershof.de/code/login.php
@@ -19,6 +19,7 @@ if ( $mail === "Chor" || "chor" === $mail ) {
$_SESSION["success"] = "Erfolgreich eingeloggt. Der Nutzername 'chor' wird bald deaktiviert. Bitte benutze deine E-Mail-Adresse als Login-Name.";
$_SESSION["dontdisplaydeploybutton"] = 1;
+ $_SESSION["user"] = $mail;
header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect");
header("Location: /");
@@ -31,6 +32,7 @@ if ( $mail === "Chor" || "chor" === $mail ) {
$_SESSION["success"] = "Erfolgreich eingeloggt.";
$_SESSION["dontdisplaydeploybutton"] = 1;
+ $_SESSION["user"] = $mail;
header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect");
header("Location: /");
diff --git a/intern.gospeladlershof.de/header.php b/intern.gospeladlershof.de/header.php
index ad56e9d..1bbe634 100644
--- a/intern.gospeladlershof.de/header.php
+++ b/intern.gospeladlershof.de/header.php
@@ -44,6 +44,29 @@ if ( defined("LOGIN_SITE") && LOGIN_SITE ) {
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
+<!-- Piwik -->
+<script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(["setDomains", ["*.intern.gospeladlershof.de"]]);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="//a.iamfabulous.de/";
+ _paq.push(['setTrackerUrl', u+'js/index.php']);
+ _paq.push(['setSiteId', '23']);
+<?php if ( ! empty($_SESSION) && isset($_SESSION["user"]) ) {
+?>
+ _paq.push(['setCustomVariable', 1, "Visitor","<?php echo $_SESSION["user"]; ?>", "visit"]);
+<?php
+ }
+?>
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'js/index.php'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<noscript><p><img src="//a.iamfabulous.de/js/index.php?idsite=23" style="border:0;" alt="" /></p></noscript>
+<!-- End Piwik Code -->
+
</head>
<?php
if ( ! defined("LOGIN_SITE") || ! LOGIN_SITE ) {