Ignore:
Timestamp:
Jul 31, 2021, 1:41:30 PM (3 years ago)
Author:
roby
Message:

Segue adattamento per php7
modifica gestione consultazioni con e senza voto nullo di lista

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/salva_voti.php

    r344 r352  
    2424        }             
    2525
    26 if (isset($_GET['genere'])) $genere=addslashes($_GET['genere']); else $genere='';
    27 if (isset($_GET['id_cons_gen'])) $id_cons_gen=addslashes($_GET['id_cons_gen']); else $id_cons_gen='';
    28 if (isset($_GET['id_cons'])) $id_cons=addslashes($_GET['id_cons']); else $id_cons='';
    29 if (isset($_GET['op'])) $op=addslashes($_GET['op']); else $op='';
    30 if (isset($_GET['id_circ'])) $id_circ=addslashes($_GET['id_circ']); else $id_circ='';
    31 if (isset($_GET['id_sez'])) $id_sez=addslashes($_GET['id_sez']); else $id_sez='';
    32 if (isset($_GET['id_sede'])) $id_sede=addslashes($_GET['id_sede']); else $id_sede='';
    33 if (isset($_GET['validi'])) $validi=addslashes($_GET['validi']); else $validi='';
     26if (isset($_GET['genere'])) $genere=intval($_GET['genere']); else $genere='';
     27if (isset($_GET['id_cons_gen'])) $id_cons_gen=intval($_GET['id_cons_gen']); else $id_cons_gen='';
     28if (isset($_GET['id_cons'])) $id_cons=intval($_GET['id_cons']); else $id_cons='';
     29if (isset($_GET['op'])) $op=intval($_GET['op']); else $op='';
     30if (isset($_GET['id_circ'])) $id_circ=intval($_GET['id_circ']); else $id_circ='';
     31if (isset($_GET['id_sez'])) $id_sez=intval($_GET['id_sez']); else $id_sez='';
     32if (isset($_GET['id_sede'])) $id_sede=intval($_GET['id_sede']); else $id_sede='';
     33if (isset($_GET['validi'])) $validi=intval($_GET['validi']); else $validi='';
    3434if (isset($_GET['nulli'])) $nulli=intval($_GET['nulli']); else $nulli='';
    35 if (isset($_GET['bianchi'])) $bianchi=addslashes($_GET['bianchi']); else $bianchi='';
    36 if (isset($_GET['contestati'])) $contestati=addslashes($_GET['contestati']); else $contestati='';
    37 if (isset($_GET['votinulli'])) $votinulli=addslashes($_GET['votinulli']); else $votinulli='01-01-1900';
    38 if (isset($_GET['id_comune'])) $id_comune=addslashes($_GET['id_comune']); else $id_comune='';
    39 if (isset($_GET['ops'])) $ops=addslashes($_GET['ops']); else $ops='';
    40 if (isset($_GET['delete'])) $delete=addslashes($_GET['delete']); else $delete='';
     35if (isset($_GET['bianchi'])) $bianchi=intval($_GET['bianchi']); else $bianchi='';
     36if (isset($_GET['contestati'])) $contestati=intval($_GET['contestati']); else $contestati='';
     37if (isset($_GET['votinulli'])) $votinulli=intval($_GET['votinulli']); else $votinulli='01-01-1900';
     38if (isset($_GET['id_comune'])) $id_comune=intval($_GET['id_comune']); else $id_comune='';
     39if (isset($_GET['ops'])) $ops=intval($_GET['ops']); else $ops='';
     40if (isset($_GET['delete'])) $delete=intval($_GET['delete']); else $delete='';
    4141
    4242global $prefix,$id_parz,$genere,$fileout,$id_cons;
Note: See TracChangeset for help on using the changeset viewer.