Browse Source

Meer variabelen en alleen als user/admin

master
Rogier Neeleman 9 years ago
parent
commit
8cfee4d960
  1. 6
      application/views/header.php

6
application/views/header.php

@ -17,11 +17,15 @@
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->
<?php $burl=base_url('/'); if (($burl=="http://jury.scoutingutrecht.nl/") && ($this->session->regionaam != "")) { ?> <?php $burl=base_url('/');
if ($this->session->admin == "1") {$functie = "admin";} else {$functie="user";};
if (($burl=="http://jury.scoutingutrecht.nl/") && ($this->session->regionaam != "") && ($this->session->superadmin != "1")) { ?>
<script type="text/javascript"> <script type="text/javascript">
var _paq = _paq || []; var _paq = _paq || [];
_paq.push(["setDomains", ["*.jury.scoutingutrecht.nl"]]); _paq.push(["setDomains", ["*.jury.scoutingutrecht.nl"]]);
_paq.push(["setCustomVariable", 1, "regio", "<?php echo $this->session->regionaam; ?>", "visit"]); _paq.push(["setCustomVariable", 1, "regio", "<?php echo $this->session->regionaam; ?>", "visit"]);
_paq.push(["setCustomVariable", 2, "functie", "<?php echo $functie; ?>", "visit"]);
_paq.push(["setCustomVariable", 3, "user", "<?php echo $this->session->id; ?>", "visit"]);
_paq.push(['trackPageView']); _paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']); _paq.push(['enableLinkTracking']);
(function() { (function() {

Loading…
Cancel
Save