source: trunk/admin/header.php@ 291

Last change on this file since 291 was 258, checked in by roby, 6 years ago
File size: 1.7 KB
Line 
1<?php
2/************************************************************************/
3/* Eleonline - Raccolta e diffusione dei dati elettorali */
4/* by Roberto Gigli & Luciano Apolito */
5/* http://www.eleonline.it */
6/* info@eleonline.it luciano@aniene.net rgigli@libero.it */
7/************************************************************************/
8
9
10if (!defined('ADMIN_FILE')) {
11 die ("You can't access this file directly...");
12}
13
14#include("config.php");
15#$dbi = mysql_connect($dbhost, $dbuname, $dbpass);
16#mysql_select_db($dbname);
17 if (isset($param['language'])) {
18 $_SESSION['lang']=substr($param['language'],0,2);
19 $lang=$_SESSION['lang'];
20 }
21 elseif (strlen($_SESSION['lang'])==2) $lang=$_SESSION['lang'];
22 else $lang=$language;
23if ($_SESSION['tema']=='facebook')
24 $tema=$_SESSION['tema'];
25else $tema='default';
26include("temi/$tema/index.php");
27include("modules/Elezioni/language/lang-$lang.php");
28
29$bgcolor1="#b0b0b0";
30function head() {
31 global $csv,$tema;
32 # echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
33 echo "<!DOCTYPE HTML>\n";
34 echo "<html>\n";
35 echo "<head>\n";
36 echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
37 echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n";
38 echo "<title>Eleonline - Elezioni on line</title>\n";
39 echo "<script type=\"text/javascript\" src=\"inc/ckeditor/ckeditor.js\"></script>"; //ckeditor 2015
40 echo "<link rel=\"StyleSheet\" href=\"temi/$tema/style.css\" type=\"text/css\">\n\n\n";
41 echo "\n\n\n</head>\n<body style=\"background-image: url(temi/$tema/images/sfondo.jpg);\">";
42 if (!$csv)testata($tema);
43
44
45}
46
47
48head();
49
50
51?>
Note: See TracBrowser for help on using the repository browser.