Changeset 382 for trunk/admin


Ignore:
Timestamp:
Oct 28, 2022, 9:41:48 PM (2 years ago)
Author:
roby
Message:

ADMIN
continua modifiche per funzione di aggiornamento

Location:
trunk/admin
Files:
2 edited

Legend:

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

    r381 r382  
    7474        $za = new ZipArchive();
    7575        $path = "./files/";
     76        $righe='';
    7677        if(file_exists($path)) {
    7778                if (!is_dir($path)) {
     
    9798                include("footer.php");die();
    9899        }
    99         $righe='';
    100100        $admin =  '../admin';
    101101        $client = '../client';
    102102#       $path = "/tmp/files";
    103103        $backup = "./backup".$myrev;
     104        $path = "./files/";
     105        $righe='';
    104106/*      if(file_exists($path)) {
    105107                $i=1;
     
    134136        $newfile=$path."aggiornamento".$newrev;
    135137        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";
    137139                Header("Location: admin.php?op=aggiorna&id_cons_gen=$id_cons_gen&errmex=$errmex"); exit;
    138140        }
    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();
    143145
    144146#$za->open('theZip.zip');
    145         $za->open($newfile);
    146 
     147#       $za->open($newfile);
     148/*
    147149for( $i = 0; $i < $za->numFiles; $i++ ){
    148150    $stat = $za->statIndex( $i );
    149151    print_r( basename( $stat['name'] ) . PHP_EOL );
    150152}
    151 die();
     153die(); */
    152154################
    153155        $righe.= "<br>$newfile scaricato";
     
    241243
    242244?>
    243 
  • trunk/admin/versione.php

    r381 r382  
    11<?php
    22
    3 $versione = "3.0 rev 381";
     3$versione = "3.0 rev 382";
    44$version_number = $versione;
    55$datarel = "28 ottobre 2022";
Note: See TracChangeset for help on using the changeset viewer.