source: trunk/admin/modules/Elezioni/backup.php@ 256

Last change on this file since 256 was 256, checked in by roby, 6 years ago
File size: 713 bytes
Line 
1<?php
2$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
3if (isset($param['id_cons_gen']))
4 $id_cons_gen2=intval($param['id_cons_gen']);
5if (isset($param['id_comune']))
6 $id_comune2=intval($param['id_comune']);
7$sql="select descrizione from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen2'";
8$sth = $dbi->prepare("$sql");
9$sth->execute();
10$row = $sth->fetch(PDO::FETCH_BOTH);
11$nomeFile=$row[0];
12#$nomeFile="backup";
13header( 'Content-Type: application/octet-stream' );
14header( 'Content-Disposition: attachment; filename="'.$nomeFile.'"' );
15#header( 'Content-Length:'.strlen( $content ) );
16header( 'Content-Transfer-Encoding: binary' );
17include("backup2.php");
18exit(0);
19
20?>
Note: See TracBrowser for help on using the repository browser.