Changeset 284 for trunk/admin


Ignore:
Timestamp:
Apr 21, 2019, 11:49:56 PM (6 years ago)
Author:
roby
Message:
 
Location:
trunk/admin/modules/Elezioni
Files:
3 edited

Legend:

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

    r256 r284  
    88$sth = $dbi->prepare("$sql");
    99$sth->execute();       
    10 $row = $sth->fetch(PDO::FETCH_BOTH);
    11 $nomeFile=$row[0];
     10//$row = $sth->fetch(PDO::FETCH_BOTH);
     11//$nomeFile=$row[0];
     12list($nomeFile)=$sth->fetch(PDO::FETCH_NUM);
    1213#$nomeFile="backup";
    1314header( 'Content-Type: application/octet-stream' );
  • trunk/admin/modules/Elezioni/ele_permessi.php

    r257 r284  
    8787        }
    8888        echo "</select></td>";
    89         $ressede = mysql_query("SELECT id_sede, indirizzo from ".$prefix."_ele_sede where id_cons=$id_cons";
     89        $sql="SELECT id_sede, indirizzo from ".$prefix."_ele_sede where id_cons=$id_cons";
    9090        $ressede = $dbi->prepare("$sql");
    9191        $ressede->execute();                           
  • trunk/admin/modules/Elezioni/scarica.php

    r257 r284  
    3030if (isset($_GET['help'])) $help=intval($_GET['help']);
    3131if (isset($param['fase'])) $fase=intval($param['fase']); else $fase=0;
    32 if (isset($param['id_cons_gen2'])) $id_cons_gen2=intval($param['id_cons_gen2']); else $id_cons_gen2='';
    33 if (isset($param['indirizzoweb'])) get_magic_quotes_gpc() ? $indirizzoweb=$param['indirizzoweb']:$indirizzoweb=addslashes($param['indirizzoweb']); else $indirizzoweb='http://www.eleonline.it/moduli/eleonline2/client/';
    34 if (isset($param['id_comune2'])) $id_comune2=intval($param['id_comune2']); else $id_comune2='';
     32if (isset($param['id_cons_gen2'])) $id_cons_gen2=intval($param['id_cons_gen2']); else $id_cons_gen2='0';
     33if (isset($param['indirizzoweb'])) get_magic_quotes_gpc() ? $indirizzoweb=$param['indirizzoweb']:$indirizzoweb=addslashes($param['indirizzoweb']); else $indirizzoweb='http://www.eleonline.it/moduli/client/';
     34if (isset($param['id_comune2'])) $id_comune2=intval($param['id_comune2']); else $id_comune2='0';
    3535
    3636/******************************************************/
     
    8080        echo "<td><b>"._INDIRIZZOWEB1."</b></td>";
    8181        echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"3\"><input type=\"hidden\" name=\"indirizzoweb\" value=\"$indirizzoweb\">$indirizzoweb</td></td></tr>";
    82 $cons_rem=intval($_GET[($id_cons_gen2)]);
     82$cons_rem=addslashes($_GET[($id_cons_gen2)]);
    8383echo "<tr><td><b>"._CONSULTA.":</b></td><td>$cons_rem</td></tr>";
    8484        echo "<tr><td><b>"._SCELTACOMUNE."</b></td><td>$rem_cons</td></tr>";
Note: See TracChangeset for help on using the changeset viewer.