1 | <?php
|
---|
2 |
|
---|
3 | /************************************************************************/
|
---|
4 | /* Eleonline - Raccolta e diffusione dei dati elettorali */
|
---|
5 | /* by Roberto Gigli & Luciano Apolito */
|
---|
6 | /* http://www.eleonline.it */
|
---|
7 | /* info@eleonline.it luciano@aniene.net rgigli@libero.it */
|
---|
8 | /************************************************************************/
|
---|
9 | /* Admin */
|
---|
10 | /* Amministrazione */
|
---|
11 | /************************************************************************/
|
---|
12 |
|
---|
13 | /* Descrizione file admin.php =
|
---|
14 | effettua il login o il rilancio alla gestione */
|
---|
15 |
|
---|
16 | define('ADMIN_FILE', true);
|
---|
17 | #$LIMITE=3; //fascia di separazione del maggioritario (15.000 abitanti)
|
---|
18 |
|
---|
19 |
|
---|
20 | // Adattamento variabili superglobal
|
---|
21 | // Versione di php
|
---|
22 | $phpver = phpversion();
|
---|
23 |
|
---|
24 | // converte superglobal se php e' < 4.1.0
|
---|
25 |
|
---|
26 | if ($phpver < '4.1.0') {
|
---|
27 | $_GET = $HTTP_GET_VARS;
|
---|
28 | $_POST = $HTTP_POST_VARS;
|
---|
29 | $_SERVER = $HTTP_SERVER_VARS;
|
---|
30 | $_FILES = $HTTP_POST_FILES;
|
---|
31 | $_ENV = $HTTP_ENV_VARS;
|
---|
32 | if($_SERVER['REQUEST_METHOD'] == "POST") {
|
---|
33 | $_REQUEST = $_POST;
|
---|
34 | } elseif($_SERVER['REQUEST_METHOD'] == "GET") {
|
---|
35 | $_REQUEST = $_GET;
|
---|
36 | }
|
---|
37 | if(isset($HTTP_COOKIE_VARS)) {
|
---|
38 | $_COOKIE = $HTTP_COOKIE_VARS;
|
---|
39 | }
|
---|
40 | if(isset($HTTP_SESSION_VARS)) {
|
---|
41 | $_SESSION = $HTTP_SESSION_VARS;
|
---|
42 | }
|
---|
43 | }
|
---|
44 |
|
---|
45 | $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
|
---|
46 | if (isset($param['aid'])) get_magic_quotes_gpc() ? $aid=$param['aid']:$aid=addslashes($param['aid']);
|
---|
47 | if (isset($param['pwd'])) get_magic_quotes_gpc() ? $pwd2=$param['pwd']:$pwd2=addslashes($param['pwd']);
|
---|
48 | // Additional security (Union, CLike, XSS)
|
---|
49 |
|
---|
50 | // We want to use the function stripos,
|
---|
51 | // but thats only available since PHP5.
|
---|
52 | // So we cloned the function...
|
---|
53 | if(!function_exists('stripos')) {
|
---|
54 | function stripos_clone($haystack, $needle, $offset=0) {
|
---|
55 | return strpos(strtoupper($haystack), strtoupper($needle), $offset);
|
---|
56 | }
|
---|
57 | } else {
|
---|
58 | // But when this is PHP5, we use the original function
|
---|
59 | function stripos_clone($haystack, $needle, $offset=0) {
|
---|
60 | return stripos($haystack, $needle, $offset=0);
|
---|
61 | }
|
---|
62 | }
|
---|
63 |
|
---|
64 | if(isset($_SERVER['QUERY_STRING']) && (!stripos_clone($_SERVER['QUERY_STRING'], "ad_click") || !stripos_clone($_SERVER['QUERY_STRING'], "url"))) {
|
---|
65 | $queryString = $_SERVER['QUERY_STRING'];
|
---|
66 | if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0') OR stripos_clone($queryString,'+union+') OR stripos_clone($queryString,'http://') OR (stripos_clone($queryString,'cmd=') AND !stripos_clone($queryString,'&cmd')) OR (stripos_clone($queryString,'exec') AND !stripos_clone($queryString,'execu')) OR stripos_clone($queryString,'concat')) {
|
---|
67 | die('Operazione non consentita');
|
---|
68 | }
|
---|
69 | }
|
---|
70 |
|
---|
71 |
|
---|
72 | foreach ($_GET as $sec_key => $secvalue) {
|
---|
73 | if ((preg_match("/<[^>]*script*\"?[^>]*>/i",$secvalue)) ||
|
---|
74 | (preg_match("/<[^>]*object*\"?[^>]*>/i", $secvalue)) ||
|
---|
75 | (preg_match("/<[^>]*iframe*\"?[^>]*>/i", $secvalue)) ||
|
---|
76 | (preg_match("/<[^>]*applet*\"?[^>]*>/i", $secvalue)) ||
|
---|
77 | (preg_match("/<[^>]*meta*\"?[^>]*>/i", $secvalue)) ||
|
---|
78 | (preg_match("/<[^>]*style*\"?[^>]*>/i", $secvalue)) ||
|
---|
79 | (preg_match("/<[^>]*form*\"?[^>]*>/i", $secvalue)) ||
|
---|
80 | (preg_match("/<[^>]*img*\"?[^>]*>/i", $secvalue)) ||
|
---|
81 | (preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) ||
|
---|
82 | (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) ||
|
---|
83 | (preg_match("/\([^>]*\"?[^)]*\)/", $secvalue)) ||
|
---|
84 | (preg_match("/\"/", $secvalue)) ||
|
---|
85 | (preg_match("/inside_mod/i", $sec_key))) {
|
---|
86 | die ("Operazione non consentita");
|
---|
87 | }
|
---|
88 | }
|
---|
89 |
|
---|
90 | foreach ($_POST as $secvalue) {
|
---|
91 | if ((preg_match("/<[^>]*onmouseover*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]script*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]*body*\"?[^>]*>/i", $secvalue)) || (preg_match("/<[^>]style*\"?[^>]*>/i", $secvalue))) {
|
---|
92 | die ('Operazione non consentita');
|
---|
93 | }
|
---|
94 | }
|
---|
95 |
|
---|
96 | // Posting from other servers in not allowed
|
---|
97 | // Fix by Quake
|
---|
98 | // Bug found by PeNdEjO
|
---|
99 |
|
---|
100 | if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
---|
101 | if (isset($_SERVER['HTTP_REFERER'])) {
|
---|
102 | if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
|
---|
103 | die('Posting da un altro server non consentito!');
|
---|
104 | }
|
---|
105 | } else {
|
---|
106 | # die('<b>Attenzione:</b> il tuo browser non puo inviare gli header HTTP_REFERER al website.<br>'.$_SERVER['HTTP_REFERER']);
|
---|
107 | }
|
---|
108 | }
|
---|
109 |
|
---|
110 |
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 | //===================================================================
|
---|
117 | session_name('sesadmin');
|
---|
118 | session_start();//MODIFICHE PER GESTIONE SESSIONI
|
---|
119 | // gestione sessione
|
---|
120 |
|
---|
121 |
|
---|
122 |
|
---|
123 | include("config.php");
|
---|
124 | $dbi=mysql_connect($dbhost, $dbuname, $dbpass) or die("Connessione non riuscita: " . mysql_error());
|
---|
125 | mysql_select_db($dbname)or die("Connessione non riuscita:" . mysql_error());
|
---|
126 | mysql_query("SET NAMES 'utf8'", $dbi);
|
---|
127 | //---10/05/2009 gestione consultazione predefinita
|
---|
128 | $res_config = mysql_query("select * from ".$prefix."_config ",$dbi);
|
---|
129 | list ($sitename,$siteurl,$site_logo,$slogan,$startdate,$adminmail,$tema,$foot,$language,$blocco
|
---|
130 | ,$testata,$logo,$fileout,$copyright,$versione,$patch,$id_comune,$multicomune,$flash,$displayerrors,$editor,$tema_on,$ed_user) = mysql_fetch_row($res_config);
|
---|
131 | $siteistat=$id_comune;
|
---|
132 | if (!isset($_SESSION['id_comune'])){
|
---|
133 | $_SESSION['sitename']=$sitename;
|
---|
134 | $_SESSION['siteurl']=$siteurl;
|
---|
135 | $_SESSION['site_logo']=$site_logo;
|
---|
136 | $_SESSION['slogan']=$slogan;
|
---|
137 | $_SESSION['startdate']=$startdate;
|
---|
138 | $_SESSION['adminmail']=$adminmail;
|
---|
139 | if ($tema=='facebook')
|
---|
140 | $_SESSION['tema']=$tema;
|
---|
141 | else $_SESSION['tema']='default';
|
---|
142 | $_SESSION['foot']=$foot;
|
---|
143 | $_SESSION['lang']=$language;
|
---|
144 | $_SESSION['blocco']=$blocco;
|
---|
145 | $_SESSION['testata']=$testata;
|
---|
146 | $_SESSION['logo']=$logo;
|
---|
147 | $_SESSION['fileout']=$fileout;
|
---|
148 | $_SESSION['copyright']=$copyright;
|
---|
149 | $_SESSION['versione']=$versione;
|
---|
150 | $_SESSION['patch']=$patch;
|
---|
151 | $_SESSION['id_comune']=$id_comune;
|
---|
152 | $_SESSION['multicomune']=$multicomune;
|
---|
153 | $_SESSION['flash']=$flash;
|
---|
154 | $_SESSION['displayerrors']=$displayerrors;
|
---|
155 | $_SESSION['editor']=$editor;
|
---|
156 | $_SESSION['tema_on']=$tema_on;
|
---|
157 | $_SESSION['ed_user']=$ed_user;
|
---|
158 | }
|
---|
159 | //fine
|
---|
160 | if (isset($param['aid'])) {
|
---|
161 | if (strlen($aid)>25 ) { die ("Nome utente troppo lungo: $aid"); }
|
---|
162 | if (!isset($param['id_ses']) or $param['id_ses'] != session_id()) logout();
|
---|
163 | if (strstr( $aid," ")) { die ("Gli spazi non sono ammessi nel nome utente: $aid"); }
|
---|
164 | if (isset($_SESSION['aid'])){
|
---|
165 | logout();//se hai gia' una sessione aperta non puoi postare 'aid'
|
---|
166 | }else{
|
---|
167 |
|
---|
168 |
|
---|
169 | // $pwd2=$param['pwd'];
|
---|
170 | $mpwd=md5($pwd2);
|
---|
171 |
|
---|
172 | // se superUserAdmin
|
---|
173 | ########
|
---|
174 | $res_comune = mysql_query("select adminsuper from ".$prefix."_authors where aid='$aid' and pwd='$mpwd'",$dbi);
|
---|
175 | list ($adminsuper) = mysql_fetch_row($res_comune);
|
---|
176 | if ($adminsuper==1) $id_comune='0';
|
---|
177 | elseif (is_numeric($param['id_comune']) and intval($param['id_comune'])>0) $id_comune=intval($param['id_comune']);
|
---|
178 | $res= mysql_query("select counter,admlanguage from ".$prefix."_authors where aid='$aid' and pwd='$mpwd' and id_comune='$id_comune'", $dbi);
|
---|
179 |
|
---|
180 | if ($res){
|
---|
181 | $esiste=mysql_num_rows($res);
|
---|
182 |
|
---|
183 |
|
---|
184 | list ($counter,$tmplang) = mysql_fetch_row($res);
|
---|
185 | $counter+=1;
|
---|
186 | if(strlen($tmplang)==2) $language=$tmplang;
|
---|
187 | $resup=mysql_query("update ".$prefix."_authors set counter=$counter where aid='$aid' and pwd='$mpwd' and id_comune='$id_comune'", $dbi);
|
---|
188 | if ($esiste==1) {
|
---|
189 | $_SESSION['dbi']=$dbi;
|
---|
190 | $_SESSION['aid']="$aid";
|
---|
191 | $_SESSION['pwd']="$mpwd";
|
---|
192 | $_SESSION['lang']="$language";
|
---|
193 | $_SESSION['id_comune']="$id_comune";
|
---|
194 | $_SESSION['prefix']="soraldo";
|
---|
195 | $_SESSION['remote']=$_SERVER['REMOTE_ADDR'];
|
---|
196 | $_SESSION['bgcolor1']='#ffffff';
|
---|
197 | $_SESSION['bgcolor2']='#c5c5c5';
|
---|
198 | session_regenerate_id();
|
---|
199 | }
|
---|
200 | }
|
---|
201 | }
|
---|
202 | }else{
|
---|
203 | $_SESSION['dbi']=$dbi;
|
---|
204 |
|
---|
205 | }
|
---|
206 | if (! isset($_SESSION['lang'])) $_SESSION['lang']=$language;
|
---|
207 | $currentlang=strlen($_SESSION['lang'])==2 ? $_SESSION['lang']: $language;
|
---|
208 | #if (isset($_SESSION['lang'])) $currentlang=$_SESSION['lang']; else $currentlang='it';
|
---|
209 | if (isset($_SESSION['aid']))
|
---|
210 | {
|
---|
211 | //lettura sessione
|
---|
212 | $aid=$_SESSION['aid'];
|
---|
213 | $dbi=$_SESSION['dbi'];
|
---|
214 | $prefix=$_SESSION['prefix'];
|
---|
215 | $id_comune=$_SESSION['id_comune'];
|
---|
216 | if (isset($_GET['id_cons_gen'])) $id_cons_gen=intval($_GET['id_cons_gen']);
|
---|
217 | else {
|
---|
218 | //10/05/2009 gestione consultazione predefinita
|
---|
219 | $result = mysql_query("select id_cons_gen from ".$prefix."_ele_cons_comune where preferita='1' and (id_comune='$id_comune' or id_comune=0)", $dbi);
|
---|
220 | list($id_cons_gen) = mysql_fetch_row($result);
|
---|
221 | //---fine $id_cons_gen='';
|
---|
222 | }
|
---|
223 | $currentlang=$_SESSION['lang'];
|
---|
224 | $bgcolor1=$_SESSION['bgcolor1'];
|
---|
225 | $bgcolor2=$_SESSION['bgcolor2'];
|
---|
226 | $bgcolor1='#e7e7e7';
|
---|
227 | $session=$_SESSION['remote'];
|
---|
228 |
|
---|
229 | $perms=ChiSei($id_cons_gen);
|
---|
230 | }
|
---|
231 |
|
---|
232 |
|
---|
233 | /*********************************************************/
|
---|
234 | /* Login Function */
|
---|
235 | /*********************************************************/
|
---|
236 | function ChiSei($id_cons_gen){
|
---|
237 |
|
---|
238 | //$server=$_SERVER['REMOTE_ADDR'];
|
---|
239 | //$session=$_SESSION['remote'];
|
---|
240 | //if ($session!=$server) { die ("Problema di sessione"); };
|
---|
241 | $aid=$_SESSION['aid'];
|
---|
242 | $dbi=$_SESSION['dbi'];
|
---|
243 | $prefix=$_SESSION['prefix'];
|
---|
244 | $pwd=$_SESSION['pwd'];
|
---|
245 | $id_comune=$_SESSION['id_comune'];
|
---|
246 |
|
---|
247 |
|
---|
248 | $perms=0;
|
---|
249 | $result = mysql_query("select adminsuper, admincomune, adminop from ".$prefix."_authors where aid='$aid' and pwd='$pwd' and (id_comune='$id_comune' or id_comune=0)", $dbi);
|
---|
250 | list($adminsuper,$admincomune,$adminop) = mysql_fetch_row($result);
|
---|
251 | //exit;
|
---|
252 | if (($adminsuper==1 || $admincomune==1 || $adminop==1)) {
|
---|
253 | if ($adminsuper==1)
|
---|
254 | return 256;
|
---|
255 | // $ressup = mysql_query("select permessi from ".$prefix."_ele_operatori where id_cons='0' and aid='$aid' and id_comune='0'",$dbi);
|
---|
256 | elseif ($adminop==1)
|
---|
257 | $ressup = mysql_query("select permessi from ".$prefix."_ele_operatori where id_cons='0' and aid='$aid' and id_comune='$id_comune'",$dbi);
|
---|
258 | elseif ($admincomune==1) {
|
---|
259 | $res=mysql_query("select id_cons from ".$prefix."_ele_cons_comune where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'",$dbi);
|
---|
260 | list ($id_cons)=mysql_fetch_row($res);
|
---|
261 | $ressup = mysql_query("select permessi from ".$prefix."_ele_operatori where id_cons='$id_cons' and aid='$aid' and id_comune='$id_comune'",$dbi);
|
---|
262 | }
|
---|
263 | if (mysql_num_rows($ressup)==1) list($perms)=mysql_fetch_row($ressup); else $perms=0;
|
---|
264 | return $perms;
|
---|
265 | } else return 0;
|
---|
266 | }
|
---|
267 |
|
---|
268 | function OpenTable(){
|
---|
269 | echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"2\" BORDER=\"0\">";
|
---|
270 | }
|
---|
271 |
|
---|
272 | function CloseTable(){
|
---|
273 | echo "</table>";
|
---|
274 | }
|
---|
275 |
|
---|
276 | function login() {
|
---|
277 | global $param,$prefix,$dbi,$multicomune,$siteistat,$language,$tema;
|
---|
278 | $lang=strlen($_SESSION['lang'])==2 ? $_SESSION['lang']: $language;
|
---|
279 | if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']);
|
---|
280 | session_regenerate_id();
|
---|
281 | $id_ses=session_id();
|
---|
282 | #die("test:$tema");
|
---|
283 | //include("modules/Elezioni/language/lang-$lang.php");
|
---|
284 | include ("header.php");
|
---|
285 | echo "<div align=\"middle\"><font class=\"title\"><b>"._GESTIONE."</b></font></center>";
|
---|
286 | echo "<br>"; # method=\"post\"
|
---|
287 | echo "<form name=\"login\" method=\"post\" action=\"admin.php\">"
|
---|
288 | ."<table align=\"middle\" border=\"0\">"
|
---|
289 | ."<tr><td>"._ADMINID."</td>"
|
---|
290 | ."<td><input type=\"text\" NAME=\"aid\" SIZE=\"20\" MAXLENGTH=\"25\"></td></tr>"
|
---|
291 | ."<tr><td>"._PASSWORD."</td>"
|
---|
292 | ."<td><input type=\"password\" NAME=\"pwd\" SIZE=\"20\" MAXLENGTH=\"18\"></td></tr>"
|
---|
293 | ."<tr><td>";
|
---|
294 | // scelta comune
|
---|
295 | if($multicomune=='1'){
|
---|
296 | echo ""._COMUNE."</td><td>";
|
---|
297 | $sqlcomu="select id_comune,descrizione from ".$prefix."_ele_comuni order by descrizione asc";
|
---|
298 | $rescomu= mysql_query("$sqlcomu",$dbi);
|
---|
299 |
|
---|
300 | echo "<select name=\"id_comune\">";
|
---|
301 | while (list($id,$descrizione)=mysql_fetch_row($rescomu))
|
---|
302 | {
|
---|
303 | $sel=($id == $id_comune) ? "selected":"";
|
---|
304 | echo "<option value=\"$id\" $sel>$descrizione";
|
---|
305 | }
|
---|
306 | }else{
|
---|
307 | echo "<input type=\"hidden\" name=\"id_comune\" value=\"$siteistat\">";
|
---|
308 | }
|
---|
309 | // echo "<input type=\"hidden\" name=\"id_comune\" value=\"$id_comune\">";
|
---|
310 | if(strlen($lang)==2) echo "<input type=\"hidden\" name=\"language\" value=\"$lang\">";
|
---|
311 | echo "</td></tr><tr><td>";
|
---|
312 | echo "<input type=\"hidden\" name=\"id_ses\" value=\"$id_ses\">";
|
---|
313 | echo "<input type=\"submit\" VALUE=\""._OK."\">"
|
---|
314 | ."</td></tr></table>"
|
---|
315 | ."</form></div>";
|
---|
316 |
|
---|
317 | include ("footer.php");
|
---|
318 | }
|
---|
319 |
|
---|
320 | function logout()
|
---|
321 | {
|
---|
322 | /* $lang=$_SESSION['lang'];
|
---|
323 | $id_comune=$_SESSION['id_comune'];
|
---|
324 | // setcookie ("PHPSESSID", "", time() - 3600);
|
---|
325 | session_cache_expire (0);
|
---|
326 | $_SESSION=array(); //MODIFICHE PER GESTIONE SESSIONI
|
---|
327 | session_unset();
|
---|
328 | session_destroy();
|
---|
329 | Header("Location: admin.php?id_comune=$id_comune&language=$lang");
|
---|
330 | */
|
---|
331 | global $siteistat;
|
---|
332 |
|
---|
333 | $ref="Location: admin.php?";
|
---|
334 | if (isset($_SESSION['id_comune']))
|
---|
335 | $id_comune=$_SESSION['id_comune'];
|
---|
336 | else
|
---|
337 | $id_comune=$siteistat;
|
---|
338 | $ref=$ref."id_comune=".$id_comune;
|
---|
339 |
|
---|
340 | if (isset($_SESSION['lang']))
|
---|
341 | $ref=$ref."&language=".$_SESSION['lang'];
|
---|
342 |
|
---|
343 | session_cache_expire (0);
|
---|
344 | $_SESSION=array();
|
---|
345 | session_unset();
|
---|
346 | session_destroy();
|
---|
347 | Header($ref);
|
---|
348 |
|
---|
349 | }
|
---|
350 |
|
---|
351 | if (isset($param['op'])) get_magic_quotes_gpc() ? $op=$param['op']:$op=addslashes($param['op']); else $op='ele';
|
---|
352 | //if (isset($param['op'])) $op=$param['op']; else $op='ele';
|
---|
353 | if (isset($_SESSION['aid']) AND $_SESSION['remote']==$_SERVER['REMOTE_ADDR']) {
|
---|
354 | switch($op) {
|
---|
355 | case "tipo":
|
---|
356 | include("modules/Elezioni/ele_tipi.php");
|
---|
357 | break;
|
---|
358 | case "constipi":
|
---|
359 | include("modules/Elezioni/ele_consultazionitipi.php");
|
---|
360 | break;
|
---|
361 | case "aggiorna":
|
---|
362 | include("modules/Elezioni/aggiorna.php");
|
---|
363 | break;
|
---|
364 | case "parziali":
|
---|
365 | include("modules/Elezioni/ele_parziali.php");
|
---|
366 | break;
|
---|
367 | case "ele":
|
---|
368 | include("modules/Elezioni/ele.php");
|
---|
369 | break;
|
---|
370 | case "consultazione":
|
---|
371 | include("modules/Elezioni/ele_consultazioni.php");
|
---|
372 | break;
|
---|
373 | case "configurazione":
|
---|
374 | include("modules/Elezioni/ele_configurazione.php");
|
---|
375 | break;
|
---|
376 | case "cons_comuni":
|
---|
377 | include("modules/Elezioni/ele_cons_comuni.php");
|
---|
378 | break;
|
---|
379 | case "confconsiglio":
|
---|
380 | include("modules/Elezioni/ele_confcons.php");
|
---|
381 | break;
|
---|
382 | case "inscomuni":
|
---|
383 | include("modules/Elezioni/ele_comuni.php");
|
---|
384 | break;
|
---|
385 | case "oper_admin":
|
---|
386 | include("modules/Elezioni/ele_operatori.php");
|
---|
387 | break;
|
---|
388 | case "inscollegi":
|
---|
389 | include("modules/Elezioni/ele_collegi.php");
|
---|
390 | break;
|
---|
391 | case "associazioni":
|
---|
392 | include("modules/Elezioni/ele_associazioni.php");
|
---|
393 | break;
|
---|
394 | case "operatori":
|
---|
395 | include("modules/Elezioni/ele_operatori.php");
|
---|
396 | break;
|
---|
397 | case "permessi":
|
---|
398 | include("modules/Elezioni/ele_permessi.php");
|
---|
399 | break;
|
---|
400 | case "circo":
|
---|
401 | include("modules/Elezioni/ele_circo.php");
|
---|
402 | break;
|
---|
403 | case "sede":
|
---|
404 | include("modules/Elezioni/ele_sede.php");
|
---|
405 | break;
|
---|
406 | case "sezione":
|
---|
407 | include("modules/Elezioni/ele_sezione.php");
|
---|
408 | break;
|
---|
409 | case "gruppo":
|
---|
410 | include("modules/Elezioni/ele_gruppo.php");
|
---|
411 | break;
|
---|
412 | case "rec_add_aff":
|
---|
413 | include("modules/Elezioni/ele_affluenze.php");
|
---|
414 | break;
|
---|
415 | case "rec_add_mod":
|
---|
416 | include("modules/Elezioni/ele_modelli.php");
|
---|
417 | break;
|
---|
418 | case "upgruppo":
|
---|
419 | include("modules/Elezioni/ele_gruppo.php");
|
---|
420 | break;
|
---|
421 | case "delimggruppo":
|
---|
422 | include("modules/Elezioni/ele_gruppo.php");
|
---|
423 | break;
|
---|
424 | case "lista":
|
---|
425 | include("modules/Elezioni/ele_lista.php");
|
---|
426 | break;
|
---|
427 | case "uplista":
|
---|
428 | include("modules/Elezioni/ele_lista.php");
|
---|
429 | break;
|
---|
430 | case "delimglista":
|
---|
431 | include("modules/Elezioni/ele_lista.php");
|
---|
432 | break;
|
---|
433 | case "candidato":
|
---|
434 | include("modules/Elezioni/ele_candidato.php");
|
---|
435 | break;
|
---|
436 | case "upcandidato":
|
---|
437 | include("modules/Elezioni/ele_candidato.php");
|
---|
438 | break;
|
---|
439 | case "delimgcandidato":
|
---|
440 | include("modules/Elezioni/ele_candidato.php");
|
---|
441 | break;
|
---|
442 |
|
---|
443 | case "voti":
|
---|
444 | include("modules/Elezioni/ele_voti.php");
|
---|
445 | break;
|
---|
446 | case "sezioni_voti":
|
---|
447 | include("modules/Elezioni/ele_voti.php");
|
---|
448 | break;
|
---|
449 | case "rec_voti":
|
---|
450 | include("modules/Elezioni/ele_voti.php");
|
---|
451 | break;
|
---|
452 | case "rec_voti_gruppi":
|
---|
453 | include("modules/Elezioni/ele_voti.php");
|
---|
454 | break;
|
---|
455 | case "rec_add_votanti":
|
---|
456 | include("modules/Elezioni/ele_voti.php");
|
---|
457 | break;
|
---|
458 | case "rec_finale":
|
---|
459 | include("modules/Elezioni/ele_voti.php");
|
---|
460 | break;
|
---|
461 | case "controllo_voti":
|
---|
462 | include("modules/Elezioni/controllo_voti.php");
|
---|
463 | break;
|
---|
464 | case "controllo_votanti":
|
---|
465 | include("modules/Elezioni/controllo_votanti.php");
|
---|
466 | break;
|
---|
467 | case "come":
|
---|
468 | include("modules/Elezioni/ele_come.php");
|
---|
469 | break;
|
---|
470 | case "numeri":
|
---|
471 | include("modules/Elezioni/ele_come.php");
|
---|
472 | break;
|
---|
473 | case "servizi":
|
---|
474 | include("modules/Elezioni/ele_come.php");
|
---|
475 | break;
|
---|
476 | case "link":
|
---|
477 | include("modules/Elezioni/ele_come.php");
|
---|
478 | break;
|
---|
479 | case "conf":
|
---|
480 | include("modules/Elezioni/ele_conf.php");
|
---|
481 | break;
|
---|
482 | case "stampa":
|
---|
483 | include("modules/Elezioni/ele_stampe.php");
|
---|
484 | break;
|
---|
485 | case "cambiopwd":
|
---|
486 | include("modules/Elezioni/ele_pwd.php");
|
---|
487 | break;
|
---|
488 | case "eletti":
|
---|
489 | include("modules/Elezioni/ele_eletti.php");
|
---|
490 | break;
|
---|
491 | case "foto":
|
---|
492 | include("modules/Elezioni/foto.php");
|
---|
493 | break;
|
---|
494 | case "consiglieri":
|
---|
495 | include("modules/Elezioni/ele_consiglieri.php");
|
---|
496 | break;
|
---|
497 | case "backup":
|
---|
498 | include("modules/Elezioni/backup.php");
|
---|
499 | break;
|
---|
500 | case "restore":
|
---|
501 | include("modules/Elezioni/restore.php");
|
---|
502 | break;
|
---|
503 | case "scarica":
|
---|
504 | include("modules/Elezioni/scarica.php");
|
---|
505 | break;
|
---|
506 | case "importa":
|
---|
507 | include("modules/Elezioni/importa.php");
|
---|
508 | break;
|
---|
509 | case "widget":
|
---|
510 | include("modules/Elezioni/ele_widget.php");
|
---|
511 | break;
|
---|
512 |
|
---|
513 |
|
---|
514 | case "logout":
|
---|
515 | logout();
|
---|
516 | break;
|
---|
517 | }
|
---|
518 | }else {
|
---|
519 |
|
---|
520 | login();
|
---|
521 |
|
---|
522 | }
|
---|
523 |
|
---|
524 |
|
---|
525 | ?>
|
---|