Changeset 344 for trunk/admin/admin.php


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

Segue modifiche per la compatibilità php7.x

File:
1 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']) {
Note: See TracChangeset for help on using the changeset viewer.