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 | #aggiornare il db: ALTER TABLE `soraldo_ele_operatori` ADD `id_circ` INT(11) NOT NULL DEFAULT '0' AFTER `aid`, ADD `id_sez` INT(11) NOT NULL DEFAULT '0' AFTER `id_circ`;
|
---|
9 |
|
---|
10 | if (!defined('ADMIN_FILE')) {
|
---|
11 | die ("You can't access this file directly...");
|
---|
12 | }
|
---|
13 | if(isset($_SESSION['aid'])){
|
---|
14 | include_once("modules/Elezioni/query.sql");
|
---|
15 | global $language;
|
---|
16 | $row=setconsultazione();
|
---|
17 | if(isset($row[0])) {
|
---|
18 | $tipo_cons=$row[0]; $descr_cons=$row[1]; $id_cons_gen=$row[2];
|
---|
19 | } else {
|
---|
20 | $tipo_cons=0; $descr_cons=''; $id_cons_gen=0;
|
---|
21 | }
|
---|
22 | $row=tipocons();
|
---|
23 | if(isset($row[0])) {
|
---|
24 | $genere=$row[0];$votog=$row[1];$votol=$row[2];$votoc=$row[3];$conscirc=$row[4];
|
---|
25 | } else {
|
---|
26 | $genere=0;$votog=0;$votol=0;$votoc=0;$conscirc=0;
|
---|
27 | }
|
---|
28 | }
|
---|
29 | if(!isset($language) or strlen($language)!=2)
|
---|
30 | $language='it';
|
---|
31 | if (isset($param['language']) and strlen($param['language']==2)) {
|
---|
32 | $_SESSION['lang']=substr($param['language'],0,2);
|
---|
33 | $lang=$_SESSION['lang'];
|
---|
34 | }
|
---|
35 | elseif (strlen($_SESSION['lang'])==2) $lang=$_SESSION['lang'];
|
---|
36 | else {$lang=$language; $_SESSION['lang']=$lang;}
|
---|
37 | include_once("modules/Elezioni/language/lang-$lang.php");
|
---|
38 |
|
---|
39 | ###############
|
---|
40 | if(!isset($nocell))$nocell='';
|
---|
41 | ### tema mobile Futura 2
|
---|
42 | include("inc/mobile.php"); // riconoscimento mobile
|
---|
43 | $is_mobile=is_mobile();
|
---|
44 |
|
---|
45 | if($is_mobile && $nocell!=1){
|
---|
46 | global $id_sez;
|
---|
47 | #####TEST sezione fissa da impostare iniziando con l'assegnazione del permesso all'operatore di sezione
|
---|
48 | #$id_sez=3378;
|
---|
49 | $tema="Futura2";
|
---|
50 | } elseif (isset($_SESSION['tema']))
|
---|
51 | $tema=$_SESSION['tema'];
|
---|
52 | $_SESSION['tema']=$tema;
|
---|
53 | #else
|
---|
54 | # $tema='Futura2';
|
---|
55 | #include("temi/$tema/index.php");
|
---|
56 |
|
---|
57 | $bgcolor1="#b0b0b0";
|
---|
58 | function head() {
|
---|
59 | global $csv,$tema,$id_cons_gen;
|
---|
60 | # echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
|
---|
61 | echo "<!DOCTYPE HTML>\n";
|
---|
62 | echo "<html>\n";
|
---|
63 | echo "<head>\n";
|
---|
64 | # echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso8859-1\">\n";
|
---|
65 | echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
|
---|
66 | echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n";
|
---|
67 | echo "<title>Eleonline - Elezioni on line</title>\n";
|
---|
68 | echo "<script type=\"text/javascript\" src=\"inc/ckeditor/ckeditor.js\"></script>"; //ckeditor 2015
|
---|
69 | echo "<link rel=\"StyleSheet\" href=\"temi/$tema/style.css\" type=\"text/css\">\n\n\n";
|
---|
70 | if (file_exists("temi/$tema/themeutils.php")) {
|
---|
71 | include("temi/$tema/themeutils.php"); #incluso x tema mobile
|
---|
72 | }
|
---|
73 | echo "\n\n\n</head>\n<body style=\"background-image: url(temi/$tema/images/sfondo.jpg);\">";
|
---|
74 | # if (!$csv)testata($tema);
|
---|
75 |
|
---|
76 |
|
---|
77 | }
|
---|
78 |
|
---|
79 |
|
---|
80 | head();
|
---|
81 |
|
---|
82 |
|
---|
83 | ?>
|
---|