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 |
|
---|
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($param['language'])) {
|
---|
30 | $_SESSION['lang']=substr($param['language'],0,2);
|
---|
31 | $lang=$_SESSION['lang'];
|
---|
32 | }
|
---|
33 | elseif (strlen($_SESSION['lang'])==2) $lang=$_SESSION['lang'];
|
---|
34 | else $lang=$language;
|
---|
35 | include_once("modules/Elezioni/language/lang-$lang.php");
|
---|
36 |
|
---|
37 |
|
---|
38 | ###############
|
---|
39 | if(!isset($nocell))$nocell='';
|
---|
40 | ### tema mobile Futura 2
|
---|
41 | include("inc/mobile.php"); // riconoscimento mobile
|
---|
42 | $is_mobile=is_mobile();
|
---|
43 |
|
---|
44 | if($is_mobile && $nocell!=1){
|
---|
45 | global $id_sez;
|
---|
46 | #####TEST sezione fissa da impostare iniziando con l'assegnazione del permesso all'operatore di sezione
|
---|
47 | #$id_sez=3378;
|
---|
48 | $tema="Futura2";
|
---|
49 | } elseif (isset($_SESSION['tema']))
|
---|
50 | $tema=$_SESSION['tema'];
|
---|
51 | $_SESSION['tema']=$tema;
|
---|
52 | #else
|
---|
53 | # $tema='Futura2';
|
---|
54 | #include("temi/$tema/index.php");
|
---|
55 |
|
---|
56 | $bgcolor1="#b0b0b0";
|
---|
57 | function head() {
|
---|
58 | global $csv,$tema,$id_cons_gen;
|
---|
59 | # echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
|
---|
60 | echo "<!DOCTYPE HTML>\n";
|
---|
61 | echo "<html>\n";
|
---|
62 | echo "<head>\n";
|
---|
63 | echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
|
---|
64 | echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n";
|
---|
65 | echo "<title>Eleonline - Elezioni on line</title>\n";
|
---|
66 | echo "<script type=\"text/javascript\" src=\"inc/ckeditor/ckeditor.js\"></script>"; //ckeditor 2015
|
---|
67 | echo "<link rel=\"StyleSheet\" href=\"temi/$tema/style.css\" type=\"text/css\">\n\n\n";
|
---|
68 | if (file_exists("temi/$tema/themeutils.php")) {
|
---|
69 | include("temi/$tema/themeutils.php"); #incluso x tema mobile
|
---|
70 | }
|
---|
71 | echo "\n\n\n</head>\n<body style=\"background-image: url(temi/$tema/images/sfondo.jpg);\">";
|
---|
72 | # if (!$csv)testata($tema);
|
---|
73 |
|
---|
74 |
|
---|
75 | }
|
---|
76 |
|
---|
77 |
|
---|
78 | head();
|
---|
79 |
|
---|
80 |
|
---|
81 | ?>
|
---|