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 |
|
---|
10 | if (!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;
|
---|
23 | if ($_SESSION['tema']=='facebook')
|
---|
24 | $tema=$_SESSION['tema'];
|
---|
25 | else $tema='default';
|
---|
26 | include("temi/$tema/index.php");
|
---|
27 | include("modules/Elezioni/language/lang-$lang.php");
|
---|
28 |
|
---|
29 | $bgcolor1="#b0b0b0";
|
---|
30 | function head() {
|
---|
31 | global $csv,$tema;
|
---|
32 | echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
|
---|
33 | echo "<html>\n";
|
---|
34 | echo "<head>\n";
|
---|
35 | echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
|
---|
36 | echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n";
|
---|
37 | echo "<title>Eleonline - Elezioni on line</title>\n";
|
---|
38 | echo "<script type=\"text/javascript\" src=\"inc/ckeditor/ckeditor.js\"></script>"; //ckeditor 2015
|
---|
39 | echo "<link rel=\"StyleSheet\" href=\"temi/$tema/style.css\" type=\"text/css\">\n\n\n";
|
---|
40 | echo "\n\n\n</head>\n<body style=\"background-image: url(temi/$tema/images/sfondo.jpg);\">";
|
---|
41 | if (!$csv)testata($tema);
|
---|
42 |
|
---|
43 |
|
---|
44 | }
|
---|
45 |
|
---|
46 |
|
---|
47 | head();
|
---|
48 |
|
---|
49 |
|
---|
50 | ?>
|
---|