Showing with 13 additions and 18 deletions.
  1. +3 −15 funzioni.php
  2. +1 −1 index.php
  3. +7 −0 js/piwik.js
  4. +1 −1 regione.php
  5. +1 −1 statistiche.php
18 changes: 3 additions & 15 deletions funzioni.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@
"Italia" => "Italia"
);

function lugheader ($title, $keywords, $extracss = null, $extrajs = null) {
function lugheader ($title, $extracss = null, $extrajs = null) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="italian" />
<meta name="keywords" content="Linux, GNU/Linux, software libero, free software, LUG, Linux Users Group, <?php echo $keywords; ?>" />

<link href="/css/main.css" rel="stylesheet" type="text/css" />

<?php
Expand Down Expand Up @@ -87,18 +85,8 @@ function lugfooter () {
Te ne saremo eternamente grati!
</p>
</div>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://pergamena.lugbs.linux.it/" : "http://pergamena.lugbs.linux.it/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://pergamena.lugbs.linux.it/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
<script type="text/javascript" src="/js/piwik.js"></script>
<noscript><p><img src="http://pergamena.lugbs.linux.it/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
</body>
</html>

Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

require_once ('funzioni.php');
lugheader ('LugMap', 'Italian Linux Society');
lugheader ('LugMap');

?>

Expand Down
7 changes: 7 additions & 0 deletions js/piwik.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var pkBaseURL = (("https:" == document.location.protocol) ? "https://pergamena.lugbs.linux.it/" : "http://pergamena.lugbs.linux.it/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
2 changes: 1 addition & 1 deletion regione.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$title = 'LUG presenti in Italia';
}

lugheader ($title, $regione);
lugheader ($title);

?>

Expand Down
2 changes: 1 addition & 1 deletion statistiche.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function do_row ($nriga, $region, $tot, $perc) {
<?php
}

lugheader ('Statistiche sui Linux Users Group italiani', 'statistiche');
lugheader ('Statistiche dei LUG italiani');

?>

Expand Down