[2] | 1 | <?php
|
---|
| 2 | /************************************************************************/
|
---|
| 3 | /* Eleonline - Raccolta e diffusione dei dati elettorali */
|
---|
| 4 | /* by Luciano Apolito & Roberto Gigli */
|
---|
| 5 | /* http://www.eleonline.it */
|
---|
| 6 | /* info@eleonline.it luciano@aniene.net rgigli@libero.it */
|
---|
| 7 | /************************************************************************/
|
---|
| 8 | /* ultima modfifica: aggiunta rotazione 18 marzo 2009 */
|
---|
| 9 |
|
---|
[20] | 10 | if (stristr($PHP_SELF,"header.php")) {
|
---|
[2] | 11 | Header("Location: index.php");
|
---|
| 12 | die();
|
---|
| 13 | }
|
---|
[251] | 14 | if(!isset($nocell))$nocell='';
|
---|
[230] | 15 | ### tema mobile Futura 2
|
---|
| 16 | include("inc/mobile.php"); // riconoscimento mobile
|
---|
| 17 | $is_mobile=is_mobile();
|
---|
| 18 | if($is_mobile && $nocell!=1){
|
---|
| 19 | $tema="Futura2";
|
---|
| 20 | }
|
---|
| 21 |
|
---|
[348] | 22 |
|
---|
[2] | 23 | include("temi/$tema/index.php");
|
---|
| 24 | include("modules/Elezioni/language/lang-$lang.php");
|
---|
| 25 |
|
---|
[230] | 26 | function head(){
|
---|
[240] | 27 | global $csv,$tema,$tour,$sitename,$pagetitle,$simbolo,$siteurl,$siteistat;
|
---|
[347] | 28 | # echo '
|
---|
| 29 | # <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
---|
| 30 | # <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">';
|
---|
| 31 | echo '<!DOCTYPE html><html lang="it">';
|
---|
[2] | 32 | echo "<head>\n";
|
---|
| 33 | echo "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />";
|
---|
[233] | 34 | //echo "<title>Eleonline - Elezioni on line</title>\n";
|
---|
| 35 | echo '<title>'.$sitename.' '.$pagetitle.'</title>'."\n";
|
---|
[240] | 36 | echo "<meta name=\"title\" content=\"$sitename\" />\n";
|
---|
| 37 | echo "<meta name=\"description\" content=\"$pagetitle\" />\n";
|
---|
| 38 |
|
---|
| 39 | if(file_exists("modules/Elezioni/images/$siteistat.png")){
|
---|
| 40 | echo "<link rel=\"image_src\" href=\"modules/Elezioni/images/$siteistat.png\" />\n"; #img fb
|
---|
| 41 | }else{
|
---|
| 42 | echo "<link rel=\"image_src\" href=\"modules/Elezioni/images/logo.gif\" />\n"; #img fb
|
---|
| 43 | }
|
---|
| 44 |
|
---|
[2] | 45 | echo "<link rel=\"stylesheet\" href=\"temi/$tema/style.css\" type=\"text/css\" />\n\n\n";
|
---|
[350] | 46 | if(file_exists("temi/$tema/head.php")) include("temi/$tema/head.php");
|
---|
[241] | 47 |
|
---|
| 48 |
|
---|
| 49 |
|
---|
[2] | 50 | include("inc/javascript.php"); # rotazione (18 marzo 2009) tema tour
|
---|
[230] | 51 | ##### tema mobile
|
---|
| 52 | if (file_exists("temi/$tema/themeutils.php")) {
|
---|
| 53 | include("temi/$tema/themeutils.php"); #incluso x tema mobile
|
---|
| 54 | }
|
---|
[240] | 55 |
|
---|
[241] | 56 |
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 |
|
---|
[2] | 61 | echo "\n\n\n</head>\n";
|
---|
| 62 | # rotazione per tema tour
|
---|
| 63 | if (isset($_SESSION['ruota'])){$csv=1; echo "<body onload=\"loadpage()\"";}
|
---|
[247] | 64 | else echo "<body onload=\"maps()\"";
|
---|
[2] | 65 | if (!$csv) echo " style=\"background-image: url(temi/$tema/images/sfondo.jpg); background-repeat:repeat-x;\"";
|
---|
| 66 | echo " >\n";
|
---|
| 67 | include("inc/authors.php");
|
---|
| 68 |
|
---|
| 69 | include_once("modules/Elezioni/funzioni.php");
|
---|
[241] | 70 |
|
---|
| 71 |
|
---|
| 72 |
|
---|
[2] | 73 | if (!$csv)testata();
|
---|
[230] | 74 | }
|
---|
| 75 | head();
|
---|
[2] | 76 |
|
---|
| 77 | ?>
|
---|