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