Changeset 344 for trunk


Ignore:
Timestamp:
Dec 1, 2020, 8:25:00 PM (4 years ago)
Author:
roby
Message:

Segue modifiche per la compatibilità php7.x

Location:
trunk
Files:
54 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r336 r344  
    4545
    4646$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    47 if (isset($param['aid'])) get_magic_quotes_gpc() ? $aid=$param['aid']:$aid=addslashes($param['aid']);
    48 if (isset($param['pwd'])) get_magic_quotes_gpc() ? $pwd2=$param['pwd']:$pwd2=addslashes($param['pwd']);
     47if (isset($param['aid'])) $aid=addslashes($param['aid']); else $aid='';
     48if (isset($param['pwd'])) $pwd2=addslashes($param['pwd']); else $pwd2='';
    4949// Additional security (Union, CLike, XSS)
    5050
     
    399399
    400400#echo "op:".$param['op']." -- aid:".$_SESSION['aid']."remote:".$_SESSION['remote']."REMOTE:".$_SERVER['REMOTE_ADDR'];
    401 if (isset($param['op'])) get_magic_quotes_gpc() ? $op=$param['op']:$op=addslashes($param['op']); else $op='ele';
     401if (isset($param['op'])) $op=addslashes($param['op']); else $op='ele';
    402402//if (isset($param['op'])) $op=$param['op']; else $op='ele';
    403403if (isset($_SESSION['aid']) AND $_SESSION['remote']==$_SERVER['REMOTE_ADDR']) {
  • trunk/admin/modules/Elezioni/controllo_votanti.php

    r331 r344  
    3737        $row = $sth->fetch(PDO::FETCH_BOTH);   
    3838        $genere = $row[0];
    39 if (isset($param['ops'])) get_magic_quotes_gpc() ? $ops=$param['ops']:$ops=addslashes($param['ops']); else $ops='';
     39if (isset($param['ops'])) $ops=addslashes($param['ops']); else $ops='';
    4040if (isset($param['pag'])) $pag=intval($param['pag']); else $pag=0;
    4141if (isset($param['num_ref'])) $num_ref=intval($param['num_ref']);
  • trunk/admin/modules/Elezioni/controllo_voti.php

    r331 r344  
    3737include("modules/Elezioni/funzionidata.php");
    3838include("modules/Elezioni/ele.php");
    39 if (! get_magic_quotes_gpc()) $magic='addslashes'; else $magic='';
    40 if (isset($param['ops'])) get_magic_quotes_gpc() ? $ops=$param['ops']:$ops=addslashes($param['ops']); else $ops='';
     39if (isset($param['ops'])) $ops=addslashes($param['ops']); else $ops='';
    4140if (isset($param['pag'])) $pag=intval($param['pag']); else $pag=0;
    4241if (isset($param['num_ref'])) $num_ref=intval($param['num_ref']);
  • trunk/admin/modules/Elezioni/ele_affluenze.php

    r336 r344  
    1919#$dbi=$_SESSION['dbi'];
    2020$prefix=$_SESSION['prefix'];
    21 $currentlang=$_SESSION['lang'];
     21$language=$_SESSION['lang'];
    2222$id_cons_gen=$_GET['id_cons_gen'];
    2323$perms=ChiSei(0);
     
    3030
    3131if (isset($_GET['min'])) $min=intval($_GET['min']); else $min=0;
    32 if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     32if (isset($_GET['do'])) $do=addslashes($param['do']); else $do='';
    3333if (isset($_GET['ov'])) $ov=intval($_GET['ov']); else $ov='';
    3434if (isset($_GET['mv'])) $mv=intval($_GET['mv']); else $mv='';
     
    3636if (isset($_GET['msv'])) $msv=intval($_GET['msv']); else $msv='';
    3737if (isset($_GET['av'])) $av=intval($_GET['av']); else $av='';
    38 if (isset($_GET['tipo'])) get_magic_quotes_gpc() ? $tipo=$param['tipo']:$tipo=addslashes($param['tipo']); else $tipo='';
    39 if (isset($_GET['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
    40 if (isset($_GET['modello'])) get_magic_quotes_gpc() ? $modello=$param['modello']:$modello=addslashes($param['modello']); else $modello='';
     38if (isset($_GET['tipo'])) $tipo=addslashes($param['tipo']); else $tipo='';
     39if (isset($_GET['ok'])) $ok=addslashes($param['ok']); else $ok='';
     40if (isset($_GET['modello'])) $modello=addslashes($param['modello']); else $modello='';
    4141if (isset($_GET['help'])) $help=intval($_GET['help']);
    4242
  • trunk/admin/modules/Elezioni/ele_associazioni.php

    r318 r344  
    3939include("modules/Elezioni/funzionidata.php");
    4040include("modules/Elezioni/ele.php");
    41 if (isset($_GET['descr_comu'])) get_magic_quotes_gpc() ? $descr_comu=$param['descr_comu']:$descr_comu=addslashes($param['descr_comu']); else $descr_comu='';
    42 if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     41if (isset($_GET['descr_comu'])) $descr_comu=addslashes($param['descr_comu']); else $descr_comu='';
     42if (isset($_GET['do'])) $do=addslashes($param['do']); else $do='';
    4343if (isset($_GET['ok'])) $ok=intval($_GET['ok']); else $ok='';
    4444if (isset($_GET['id_cons_comu'])) $id_cons_comu=intval($_GET['id_cons_comu']); else $id_cons_comu='0';
  • trunk/admin/modules/Elezioni/ele_candidato.php

    r338 r344  
    3434include("modules/Elezioni/ele.php");
    3535
    36 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     36if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    3737if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    38 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
     38if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
    3939if (isset($param['id_lista'])) $id_lista=intval($param['id_lista']); else $id_lista='';
    4040if (isset($param['id_sez'])) $id_sez=intval($param['id_sez']); else $id_sez='';
     
    4545if (isset($param['id_cand2'])) $id_cand2=intval($param['id_cand2']); else $id_cand2='';
    4646if (isset($param['num_lista'])) $num_lista=intval($param['num_lista']); else $num_lista='';
    47 if (isset($param['cognome'])) get_magic_quotes_gpc() ? $cognome=$param['cognome']:$cognome=addslashes($param['cognome']); else $cognome='';
    48 if (isset($param['simbolo'])) get_magic_quotes_gpc() ? $simbolo=$param['simbolo']:$simbolo=addslashes($param['simbolo']); else $simbolo='';
    49 if (isset($param['nome'])) get_magic_quotes_gpc() ? $nome=$param['nome']:$nome=addslashes($param['nome']); else $nome='';
    50 if (isset($param['note'])) get_magic_quotes_gpc() ? $note=$param['note']:$note=addslashes($param['note']); else $note='';
     47if (isset($param['cognome'])) $cognome=addslashes($param['cognome']); else $cognome='';
     48if (isset($param['simbolo'])) $simbolo=addslashes($param['simbolo']); else $simbolo='';
     49if (isset($param['nome'])) $nome=addslashes($param['nome']); else $nome='';
     50if (isset($param['note'])) $note=addslashes($param['note']); else $note='';
    5151if (isset($param['num_cand'])) $num_cand=intval($param['num_cand']); else $num_cand=0;
    5252
  • trunk/admin/modules/Elezioni/ele_circo.php

    r257 r344  
    3030include("modules/Elezioni/ele.php");
    3131// Offset - visualizza il numero di elementi per pagina
    32 if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     32if (isset($_GET['do'])) $do=addslashes($param['do']); else $do='';
    3333if (isset($_GET['min'])) $min=intval($_GET['min']); else $min=0;
    3434if (isset($_GET['id_circ'])) $id_circ=intval($_GET['id_circ']); else $id_circ='';
    3535if (isset($_GET['ok'])) $ok=intval($_GET['ok']); else $ok='';
    3636if (isset($_GET['num_circ'])) $num_circ=intval($_GET['num_circ']); else $num_circ='';
    37 if (isset($_GET['descr_circ'])) get_magic_quotes_gpc() ? $descr_circ=$param['descr_circ']:$descr_circ=addslashes($param['descr_circ']); else $descr_circ='';
     37if (isset($_GET['descr_circ'])) $descr_circ=addslashes($param['descr_circ']); else $descr_circ='';
    3838$offset=10;
    3939$hiddenInfo = "<input type=\"hidden\" name=\"min\" value=\"$min\">";
  • trunk/admin/modules/Elezioni/ele_collegi.php

    r257 r344  
    2626
    2727$offset=15;
    28 if (isset($_GET['desc'])) get_magic_quotes_gpc() ? $desc=$param['desc']:$desc=addslashes($param['desc']);else $desc='';
     28if (isset($_GET['desc'])) $desc=addslashes($param['desc']);else $desc='';
    2929if (isset($_GET['id_collegio'])) $id_collegio=intval($_GET['id_collegio']);else $id_collegio='';
    3030if (isset($_GET['ok'])) $ok=intval($_GET['ok']); else $ok='';
    31 if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']);else $do='';
    32 if (isset($_GET['op'])) get_magic_quotes_gpc() ? $op=$param['op']:$op=addslashes($param['op']);else $op='';
     31if (isset($_GET['do'])) $do=addslashes($param['do']);else $do='';
     32if (isset($_GET['op'])) $op=addslashes($param['op']);else $op='';
    3333
    3434
  • trunk/admin/modules/Elezioni/ele_come.php

    r257 r344  
    2424
    2525
    26 if (isset($param['add_title'])) get_magic_quotes_gpc() ? $add_title=$param['add_title']:$add_title=addslashes($param['add_title']); else $add_title='';
    27 if (isset($param['add_preamble'])) get_magic_quotes_gpc() ? $add_preamble=$param['add_preamble']:$add_preamble=addslashes($param['add_preamble']); else $add_preamble='';
    28 if (isset($param['add_content'])) get_magic_quotes_gpc() ? $add_content=$param['add_content']:$add_content=addslashes($param['add_content']); else $add_content='';
    29 if (isset($param['vai'])) get_magic_quotes_gpc() ? $vai=$param['vai']:$vai=addslashes($param['vai']); else $vai='come';
    30 if (isset($param['mid'])) get_magic_quotes_gpc() ? $mid=$param['mid']:$mid=addslashes($param['mid']); else $mid='';
    31 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
    32 if (isset($param['op'])) get_magic_quotes_gpc() ? $op=$param['op']:$op=addslashes($param['op']); else $op='come';
     26if (isset($param['add_title'])) $add_title=addslashes($param['add_title']); else $add_title='';
     27if (isset($param['add_preamble'])) $add_preamble=addslashes($param['add_preamble']); else $add_preamble='';
     28if (isset($param['add_content'])) $add_content=addslashes($param['add_content']); else $add_content='';
     29if (isset($param['vai'])) $vai=addslashes($param['vai']); else $vai='come';
     30if (isset($param['mid'])) $mid=addslashes($param['mid']); else $mid='';
     31if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
     32if (isset($param['op'])) $op=addslashes($param['op']); else $op='come';
    3333$tab='_ele_'.$op;
    3434
  • trunk/admin/modules/Elezioni/ele_comuni.php

    r257 r344  
    2323//if ($perms<128 or !$id_cons_gen) die("$perms Non hai i permessi per inserire dati, o non hai scelto la consultazione!");
    2424if ($perms!=256) die("$perms Non hai i permessi per inserire dati!");
    25 if (isset($param['desc'])) get_magic_quotes_gpc() ? $desc=$param['desc']:$desc=addslashes($param['desc']); else $desc='';
    26 if (isset($param['indirizzo'])) get_magic_quotes_gpc() ? $indirizzo=$param['indirizzo']:$indirizzo=addslashes($param['indirizzo']); else $indirizzo='';
    27 if (isset($param['centralino'])) get_magic_quotes_gpc() ? $centralino=$param['centralino']:$centralino=addslashes($param['centralino']); else $centralino='';
    28 if (isset($param['fax'])) get_magic_quotes_gpc() ? $fax=$param['fax']:$fax=addslashes($param['fax']); else $fax='';
    29 if (isset($param['email'])) get_magic_quotes_gpc() ? $email=$param['email']:$email=addslashes($param['email']); else $email='';
     25if (isset($param['desc'])) $desc=addslashes($param['desc']); else $desc='';
     26if (isset($param['indirizzo'])) $indirizzo=addslashes($param['indirizzo']); else $indirizzo='';
     27if (isset($param['centralino'])) $centralino=addslashes($param['centralino']); else $centralino='';
     28if (isset($param['fax'])) $fax=addslashes($param['fax']); else $fax='';
     29if (isset($param['email'])) $email=addslashes($param['email']); else $email='';
    3030if (isset($param['id_comune2'])) $id_comune2=intval($param['id_comune2']); else $id_comune2='';
    3131if (isset($param['min'])) $min=intval($param['min']); else $min='';
     
    3333if (isset($param['fascia'])) $fasciatmp=intval($param['fascia']); else $fasciatmp=0;
    3434if (isset($param['prov'])) $prov=intval($param['prov']); else $prov=0;
    35 if (isset($param['simbolo'])) get_magic_quotes_gpc() ? $simbolo=$param['simbolo']:$simbolo=addslashes($param['simbolo']); else $simbolo='';
    36 if (isset($param['cerca'])) get_magic_quotes_gpc() ? $cerca=$param['cerca']:$cerca=addslashes($param['cerca']); else $cerca='';
    37 if (isset($param['cap'])) get_magic_quotes_gpc() ? $cap=$param['cap']:$cap=addslashes($param['cap']); else $cap='';
     35if (isset($param['simbolo'])) $simbolo=addslashes($param['simbolo']); else $simbolo='';
     36if (isset($param['cerca'])) $cerca=addslashes($param['cerca']); else $cerca='';
     37if (isset($param['cap'])) $cap=addslashes($param['cap']); else $cap='';
    3838
    3939        $sql="SELECT t1.tipo_cons FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune='$id_comune' ";
     
    265265}
    266266
    267 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     267if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    268268
    269269if ($do)
  • trunk/admin/modules/Elezioni/ele_confcons.php

    r336 r344  
    1818$aid=$_SESSION['aid'];
    1919$prefix=$_SESSION['prefix'];
    20 $currentlang=$_SESSION['lang'];
     20$language=$_SESSION['lang'];
    2121$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    2222$id_cons_gen=$param['id_cons_gen'];     
     
    3333include("modules/Elezioni/ele.php");
    3434
    35 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     35if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    3636if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    37 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
    38 if (isset($param['descrizione'])) get_magic_quotes_gpc() ?
    39 $descrizione=$param['descrizione']:$descrizione=addslashes($param['descrizione']); else $descrizione='';
     37if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
     38if (isset($param['descrizione'])) $descrizione=addslashes($param['descrizione']); else $descrizione='';
    4039if (isset($param['id_conf'])) $id_conf=intval($param['id_conf']); else $id_conf='';
    41 if (isset($param['limite'])) get_magic_quotes_gpc() ? $limite=$param['limite']:$limite=addslashes($param['limite']); else $limite='';
    42 if (isset($param['consin'])) get_magic_quotes_gpc() ? $consin=$param['consin']:$consin=addslashes($param['consin']); else $consin='';
    43 if (isset($param['infpremio'])) get_magic_quotes_gpc() ? $infpremio=$param['infpremio']:$infpremio=addslashes($param['infpremio']); else $infpremio='';
    44 if (isset($param['listinfsbar'])) get_magic_quotes_gpc() ? $listinfsbar=$param['listinfsbar']:$listinfsbar=addslashes($param['listinfsbar']); else $listinfsbar='';
    45 if (isset($param['infminpremio'])) get_magic_quotes_gpc() ? $infminpremio=$param['infminpremio']:$infminpremio=addslashes($param['infminpremio']); else $infminpremio='';
    46 if (isset($param['listinfconta'])) get_magic_quotes_gpc() ? $listinfconta=$param['listinfconta']:$listinfconta=addslashes($param['listinfconta']); else $listinfconta='';
    47 if (isset($param['suppremio'])) get_magic_quotes_gpc() ? $suppremio=$param['suppremio']:$suppremio=addslashes($param['suppremio']); else $suppremio='';
    48 if (isset($param['supsbarramento'])) get_magic_quotes_gpc() ? $supsbarramento=$param['supsbarramento']:$supsbarramento=addslashes($param['supsbarramento']); else $supsbarramento='';
    49 if (isset($param['supminpremio'])) get_magic_quotes_gpc() ? $supminpremio=$param['supminpremio']:$supminpremio=addslashes($param['supminpremio']); else $supminpremio='';
    50 if (isset($param['listsupconta'])) get_magic_quotes_gpc() ? $listsupconta=$param['listsupconta']:$listsupconta=addslashes($param['listsupconta']); else $listsupconta='';
    51 #if (isset($param['infdisgiunto'])) get_magic_quotes_gpc() ? $infdisgiunto=$param['infdisgiunto']:$infdisgiunto=addslashes($param['infdisgiunto']); else $infdisgiunto='';
    52 #if (isset($param['supdisgiunto'])) get_magic_quotes_gpc() ? $supdisgiunto=$param['supdisgiunto']:$supdisgiunto=addslashes($param['supdisgiunto']); else $supdisgiunto='';
     40if (isset($param['limite'])) $limite=addslashes($param['limite']); else $limite='';
     41if (isset($param['consin'])) $consin=addslashes($param['consin']); else $consin='';
     42if (isset($param['infpremio'])) $infpremio=addslashes($param['infpremio']); else $infpremio='';
     43if (isset($param['listinfsbar'])) $listinfsbar=addslashes($param['listinfsbar']); else $listinfsbar='';
     44if (isset($param['infminpremio'])) $infminpremio=addslashes($param['infminpremio']); else $infminpremio='';
     45if (isset($param['listinfconta'])) $listinfconta=addslashes($param['listinfconta']); else $listinfconta='';
     46if (isset($param['suppremio'])) $suppremio=addslashes($param['suppremio']); else $suppremio='';
     47if (isset($param['supsbarramento'])) $supsbarramento=addslashes($param['supsbarramento']); else $supsbarramento='';
     48if (isset($param['supminpremio'])) $supminpremio=addslashes($param['supminpremio']); else $supminpremio='';
     49if (isset($param['listsupconta'])) $listsupconta=addslashes($param['listsupconta']); else $listsupconta='';
     50#if (isset($param['infdisgiunto'])) $infdisgiunto=addslashes($param['infdisgiunto']); else $infdisgiunto='';
     51#if (isset($param['supdisgiunto'])) $supdisgiunto=addslashes($param['supdisgiunto']); else $supdisgiunto='';
    5352if (isset($param['help'])) $help=intval($param['help']);
    5453
     
    5756/*****************************************************/
    5857        function all() {
    59                 global $tipo_cons,$param,$currentlang, $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $id_cons,$id_cons_gen,$id_comune,$do,$id_conf, $language,$help;
     58                global $tipo_cons,$param, $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $id_cons,$id_cons_gen,$id_comune,$do,$id_conf, $language,$help;
    6059       
    6160        if (isset($help)) include("language/$language/ele_confcons.html");
  • trunk/admin/modules/Elezioni/ele_configurazione.php

    r336 r344  
    1818$aid=$_SESSION['aid'];
    1919$prefix=$_SESSION['prefix'];
    20 $currentlang=$_SESSION['lang'];
     20$language=$_SESSION['lang'];
    2121$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    2222$id_cons_gen=$param['id_cons_gen'];     
     
    3131if(isset($row[0])) {$tipo_cons=$row[0];$id_cons=$row[1];} else {$tipo_cons=0; $id_cons=0;}
    3232
    33 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     33if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    3434if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    35 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
    36 if (isset($param['blocco'])) get_magic_quotes_gpc() ?
    37 $blocco=$param['blocco']:$blocco=addslashes($param['blocco']); else $blocco='';
    38 if (isset($param['tema2'])) get_magic_quotes_gpc() ? $tema2=$param['tema2']:$tema2=addslashes($param['tema2']); else $tema2='';
    39 if (isset($param['multicomune'])) get_magic_quotes_gpc() ? $multicomune=$param['multicomune']:$multicomune=addslashes($param['multicomune']); else $multicomune='';
    40 if (isset($param['fileout'])) get_magic_quotes_gpc() ? $fileout=$param['fileout']:$fileout=addslashes($param['fileout']); else $fileout='';
    41 if (isset($param['prefix2'])) get_magic_quotes_gpc() ? $prefix2=$param['prefix2']:$prefix2=addslashes($param['prefix2']); else $prefix2='';
    42 if (isset($param['adminmail'])) get_magic_quotes_gpc() ? $adminmail=$param['adminmail']:$adminmail=addslashes($param['adminmail']); else $adminmail='';
    43 if (isset($param['siteurl'])) get_magic_quotes_gpc() ? $siteurl=$param['siteurl']:$siteurl=addslashes($param['siteurl']); else $siteurl='';
    44 if (isset($param['sitename'])) get_magic_quotes_gpc() ? $sitename=$param['sitename']:$sitename=addslashes($param['sitename']); else $sitename='';
    45 if (isset($param['siteistat'])) get_magic_quotes_gpc() ? $siteistat=$param['siteistat']:$siteistat=addslashes($param['siteistat']); else $siteistat='';
    46 if (isset($param['language2'])) get_magic_quotes_gpc() ? $language2=$param['language2']:$language2=addslashes($param['language2']); else $language2='';
    47 if (isset($param['flash2'])) get_magic_quotes_gpc() ? $flash2=$param['flash2']:$flash2=addslashes($param['flash2']); else $flash2='';
     35if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
     36if (isset($param['blocco'])) $blocco=addslashes($param['blocco']); else $blocco='';
     37if (isset($param['tema2'])) $tema2=addslashes($param['tema2']); else $tema2='';
     38if (isset($param['multicomune'])) $multicomune=addslashes($param['multicomune']); else $multicomune='';
     39if (isset($param['fileout'])) $fileout=addslashes($param['fileout']); else $fileout='';
     40if (isset($param['prefix2'])) $prefix2=addslashes($param['prefix2']); else $prefix2='';
     41if (isset($param['adminmail'])) $adminmail=addslashes($param['adminmail']); else $adminmail='';
     42if (isset($param['siteurl'])) $siteurl=addslashes($param['siteurl']); else $siteurl='';
     43if (isset($param['sitename'])) $sitename=addslashes($param['sitename']); else $sitename='';
     44if (isset($param['siteistat'])) $siteistat=addslashes($param['siteistat']); else $siteistat='';
     45if (isset($param['language2'])) $language2=addslashes($param['language2']); else $language2='';
     46if (isset($param['flash2'])) $flash2=addslashes($param['flash2']); else $flash2='';
    4847if (isset($param['displayerrors'])) $displayerrors=intval($param['displayerrors']); else $displayerrors='0';
    4948
    50 if (isset($param['gkey'])) get_magic_quotes_gpc() ? $gkey=$param['gkey']:$gkey=addslashes($param['gkey']); else $gkey='';
    51 if (isset($param['ed_user'])) get_magic_quotes_gpc() ? $ed_user=$param['ed_user']:$ed_user=addslashes($param['ed_user']); else $ed_user='';
     49if (isset($param['gkey'])) $gkey=addslashes($param['gkey']); else $gkey='';
     50if (isset($param['ed_user'])) $ed_user=addslashes($param['ed_user']); else $ed_user='';
    5251if (isset($param['googlemaps'])) $googlemaps=intval($param['googlemaps']); else $googlemaps='0';
    5352if (isset($param['editor'])) $editor=intval($param['editor']); else $editor='0';
     
    6160/*****************************************************/
    6261        function all() {
    63                 global $tipo_cons,$param,$currentlang, $bgcolor1, $bgcolor2, $prefix, $prefix2, $dbi, $offset, $min, $id_cons,$id_cons_gen,$id_comune,$do,$tema,$language,$help;
     62                global $tipo_cons,$param, $bgcolor1, $bgcolor2, $prefix, $prefix2, $dbi, $offset, $min, $id_cons,$id_cons_gen,$id_comune,$do,$tema,$language,$help;
    6463                global $gkey,$ed_user,$googlemaps,$editor,$tema_on;
    6564
  • trunk/admin/modules/Elezioni/ele_cons_comuni.php

    r304 r344  
    2121$id_cons_gen=$_GET['id_cons_gen'];
    2222$id_comune=$_SESSION['id_comune'];
     23$language=$_SESSION['lang'];
    2324$perms=ChiSei(0);
    2425if ($perms<64 or !$id_cons_gen) die("Non hai i permessi per inserire dati, o non hai scelto la consultazione!");
     
    2930include("modules/Elezioni/funzionidata.php");
    3031include("modules/Elezioni/ele.php");
    31 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
    32 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
     32if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
     33if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
    3334if (isset($param['id_cons2'])) $id_cons2=intval($param['id_cons2']); else $id_cons2='';
    3435if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    3536if (isset($param['duplica'])) $duplica=intval($param['duplica']); else $duplica='';
    36 if (isset($param['elettori'])) get_magic_quotes_gpc() ? $elettori=$param['elettori']:$elettori=addslashes($param['elettori']); else $elettori='';
     37if (isset($param['elettori'])) $elettori=addslashes($param['elettori']); else $elettori='';
    3738if (isset($param['predefinita'])) $predefinita=intval($param['predefinita']); else $predefinita='';
    3839if (isset($param['help'])) $help=intval($param['help']);
  • trunk/admin/modules/Elezioni/ele_consultazioni.php

    r336 r344  
    2222if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    2323if (isset($param['ok'])) $ok=intval($param['ok']); else $ok=0;
    24 if (isset($param['data_in'])) get_magic_quotes_gpc() ? $data_in=$param['data_in']:$data_in=addslashes($param['data_in']); else $data_in='';
    25 if (isset($param['data_fine'])) get_magic_quotes_gpc() ? $data_fine=$param['data_fine']:$data_fine=addslashes($param['data_fine']); else $data_fine='';
    26 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     24if (isset($param['data_in'])) $data_in=addslashes($param['data_in']); else $data_in='';
     25if (isset($param['data_fine'])) $data_fine=addslashes($param['data_fine']); else $data_fine='';
     26if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    2727if (isset($param['dig'])) $dig=intval($param['dig']); else $dig=date("d",time());
    2828if (isset($param['dim'])) $dim=intval($param['dim']); else $dim=date("m",time());
     
    3232if (isset($param['dfa'])) $dfa=intval($param['dfa']); else $dfa=date("Y",time());
    3333if (isset($param['duplica'])) $duplica=intval($param['duplica']); else $duplica='';
    34 if (isset($param['referendum'])) get_magic_quotes_gpc() ? $referendum=$param['referendum']:$referendum=addslashes($param['referendum']); else $referendum='';
    35 if (isset($param['liste'])) get_magic_quotes_gpc() ? $liste=$param['liste']:$liste=addslashes($param['liste']); else $liste='';
    36 if (isset($param['gruppi'])) get_magic_quotes_gpc() ? $gruppi=$param['gruppi']:$gruppi=addslashes($param['gruppi']); else $gruppi='';
    37 if (isset($param['votigruppo'])) get_magic_quotes_gpc() ? $votigruppo=$param['votigruppo']:$votigruppo=addslashes($param['votigruppo']); else $votigruppo='';
    38 if (isset($param['votilista'])) get_magic_quotes_gpc() ? $votilista=$param['votilista']:$votilista=addslashes($param['votilista']); else $votilista='';
    39 if (isset($param['voticandi'])) get_magic_quotes_gpc() ? $voticandi=$param['voticandi']:$voticandi=addslashes($param['voticandi']); else $voticandi='';
    40 if (isset($param['ballo'])) get_magic_quotes_gpc() ? $ballo=$param['ballo']:$ballo=addslashes($param['ballo']); else $ballo='';
    41 if (isset($param['circo'])) get_magic_quotes_gpc() ? $circo=$param['circo']:$circo=addslashes($param['circo']); else $circo='';
    42 if (isset($param['descr_cons2'])) get_magic_quotes_gpc() ? $descr_cons2=$param['descr_cons2']:$descr_cons2=addslashes($param['descr_cons2']); else $descr_cons2='';
    43 if (isset($param['tipocons'])) get_magic_quotes_gpc() ? $tipocons=$param['tipocons']:$tipocons=addslashes($param['tipocons']); else $tipocons=$tipo_cons;
     34if (isset($param['referendum'])) $referendum=addslashes($param['referendum']); else $referendum='';
     35if (isset($param['liste'])) $liste=addslashes($param['liste']); else $liste='';
     36if (isset($param['gruppi'])) $gruppi=addslashes($param['gruppi']); else $gruppi='';
     37if (isset($param['votigruppo'])) $votigruppo=addslashes($param['votigruppo']); else $votigruppo='';
     38if (isset($param['votilista'])) $votilista=addslashes($param['votilista']); else $votilista='';
     39if (isset($param['voticandi'])) $voticandi=addslashes($param['voticandi']); else $voticandi='';
     40if (isset($param['ballo'])) $ballo=addslashes($param['ballo']); else $ballo='';
     41if (isset($param['circo'])) $circo=addslashes($param['circo']); else $circo='';
     42if (isset($param['descr_cons2'])) $descr_cons2=addslashes($param['descr_cons2']); else $descr_cons2='';
     43if (isset($param['tipocons'])) $tipocons=addslashes($param['tipocons']); else $tipocons=$tipo_cons;
    4444if (isset($param['help'])) $help=intval($param['help']);
    4545$id_comune=$_SESSION['id_comune'];
  • trunk/admin/modules/Elezioni/ele_consultazionitipi.php

    r257 r344  
    2727if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    2828if (isset($param['ok'])) $ok=intval($param['ok']); else $ok=0;
    29 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
    30 if (isset($param['referendum'])) get_magic_quotes_gpc() ? $referendum=$param['referendum']:$referendum=addslashes($param['referendum']); else $referendum='';
    31 if (isset($param['liste'])) get_magic_quotes_gpc() ? $liste=$param['liste']:$liste=addslashes($param['liste']); else $liste='';
    32 if (isset($param['gruppi'])) get_magic_quotes_gpc() ? $gruppi=$param['gruppi']:$gruppi=addslashes($param['gruppi']); else $gruppi='';
    33 if (isset($param['votigruppo'])) get_magic_quotes_gpc() ? $votigruppo=$param['votigruppo']:$votigruppo=addslashes($param['votigruppo']); else $votigruppo='';
    34 if (isset($param['votilista'])) get_magic_quotes_gpc() ? $votilista=$param['votilista']:$votilista=addslashes($param['votilista']); else $votilista='';
    35 if (isset($param['voticandi'])) get_magic_quotes_gpc() ? $voticandi=$param['voticandi']:$voticandi=addslashes($param['voticandi']); else $voticandi='';
    36 if (isset($param['ballo'])) get_magic_quotes_gpc() ? $ballo=$param['ballo']:$ballo=addslashes($param['ballo']); else $ballo='';
    37 if (isset($param['circo'])) get_magic_quotes_gpc() ? $circo=$param['circo']:$circo=addslashes($param['circo']); else $circo='';
    38 if (isset($param['descr_cons2'])) get_magic_quotes_gpc() ? $descr_cons2=$param['descr_cons2']:$descr_cons2=addslashes($param['descr_cons2']); else $descr_cons2='';
    39 if (isset($param['tipocons'])) get_magic_quotes_gpc() ? $tipocons=$param['tipocons']:$tipocons=addslashes($param['tipocons']); else $tipocons=$tipo_cons;
     29if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
     30if (isset($param['referendum'])) $referendum=addslashes($param['referendum']); else $referendum='';
     31if (isset($param['liste'])) $liste=addslashes($param['liste']); else $liste='';
     32if (isset($param['gruppi'])) $gruppi=addslashes($param['gruppi']); else $gruppi='';
     33if (isset($param['votigruppo'])) $votigruppo=addslashes($param['votigruppo']); else $votigruppo='';
     34if (isset($param['votilista'])) $votilista=addslashes($param['votilista']); else $votilista='';
     35if (isset($param['voticandi'])) $voticandi=addslashes($param['voticandi']); else $voticandi='';
     36if (isset($param['ballo'])) $ballo=addslashes($param['ballo']); else $ballo='';
     37if (isset($param['circo'])) $circo=addslashes($param['circo']); else $circo='';
     38if (isset($param['descr_cons2'])) $descr_cons2=addslashes($param['descr_cons2']); else $descr_cons2='';
     39if (isset($param['tipocons'])) $tipocons=addslashes($param['tipocons']); else $tipocons=$tipo_cons;
    4040if (isset($param['help'])) $help=intval($param['help']);
    4141
  • trunk/admin/modules/Elezioni/ele_gruppo.php

    r257 r344  
    3232include("modules/Elezioni/ele.php");
    3333
    34 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     34if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    3535if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    3636if (isset($param['id_sede'])) $id_sede=intval($param['id_sede']); else $id_sede='';
    37 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
     37if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
    3838if (isset($param['id_circ'])) {$id_circ=intval($param['id_circ']); $_SESSION['id_circ']=$id_circ;} else
    3939if (isset($_SESSION['id_circ'])) $id_circ=intval($_SESSION['id_circ']); else $id_circ='';
    4040if (isset($param['id_gruppo'])) $id_gruppo=intval($param['id_gruppo']); else $id_gruppo='';
    4141if (isset($param['num_gruppo'])) $num_gruppo=intval($param['num_gruppo']); else $num_gruppo='';
    42 if (isset($param['descr_gruppo'])) get_magic_quotes_gpc() ? $descr_gruppo=$param['descr_gruppo']:$descr_gruppo=addslashes($param['descr_gruppo']); else $descr_gruppo='';
    43 if (isset($param['simbolo'])) get_magic_quotes_gpc() ? $simbolo=$param['simbolo']:$simbolo=addslashes($param['simbolo']); else $simbolo='';
    44 if (isset($param['delsimb'])) get_magic_quotes_gpc() ? $delsimb=$param['delsimb']:$delsimb=addslashes($param['delsimb']);
    45 if (isset($param['delprog'])) get_magic_quotes_gpc() ? $delprog=$param['delprog']:$delprog=addslashes($param['delprog']);
     42if (isset($param['descr_gruppo'])) $descr_gruppo=addslashes($param['descr_gruppo']); else $descr_gruppo='';
     43if (isset($param['simbolo'])) $simbolo=addslashes($param['simbolo']); else $simbolo='';
     44if (isset($param['delsimb'])) $delsimb=addslashes($param['delsimb']);
     45if (isset($param['delprog'])) $delprog=addslashes($param['delprog']);
    4646/******************************************************/
    4747/*Funzione di visualizzazione globale                 */
  • trunk/admin/modules/Elezioni/ele_lista.php

    r338 r344  
    2626include("modules/Elezioni/funzionidata.php");
    2727include("modules/Elezioni/ele.php");
    28 if (isset($param['mex'])) get_magic_quotes_gpc() ? $mex=$param['mex']:$mex=addslashes($param['mex']); else $mex='';
    29 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     28if (isset($param['mex'])) $mex=addslashes($param['mex']); else $mex='';
     29if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    3030if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    31 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
     31if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
    3232if (isset($param['id_lista'])) $id_lista=intval($param['id_lista']); else $id_lista=0;
    3333if (isset($param['id_circ'])) {$id_circ=intval($param['id_circ']); $_SESSION['id_circ']=$id_circ;} else
     
    3636if (isset($param['id_gruppo2'])) $id_gruppo2=intval($param['id_gruppo2']); else $id_gruppo2=0;
    3737if (isset($param['num_lista'])) $num_lista=intval($param['num_lista']); else $num_lista=0;
    38 if (isset($param['descr_lista'])) get_magic_quotes_gpc() ? $descr_lista=$param['descr_lista']:$descr_lista=addslashes($param['descr_lista']); else $descr_lista='';
    39 if (isset($param['simbolo'])) get_magic_quotes_gpc() ? $simbolo=$param['simbolo']:$simbolo=addslashes($param['simbolo']); else $simbolo='';
    40 if (isset($param['stemma'])) get_magic_quotes_gpc() ? $stemma=$param['stemma']:$stemma=addslashes($param['stemma']); else $stemma='';
     38if (isset($param['descr_lista'])) $descr_lista=addslashes($param['descr_lista']); else $descr_lista='';
     39if (isset($param['simbolo'])) $simbolo=addslashes($param['simbolo']); else $simbolo='';
     40if (isset($param['stemma'])) $stemma=addslashes($param['stemma']); else $stemma='';
    4141
    4242// Offset - visualizza il numero di elementi per pagina
  • trunk/admin/modules/Elezioni/ele_operatori.php

    r332 r344  
    1919$res->execute();       
    2020list($tipo_cons,$id_cons) = $res->fetch(PDO::FETCH_NUM);
    21 if (isset($_GET['aid2'])) get_magic_quotes_gpc() ? $aid2=$param['aid2']:$aid2=addslashes($param['aid2']); else {if ($perms==256) $aid2='admin'; else $aid2='';}
     21if (isset($_GET['aid2'])) $aid2=addslashes($param['aid2']); else {if ($perms==256) $aid2='admin'; else $aid2='';}
    2222if (isset($_GET['id_sede'])) $id_sede=intval($_GET['id_sede']); else $id_sede='';
    23 if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
    24 if (isset($_GET['name'])) get_magic_quotes_gpc() ? $name=$param['name']:$name=addslashes($param['name']); else $name='';
    25 if (isset($_GET['email'])) get_magic_quotes_gpc() ? $email=$param['email']:$email=addslashes($param['email']); else $email='';
    26 if (isset($_GET['passwd'])) get_magic_quotes_gpc() ? $passwd=$param['passwd']:$passwd=addslashes($param['passwd']); else $passwd='';
    27 if (isset($_GET['passwd2'])) get_magic_quotes_gpc() ? $passwd2=$param['passwd2']:$passwd2=addslashes($param['passwd2']); else $passwd2='';
     23if (isset($_GET['do'])) $do=addslashes($param['do']); else $do='';
     24if (isset($_GET['name'])) $name=addslashes($param['name']); else $name='';
     25if (isset($_GET['email'])) $email=addslashes($param['email']); else $email='';
     26if (isset($_GET['passwd'])) $passwd=addslashes($param['passwd']); else $passwd='';
     27if (isset($_GET['passwd2'])) $passwd2=addslashes($param['passwd2']); else $passwd2='';
    2828
    2929include("modules/Elezioni/funzionidata.php");
  • trunk/admin/modules/Elezioni/ele_operatori_admin.php

    r336 r344  
    2424$perms=ChiSei(0);
    2525if ($perms!=256) die("Non hai i permessi per inserire dati!");
    26 if (isset($_GET['aid2'])) get_magic_quotes_gpc() ? $aid2=$param['aid2']:$aid2=addslashes($param['aid2']); else $aid2='';
     26if (isset($_GET['aid2'])) $aid2=addslashes($param['aid2']); else $aid2='';
    2727if (isset($_GET['id_sede'])) $id_sede=intval($_GET['id_sede']); else $id_sede='';
    2828if (isset($_GET['id_comune2'])) $id_comune2=intval($_GET['id_comune2']); else $id_comune2='';
  • trunk/admin/modules/Elezioni/ele_permessi.php

    r333 r344  
    2323$res->execute();                               
    2424list($tipo_cons,$id_cons) = $res->fetch(PDO::FETCH_NUM);
    25 if (isset($param['aid2'])) get_magic_quotes_gpc() ? $aid2=$param['aid2']:$aid2=addslashes($param['aid2']); else $aid2='';
     25if (isset($param['aid2'])) $aid2=addslashes($param['aid2']); else $aid2='';
    2626if (isset($param['id_sede'])) $id_sede=intval($param['id_sede']); else $id_sede='';
    27 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
    28 if (isset($param['permessi'])) get_magic_quotes_gpc() ? $permessi=$param['permessi']:$permessi=addslashes($param['permessi']); else $permessi='';
     27if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
     28if (isset($param['permessi'])) $permessi=addslashes($param['permessi']); else $permessi='';
    2929if (isset($param['id_comune2'])) $id_comune2=intval($param['id_comune2']); else $id_comune2='';
    3030if (isset($param['ok'])) $ok=intval($param['ok']); else $ok='';
    31 if (isset($param['mex'])) get_magic_quotes_gpc() ? $mex=$param['mex']:$mex=addslashes($param['mex']); else $mex='';
     31if (isset($param['mex'])) $mex=addslashes($param['mex']); else $mex='';
    3232
    3333include("modules/Elezioni/funzionidata.php");
  • trunk/admin/modules/Elezioni/ele_pwd.php

    r257 r344  
    2525
    2626
    27 if (isset($param['pwd1'])) get_magic_quotes_gpc() ? $pwd1=$param['pwd1']:$pwd1=addslashes($param['pwd1']); else $pwd1='';
    28 if (isset($param['pwd2'])) get_magic_quotes_gpc() ? $pwd2=$param['pwd2']:$pwd2=addslashes($param['pwd2']); else $pwd2='';
    29 if (isset($param['oldpwd'])) get_magic_quotes_gpc() ? $oldpwd=$param['oldpwd']:$oldpwd=addslashes($param['oldpwd']); else $oldpwd='';
    30 if (isset($param['op'])) get_magic_quotes_gpc() ? $op=$param['op']:$op=addslashes($param['op']); else $op='cambiopwd';
     27if (isset($param['pwd1'])) $pwd1=addslashes($param['pwd1']); else $pwd1='';
     28if (isset($param['pwd2'])) $pwd2=addslashes($param['pwd2']); else $pwd2='';
     29if (isset($param['oldpwd'])) $oldpwd=addslashes($param['oldpwd']); else $oldpwd='';
     30if (isset($param['op'])) $op=addslashes($param['op']); else $op='cambiopwd';
    3131if (isset($param['mex'])) $mex=intval($param['mex']); else $mex='';
    3232
  • trunk/admin/modules/Elezioni/ele_riepilogo.php

    r328 r344  
    3636include("modules/Elezioni/funzionidata.php");
    3737include("modules/Elezioni/ele.php");
    38 if (! get_magic_quotes_gpc()) $magic='addslashes'; else $magic='';
    39 if (isset($param['ops'])) get_magic_quotes_gpc() ? $ops=$param['ops']:$ops=addslashes($param['ops']); else $ops='';
     38
     39if (isset($param['ops'])) $ops=addslashes($param['ops']); else $ops='';
    4040if (isset($param['pag'])) $pag=intval($param['pag']); else $pag=0;
    4141if (isset($param['num_ref'])) $num_ref=intval($param['num_ref']);
  • trunk/admin/modules/Elezioni/ele_riepilogovoti.php

    r315 r344  
    3636include("modules/Elezioni/funzionidata.php");
    3737include("modules/Elezioni/ele.php");
    38 if (! get_magic_quotes_gpc()) $magic='addslashes'; else $magic='';
    39 if (isset($param['ops'])) get_magic_quotes_gpc() ? $ops=$param['ops']:$ops=addslashes($param['ops']); else $ops='';
     38if (isset($param['ops'])) $ops=addslashes($param['ops']); else $ops='';
    4039if (isset($param['pag'])) $pag=intval($param['pag']); else $pag=0;
    4140if (isset($param['num_ref'])) $num_ref=intval($param['num_ref']);
  • trunk/admin/modules/Elezioni/ele_sede.php

    r258 r344  
    3030include("modules/Elezioni/funzionidata.php");
    3131include("modules/Elezioni/ele.php");
    32 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
    33 if (isset($param['descr_circ'])) get_magic_quotes_gpc() ? $descr_circ=$param['descr_circ']:$descr_circ=addslashes($param['descr_circ']); else $descr_circ='';
     32if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
     33if (isset($param['descr_circ'])) $descr_circ=addslashes($param['descr_circ']); else $descr_circ='';
    3434if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    3535if (isset($param['id_sede'])) $id_sede=intval($param['id_sede']); else $id_sede='';
     
    3838if (isset($param['id_circ'])) $id_circ=intval($param['id_circ']); else $id_circ='';
    3939if (isset($param['id_sede2'])) $id_sede2=intval($param['id_sede2']); else $id_sede2='';
    40 if (isset($param['indir'])) get_magic_quotes_gpc() ? $indir=$param['indir']:$indir=addslashes($param['indir']); else $indir='';
    41 if (isset($param['tel1'])) get_magic_quotes_gpc() ? $tel1=$param['tel1']:$tel1=addslashes($param['tel1']); else $tel1='';
    42 if (isset($param['tel2'])) get_magic_quotes_gpc() ? $tel2=$param['tel2']:$tel2=addslashes($param['tel2']); else $tel2='';
    43 if (isset($param['fax'])) get_magic_quotes_gpc() ? $fax=$param['fax']:$fax=addslashes($param['fax']); else $fax='';
    44 if (isset($param['resp'])) get_magic_quotes_gpc() ? $resp=$param['resp']:$resp=addslashes($param['resp']); else $resp='';
    45 if (isset($param['filemappa'])) get_magic_quotes_gpc() ? $filemappa=$param['filemappa']:$filemappa=addslashes($param['filemappa']); else $filemappa='';
    46 if (isset($param['mappa'])) get_magic_quotes_gpc() ? $mappa=$param['mappa']:$mappa=addslashes($param['mappa']); else $mappa='';
     40if (isset($param['indir'])) $indir=addslashes($param['indir']); else $indir='';
     41if (isset($param['tel1'])) $tel1=addslashes($param['tel1']); else $tel1='';
     42if (isset($param['tel2'])) $tel2=addslashes($param['tel2']); else $tel2='';
     43if (isset($param['fax'])) $fax=addslashes($param['fax']); else $fax='';
     44if (isset($param['resp'])) $resp=addslashes($param['resp']); else $resp='';
     45if (isset($param['filemappa'])) $filemappa=addslashes($param['filemappa']); else $filemappa='';
     46if (isset($param['mappa'])) $mappa=addslashes($param['mappa']); else $mappa='';
    4747
    4848
  • trunk/admin/modules/Elezioni/ele_sezione.php

    r260 r344  
    2222$res->execute();
    2323list($tipo_cons,$id_cons) = $res->fetch(PDO::FETCH_NUM);
    24 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     24if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    2525if (isset($param['id_sede'])) $id_sede=intval($param['id_sede']); else $id_sede='';
    2626if (isset($param['min'])) $min=intval($param['min']); else $min=0;
  • trunk/admin/modules/Elezioni/ele_voti.php

    r342 r344  
    2323$perms=ChiSei($id_cons_gen);
    2424if ($perms<16 or !$id_cons_gen) die("Non hai i permessi per inserire dati, o non hai scelto la consultazione!");
    25 if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     25if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    2626//if (isset($param['id_cons'])) $id_cons=intval($param['id_cons']); else $id_cons='';
    2727if (isset($param['ops'])) $ops=intval($param['ops']); else $ops='';
  • trunk/admin/modules/Elezioni/ele_widget.php

    r336 r344  
    3131if(isset($row[0])) {$tipo_cons=$row[0];$id_cons=$row[1];} else {$tipo_cons=0; $id_cons=0;}
    3232
    33 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
     33if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
    3434if (isset($param['min'])) $min=intval($param['min']); else $min=0;
    35 if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
     35if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
    3636if (isset($param['idw'])) $idw=intval($param['idw']); else $idw='';
    37 if (isset($param['nome_file'])) get_magic_quotes_gpc() ?
    38 $nome_file=$param['nome_file']:$nome_file=addslashes($param['nome_file']); else $nome_file='';
    39 if (isset($param['titolo'])) get_magic_quotes_gpc() ?
    40 $titolo=$param['titolo']:$titolo=addslashes($param['titolo']); else $titolo='';
     37if (isset($param['nome_file'])) $nome_file=addslashes($param['nome_file']); else $nome_file='';
     38if (isset($param['titolo'])) $titolo=addslashes($param['titolo']); else $titolo='';
    4139if (isset($param['pos_or'])) $pos_or=intval($param['pos_or']); else $pos_or='';
    4240if (isset($param['pos_ver'])) $pos_ver=intval($param['pos_ver']); else $pos_ver='';
  • trunk/admin/modules/Elezioni/importa.php

    r336 r344  
    1515$perms=ChiSei(0);
    1616if ($perms<32) die("Non hai i permessi per effettuare questa operazione!");
    17 
     17$language=$_SESSION['lang'];
    1818$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    1919$id_cons_gen=intval($param['id_cons_gen']);
    20 if (isset($param['datafile'])) get_magic_quotes_gpc() ? $datafile=$param['datafile']:$datafile=addslashes($param['datafile']); else $datafile='';
     20if (isset($param['datafile'])) $datafile=addslashes($param['datafile']); else $datafile='';
    2121include("modules/Elezioni/ele.php");
    2222
  • trunk/admin/modules/Elezioni/restore.php

    r336 r344  
    1717
    1818$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    19 if (isset($param['datafile'])) get_magic_quotes_gpc() ? $datafile=$param['datafile']:$datafile=addslashes($param['datafile']); else $datafile='';
     19if (isset($param['datafile'])) $datafile=addslashes($param['datafile']); else $datafile='';
    2020include("modules/Elezioni/ele.php");
    2121ele();
  • trunk/admin/modules/Elezioni/salva_aff.php

    r307 r344  
    3333if (isset($_GET['voti_d'])) $voti_d=intval($_GET['voti_d']); else $voti_d='0';
    3434if (isset($_GET['voti_t'])) $voti_t=intval($_GET['voti_t']); else $voti_t='0';
    35 if (isset($_GET['orario'])) get_magic_quotes_gpc() ? $orario=$_GET['orario']:$orario=addslashes($_GET['orario']); else $orario='';
    36 if (isset($_GET['data'])) get_magic_quotes_gpc() ? $data=$_GET['data']:$data=addslashes($_GET['data']); else $data='01-01-1900';
     35if (isset($_GET['orario'])) $orario=addslashes($_GET['orario']); else $orario='';
     36if (isset($_GET['data'])) $data=addslashes($_GET['data']); else $data='01-01-1900';
    3737if (isset($_GET['id_comune'])) $id_comune=intval($_GET['id_comune']); else $id_comune='0';
    3838if (isset($_GET['id_gruppo'])) $id_gruppo=intval($_GET['id_gruppo']); else $id_gruppo='0';
    3939if (isset($_GET['genere'])) $genere=intval($_GET['genere']); else $genere='0';
    40 if (isset($_GET['delete'])) get_magic_quotes_gpc() ? $delete=$_GET['delete']:$delete=addslashes($_GET['delete']); else $delete='';
     40if (isset($_GET['delete'])) $delete=addslashes($_GET['delete']); else $delete='';
    4141global $prefix,$id_parz,$tempo,$username,$aid,$dbi,$genere;
    4242
  • trunk/admin/modules/Elezioni/salva_gruppi.php

    r338 r344  
    4141if (isset($_GET['sololista'])) $sololista=intval($_GET['sololista']); else $sololista='0';
    4242if (isset($_GET['delete'])) $delete=intval($_GET['delete']); else $delete='';
    43 if (isset($_GET['circo'])) get_magic_quotes_gpc() ? $circo=$_GET['circo']:$circo=addslashes($_GET['circo']); else $circo='';
     43if (isset($_GET['circo'])) $circo=addslashes($_GET['circo']); else $circo='';
    4444
    4545global $prefix,$id_parz,$fileout;
  • trunk/admin/modules/Elezioni/salva_liste.php

    r338 r344  
    4747if (isset($_GET['ops'])) $ops=intval($_GET['ops']); else $ops='3';
    4848if (isset($_GET['delete'])) $delete=intval($_GET['delete']); else $delete='0';
    49 if (isset($_GET['circo'])) get_magic_quotes_gpc() ? $circo=$_GET['circo']:$circo=addslashes($_GET['circo']); else $circo='';
     49if (isset($_GET['circo'])) $circo=addslashes($_GET['circo']); else $circo='';
    5050
    5151global $prefix,$id_parz,$fileout;
  • trunk/admin/modules/Elezioni/salva_ref.php

    r328 r344  
    4040if (isset($_GET['ops'])) $ops=intval($_GET['ops']); else $ops='4';
    4141if (isset($_GET['delete'])) $delete=intval($_GET['delete']); else $delete='';
    42 if (isset($_GET['circo'])) get_magic_quotes_gpc() ? $circo=$_GET['circo']:$circo=addslashes($_GET['circo']); else $circo='';
     42if (isset($_GET['circo'])) $circo=addslashes($_GET['circo']); else $circo='';
    4343
    4444global $prefix,$id_parz,$fileout;
  • trunk/admin/modules/Elezioni/salva_voti.php

    r262 r344  
    2424        }             
    2525
    26 if (isset($_GET['genere'])) get_magic_quotes_gpc() ? $genere=$_GET['genere']:$genere=addslashes($_GET['genere']); else $genere='';
    27 if (isset($_GET['id_cons_gen'])) get_magic_quotes_gpc() ? $id_cons_gen=$_GET['id_cons_gen']:$id_cons_gen=addslashes($_GET['id_cons_gen']); else $id_cons_gen='';
    28 if (isset($_GET['id_cons'])) get_magic_quotes_gpc() ? $id_cons=$_GET['id_cons']:$id_cons=addslashes($_GET['id_cons']); else $id_cons='';
    29 if (isset($_GET['op'])) get_magic_quotes_gpc() ? $op=$_GET['op']:$op=addslashes($_GET['op']); else $op='';
    30 if (isset($_GET['id_circ'])) get_magic_quotes_gpc() ? $id_circ=$_GET['id_circ']:$id_circ=addslashes($_GET['id_circ']); else $id_circ='';
    31 if (isset($_GET['id_sez'])) get_magic_quotes_gpc() ? $id_sez=$_GET['id_sez']:$id_sez=addslashes($_GET['id_sez']); else $id_sez='';
    32 if (isset($_GET['id_sede'])) get_magic_quotes_gpc() ? $id_sede=$_GET['id_sede']:$id_sede=addslashes($_GET['id_sede']); else $id_sede='';
    33 if (isset($_GET['validi'])) get_magic_quotes_gpc() ? $validi=$_GET['validi']:$validi=addslashes($_GET['validi']); else $validi='';
    34 if (isset($_GET['nulli'])) get_magic_quotes_gpc() ? $nulli=$_GET['nulli']:$nulli=intval($_GET['nulli']); else $nulli='';
    35 if (isset($_GET['bianchi'])) get_magic_quotes_gpc() ? $bianchi=$_GET['bianchi']:$bianchi=addslashes($_GET['bianchi']); else $bianchi='';
    36 if (isset($_GET['contestati'])) get_magic_quotes_gpc() ? $contestati=$_GET['contestati']:$contestati=addslashes($_GET['contestati']); else $contestati='';
    37 if (isset($_GET['votinulli'])) get_magic_quotes_gpc() ? $votinulli=$_GET['votinulli']:$votinulli=addslashes($_GET['votinulli']); else $votinulli='01-01-1900';
    38 if (isset($_GET['id_comune'])) get_magic_quotes_gpc() ? $id_comune=$_GET['id_comune']:$id_comune=addslashes($_GET['id_comune']); else $id_comune='';
    39 if (isset($_GET['ops'])) get_magic_quotes_gpc() ? $ops=$_GET['ops']:$ops=addslashes($_GET['ops']); else $ops='';
    40 if (isset($_GET['delete'])) get_magic_quotes_gpc() ? $delete=$_GET['delete']:$delete=addslashes($_GET['delete']); else $delete='';
     26if (isset($_GET['genere'])) $genere=addslashes($_GET['genere']); else $genere='';
     27if (isset($_GET['id_cons_gen'])) $id_cons_gen=addslashes($_GET['id_cons_gen']); else $id_cons_gen='';
     28if (isset($_GET['id_cons'])) $id_cons=addslashes($_GET['id_cons']); else $id_cons='';
     29if (isset($_GET['op'])) $op=addslashes($_GET['op']); else $op='';
     30if (isset($_GET['id_circ'])) $id_circ=addslashes($_GET['id_circ']); else $id_circ='';
     31if (isset($_GET['id_sez'])) $id_sez=addslashes($_GET['id_sez']); else $id_sez='';
     32if (isset($_GET['id_sede'])) $id_sede=addslashes($_GET['id_sede']); else $id_sede='';
     33if (isset($_GET['validi'])) $validi=addslashes($_GET['validi']); else $validi='';
     34if (isset($_GET['nulli'])) $nulli=intval($_GET['nulli']); else $nulli='';
     35if (isset($_GET['bianchi'])) $bianchi=addslashes($_GET['bianchi']); else $bianchi='';
     36if (isset($_GET['contestati'])) $contestati=addslashes($_GET['contestati']); else $contestati='';
     37if (isset($_GET['votinulli'])) $votinulli=addslashes($_GET['votinulli']); else $votinulli='01-01-1900';
     38if (isset($_GET['id_comune'])) $id_comune=addslashes($_GET['id_comune']); else $id_comune='';
     39if (isset($_GET['ops'])) $ops=addslashes($_GET['ops']); else $ops='';
     40if (isset($_GET['delete'])) $delete=addslashes($_GET['delete']); else $delete='';
    4141
    4242global $prefix,$id_parz,$genere,$fileout,$id_cons;
  • trunk/admin/modules/Elezioni/scarica.php

    r336 r344  
    1616$aid=$_SESSION['aid'];
    1717$prefix=$_SESSION['prefix'];
    18 $currentlang=$_SESSION['lang'];
     18$language=$_SESSION['lang'];
    1919$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    2020$id_cons_gen=intval($param['id_cons_gen']);     
     
    2929if (isset($param['fase'])) $fase=intval($param['fase']); else $fase=0;
    3030if (isset($param['id_cons_gen2'])) $id_cons_gen2=intval($param['id_cons_gen2']); else $id_cons_gen2='0';
    31 if (isset($param['indirizzoweb'])) get_magic_quotes_gpc() ? $indirizzoweb=$param['indirizzoweb']:$indirizzoweb=addslashes($param['indirizzoweb']); else $indirizzoweb='http://www.eleonline.it/moduli/client/';
     31if (isset($param['indirizzoweb'])) $indirizzoweb=addslashes($param['indirizzoweb']); else $indirizzoweb='http://www.eleonline.it/client/';
    3232if (isset($param['id_comune2'])) $id_comune2=intval($param['id_comune2']); else $id_comune2='0';
    3333
  • trunk/admin/versione.php

    r343 r344  
    11<?php
    22
    3 $versione = "3.0 rev 343";
     3$versione = "3.0 rev 344";
    44$version_number = $versione;
    5 $datarel = "19 novembre 2020";
     5$datarel = "01 dicembre 2020";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
  • trunk/client/modules/Elezioni/blocchi/cerca_candidato.php

    r315 r344  
    5050
    5151$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    52 if (isset($param['cognome'])) get_magic_quotes_gpc() ? $cognome=$param['cognome']:$cognome=addslashes($param['cognome']); else $cognome='';
     52if (isset($param['cognome'])) $cognome=addslashes($param['cognome']); else $cognome='';
    5353$chiave="$cognome";
    5454global $id_comune;
  • trunk/client/modules/Elezioni/blocchi/cookie_law.php

    r243 r344  
    3636        # preleva la var per la registrazione del cookie
    3737        $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    38         if (isset($param['c_law'])) get_magic_quotes_gpc() ? $c_law=$param['c_law']:$c_law=addslashes($param['c_law']); else $c_law='';
     38        if (isset($param['c_law'])) $c_law=addslashes($param['c_law']); else $c_law='';
    3939        $url_law=$_SERVER['REQUEST_URI']; // url della pagina per il reload     
    4040
     
    7878echo "<h5>Privacy</h5>";
    7979$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    80 if (isset($param['c_law'])) get_magic_quotes_gpc() ? $c_law=$param['c_law']:$c_law=addslashes($param['c_law']); else $c_law='';
     80if (isset($param['c_law'])) $c_law=addslashes($param['c_law']); else $c_law='';
    8181$url_law=$_SERVER['REQUEST_URI']; // url della pagina per il reload
    8282
  • trunk/client/modules/Elezioni/blocchi/privacy.php

    r241 r344  
    7575echo "<h5>Privacy</h5>";
    7676$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
    77 if (isset($param['c_law'])) get_magic_quotes_gpc() ? $c_law=$param['c_law']:$c_law=addslashes($param['c_law']); else $c_law='';
     77if (isset($param['c_law'])) $c_law=addslashes($param['c_law']); else $c_law='';
    7878$url_law=$_SERVER['REQUEST_URI']; // url della pagina per il reload
    7979
  • trunk/client/modules/Elezioni/contatti.php

    r72 r344  
    1111    die ("You can't access this file directly...");
    1212}
    13 if (isset($param['sender_name'])) get_magic_quotes_gpc() ? $sender_name=$param['sender_name'] : $sender_name=addslashes($param['sender_name']); else $sender_name="";
    14 if (isset($param['sender_email'])) get_magic_quotes_gpc() ? $sender_email=$param['sender_email'] : $sender_email=addslashes($param['sender_email']); else $sender_email="";
    15 if (isset($param['opi'])) get_magic_quotes_gpc() ? $opi=$param['opi'] : $opi=addslashes($param['opi']); else $opi="";
    16 if (isset($param['message'])) get_magic_quotes_gpc() ? $message=$param['message'] : $message=addslashes($param['message']); else $message="";
     13if (isset($param['sender_name'])) $sender_name=addslashes($param['sender_name']); else $sender_name="";
     14if (isset($param['sender_email'])) $sender_email=addslashes($param['sender_email']); else $sender_email="";
     15if (isset($param['opi'])) $opi=addslashes($param['opi']); else $opi="";
     16if (isset($param['message'])) $message=addslashes($param['message']); else $message="";
    1717
    1818$ip = $_SERVER["REMOTE_ADDR"];
  • trunk/client/modules/Elezioni/funzioni.php

    r318 r344  
    158158       
    159159        for ($j=$altra;$j<$lunghezza;$j++){
    160                 $lettera=$descrizione{$j};
     160                $lettera=$descrizione[$j];
    161161                if ($lettera!=" "){
    162162                        $testo .=$lettera;
     
    252252               
    253253
    254        
    255         //if($genere=='4' || $tipo_cons>='10') $tab="ele_voti_lista";
    256254          if($genere=='4' || $votog) $tab="ele_voti_lista";
    257255          else $tab="ele_voti_gruppo";
     
    408406
    409407                                        $temp2tot=0;$temp2=array();$temp3=array();
    410                                         while (list($key,$voti)= each($temp)) {
     408
     409                                        foreach($temp as $key=>$voti) {
    411410                                                if($sevaltot>0){
    412411                                                        $temp4=(ceil($voti*10000/$sevaltot)-($voti*10000/$sevaltot));
  • trunk/client/modules/Elezioni/gruppo.php

    r338 r344  
    522522                        }
    523523                        $res_numsez = $dbi->prepare("$sql");
    524                         $res_numsez->execute();#                                for ($z=1;$z<=($offsetsez-$ominsez);$z++) {
     524                        $res_numsez->execute();
    525525                        $sevaltot=0;
    526526                        $senultot=0;
     
    681681                                        if (!isset($tab15) or !$tab15) $tab15="candidati";
    682682                    if($tab15=="gruppo" or $genere==4){
    683                           $votigl=" sum(validi),sum(nulli),sum(bianchi),sum(contestati),sum(voti_nulli)";
     683                                                if($votog) $tab15="lista";
     684                                                $votigl=" sum(validi),sum(nulli),sum(bianchi),sum(contestati),sum(voti_nulli)";
    684685                    }elseif($votog){
    685686                          $votigl=" sum(validi),sum(nulli),sum(bianchi),sum(contestati),sum(voti_nulli)";
     
    701702                                        if($resvt) list($votlt)=$resvt->fetch(PDO::FETCH_NUM); else $votlt=0;
    702703                                        if($perc) $temp3=arrayperc($temp,$sevaltot);
    703                                         while (list($key,$voti)= each($temp)) {
     704
     705                                        foreach($temp as $key=>$voti) {
    704706                                                if ($perc=='true' and $voticompl)
    705707                                                {
     
    714716                                $tmp=array($sevaltot,$senultot,$sebiatot,$secontot,$sevnutot);
    715717                                if($perc) $temp3=arrayperc($tmp,$voticompl);
    716                                 while(list($k,$voti)= each($tmp)) {
    717                                        
     718
     719                                foreach($tmp as $k=>$voti) {   
    718720                    if ($perc=='true' and $voticompl)
    719721                    {
  • trunk/client/modules/Elezioni/index.php

    r343 r344  
    1919if (isset($param['xls'])) $xls=intval($param['xls']); else $xls='0';
    2020if (isset($param['pdf'])) $pdf=intval($param['pdf']); else $pdf='0';
    21 if (isset($param['datipdf'])) get_magic_quotes_gpc() ? $datipdf=$param['datipdf']:$datipdf=addslashes($param['datipdf']); else $datipdf='';
     21if (isset($param['datipdf'])) $datipdf=addslashes($param['datipdf']); else $datipdf='';
    2222if(isset($param['visgralista'])) $visgralista=1;
    2323if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=$siteistat;
     
    4545if (isset($param['offsetsez'])) $offsetsez=intval($param['offsetsez']); else $offsetsez='';
    4646if (isset($param['perc'])) $perc=$param['perc']; else $perc='';
    47 if (isset($param['info'])) get_magic_quotes_gpc() ? $info=$param['info']:$info=addslashes($param['info']); else $info='';
    48 if (isset($param['files'])) get_magic_quotes_gpc() ? $files=$param['files']:$files=addslashes($param['files']); else $files='';
     47if (isset($param['info'])) $info=addslashes($param['info']); else $info='';
     48if (isset($param['files'])) $files=addslashes($param['files']); else $files='';
    4949if (isset($param['voti_lista'])) $voti_lista=intval($param['voti_lista']); else $voti_lista= 0;
    5050if (isset($param['perc_lista'])) $perc_lista=$param['perc_lista']; else $perc_lista= 0;
    51 if (isset($param['lettera'])) get_magic_quotes_gpc() ? $lettera=$param['lettera']:$lettera=addslashes($param['lettera']); else $lettera='';
    52 if (isset($param['ordine'])) get_magic_quotes_gpc() ? $ordine=$param['ordine']:$ordine=addslashes($param['ordine']); else $ordine='';
     51if (isset($param['lettera'])) $lettera=addslashes($param['lettera']); else $lettera='';
     52if (isset($param['ordine'])) $ordine=addslashes($param['ordine']); else $ordine='';
    5353if (isset($param['id_gruppo'])) $id_gruppo=intval($param['id_gruppo']); else $id_gruppo='';
    5454if (isset($param['tipo_cons'])) $tipo_cons=intval($param['tipo_cons']); else $tipo_cons='';
  • trunk/client/modules/Elezioni/votanti.php

    r265 r344  
    2727if (isset($param['offsetsez'])) $offsetsez=intval($param['offsetsez']); else $offsetsez='';
    2828if (isset($param['perc'])) $perc=$param['perc']; else $perc='';
    29 if (isset($param['info'])) get_magic_quotes_gpc() ? $info=$param['info']:$info=addslashes($param['info']); else $info='';
    30 if (isset($param['files'])) get_magic_quotes_gpc() ? $files=$param['files']:$files=addslashes($param['files']); else $files='';
     29if (isset($param['info'])) $info=addslashes($param['info']); else $info='';
     30if (isset($param['files'])) $files=addslashes($param['files']); else $files='';
    3131if (isset($param['voti_lista'])) $voti_lista=intval($param['voti_lista']); else $voti_lista= 0;
    3232if (isset($param['perc_lista'])) $perc_lista=$param['perc_lista']; else $perc_lista= 0;
    33 if (isset($param['lettera'])) get_magic_quotes_gpc() ? $lettera=$param['lettera']:$lettera=addslashes($param['lettera']); else $lettera='';
     33if (isset($param['lettera'])) $lettera=addslashes($param['lettera']); else $lettera='';
    3434if (isset($param['id_gruppo'])) $id_gruppo=intval($param['id_gruppo']); else $id_gruppo='';
    3535if (isset($param['tipo_cons'])) $tipo_cons=intval($param['tipo_cons']); else $tipo_cons='';
  • trunk/client/temi/altro/menu.php

    r343 r344  
    128128         echo " <li class=\"dropdown\"><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    129129             <ul class=\"drop-nav\">";
    130           if (!$votog) {
     130                if (($genere==5 and $votog) or !$votog) {
    131131              if (!$circo and $num_circ>1)
    132132              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,50)."</a></li>";
     
    182182
    183183                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    184                 if(!$votog)
     184                if (($genere==5 and $votog) or !$votog)
    185185                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    186186                if($hondt==0) $limite=0;
  • trunk/client/temi/blog/menu.php

    r343 r344  
    127127         echo " <li class=\"dropdown\"><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    128128             <ul class=\"drop-nav\">";
    129           if (!$votog) {
     129                if (($genere==5 and $votog) or !$votog) {
    130130              if (!$circo and $num_circ>1)
    131131              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,50)."</a></li>";
     
    181181
    182182                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    183                 if (!$votog)
     183                if (($genere==5 and $votog) or !$votog)
    184184                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    185185                if($hondt==0) $limite=0;
  • trunk/client/temi/default/menu.php

    r343 r344  
    128128         echo " <li class=\"dropdown\"><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    129129             <ul class=\"drop-nav\">";
    130           if (!$votog) {
     130                if (($genere==5 and $votog) or !$votog) {
    131131              if (!$circo and $num_circ>1)
    132132              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,50)."</a></li>";
     
    182182
    183183                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    184 if (!$votog)
     184                if (($genere==5 and $votog) or !$votog)
    185185                echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    186186if(($genere>2) and ($fascia>$limite || $limite==0))
  • trunk/client/temi/facebook/menu.php

    r343 r344  
    151151         echo " <li><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    152152            <ul>";
    153           if ($genere!=4 and !votog) {
     153                if (($genere==5 and $votog) or !$votog) {
    154154              if (!$circo and $num_circ>1)
    155155              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,36)."</a></li>";
     
    204204
    205205                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    206                 if(!$votog)
     206                if (($genere==5 and $votog) or !$votog)
    207207                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    208208                if($hondt==0) $limite=0;
  • trunk/client/temi/realistic/menu.php

    r343 r344  
    140140         echo " <li><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    141141            <ul>";
    142           if (!$votog) {
     142                if (($genere==5 and $votog) or !$votog) {
    143143              if (!$circo and $num_circ>1)
    144144              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,50)."</a></li>";
     
    193193
    194194                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    195                 if (!$votog)
     195                if (($genere==5 and $votog) or !$votog)
    196196                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    197197                if($hondt==0) $limite=0;
  • trunk/client/temi/spectral/menu.php

    r343 r344  
    140140         echo " <li><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    141141            <ul>";
    142           if (!$votog) {
     142                if (($genere==5 and $votog) or !$votog) {
    143143              if (!$circo and $num_circ>1)
    144144              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,33)."</a></li>";
     
    193193
    194194                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    195                 if (!$votog)
     195                if (($genere==5 and $votog) or !$votog)
    196196                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    197197                if($hondt==0) $limite=0;
  • trunk/client/temi/stylized/menu.php

    r343 r344  
    128128         echo " <li class=\"dropdown\"><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    129129             <ul class=\"drop-nav\">";
    130           if (!$votog) {
     130                if (($genere==5 and $votog) or !$votog) {
    131131              if (!$circo and $num_circ>1)
    132132              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,33)."</a></li>";
     
    182182
    183183                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    184                 if (!$votog)
     184                if (($genere==5 and $votog) or !$votog)
    185185                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    186186                if($hondt==0) $limite=0;
  • trunk/client/temi/tour/menu.php

    r343 r344  
    127127         echo " <li class=\"dropdown\"><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    128128             <ul class=\"drop-nav\">";
    129           if (!$votog) {
     129                if (($genere==5 and $votog) or !$votog) {
    130130              if (!$circo and $num_circ>1)
    131131              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,33)."</a></li>";
     
    181181
    182182                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    183                 if (!$votog)
     183                if (($genere==5 and $votog) or !$votog)
    184184                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    185185                if($hondt==0) $limite=0;
  • trunk/client/temi/yellowblu/menu.php

    r343 r344  
    128128         echo " <li class=\"dropdown\"><a href=\"#\"><strong>"._RISULTATI."</strong></a>
    129129             <ul class=\"drop-nav\">";
    130          if (!$votog) {
     130                if (($genere==5 and $votog) or !$votog) {
    131131              if (!$circo and $num_circ>1)
    132132              echo "<li class=\"icon candi\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=gruppo_circo\">".substr(_GRUPPO." "._PER." "._CIRCO,0,50)."</a></li>";
     
    182182
    183183                echo "<li class=\"sep\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_votanti\">"._VOTI."</a><span></span></li>";
    184                 if (!$votog)
     184                if (($genere==5 and $votog) or !$votog)
    185185                        echo "<li class=\"icon graf\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&amp;name=Elezioni&amp;id_comune=$id_comune&amp;file=index&amp;op=graf_gruppo\">"._GRUPPO."</a></li>";
    186186                if($hondt==0) $limite=0;
  • trunk/client/versione.php

    r343 r344  
    11<?php
    22
    3 $versione = "3.0 rev 343";
     3$versione = "3.0 rev 344";
    44$version_number = $versione;
    5 $datarel = "19 novembre 2020";
     5$datarel = "01 dicembre 2020";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
Note: See TracChangeset for help on using the changeset viewer.