Changeset 382 for trunk/admin/modules/Elezioni
- Timestamp:
- Oct 28, 2022, 9:41:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/aggiornamento.php
r381 r382 74 74 $za = new ZipArchive(); 75 75 $path = "./files/"; 76 $righe=''; 76 77 if(file_exists($path)) { 77 78 if (!is_dir($path)) { … … 97 98 include("footer.php");die(); 98 99 } 99 $righe='';100 100 $admin = '../admin'; 101 101 $client = '../client'; 102 102 # $path = "/tmp/files"; 103 103 $backup = "./backup".$myrev; 104 $path = "./files/"; 105 $righe=''; 104 106 /* if(file_exists($path)) { 105 107 $i=1; … … 134 136 $newfile=$path."aggiornamento".$newrev; 135 137 if(!copy($filename,$newfile)){ 136 $errmex="Errore durante la copia del pacchetto - aggiornamento interrotto<br>";138 $errmex="Errore durante la copia del pacchetto $newfile - aggiornamento interrotto"; 137 139 Header("Location: admin.php?op=aggiorna&id_cons_gen=$id_cons_gen&errmex=$errmex"); exit; 138 140 } 139 #$zip = new ZipArchive;140 #$res = $zip->open($newfile);141 ############ #142 $za = new ZipArchive();141 $zip = new ZipArchive; 142 $res = $zip->open($newfile); 143 ############ 144 #$za = new ZipArchive(); 143 145 144 146 #$za->open('theZip.zip'); 145 $za->open($newfile);146 147 # $za->open($newfile); 148 /* 147 149 for( $i = 0; $i < $za->numFiles; $i++ ){ 148 150 $stat = $za->statIndex( $i ); 149 151 print_r( basename( $stat['name'] ) . PHP_EOL ); 150 152 } 151 die(); 153 die(); */ 152 154 ################ 153 155 $righe.= "<br>$newfile scaricato"; … … 241 243 242 244 ?> 243
Note:
See TracChangeset
for help on using the changeset viewer.