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_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");
Note: See TracChangeset for help on using the changeset viewer.