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

Segue modifiche per la compatibilità php7.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.