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

Last change on this file since 22 was 2, checked in by root, 15 years ago

importo il progetto

File size: 677 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$result = mysql_query("select descrizione from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen2'", $dbi);
8list($nomeFile) = mysql_fetch_row($result);
9#$nomeFile="backup";
10header( 'Content-Type: application/octet-stream' );
11header( 'Content-Disposition: attachment; filename="'.$nomeFile.'"' );
12#header( 'Content-Length:'.strlen( $content ) );
13header( 'Content-Transfer-Encoding: binary' );
14include("backup2.php");
15exit(0);
16
17?>
Note: See TracBrowser for help on using the repository browser.