Last change
on this file since 548 was
30,
checked in by sebas, 17 years ago
|
nueva importacion del codigo del esqueleto de redcta con los plugins
|
File size:
829 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
4 | |
---|
5 | function action_decompresser_mis_archivos($nom_zip=NULL) { |
---|
6 | |
---|
7 | if (!isset($nom_zip)) { |
---|
8 | $liste_zip = preg_files('tmp/mis_archivos_'); |
---|
9 | $fichier_zip = ''; |
---|
10 | $mtime_zip = 0; |
---|
11 | foreach ($liste_zip as $_fichier) { |
---|
12 | if (($_mtime = filemtime($_fichier)) > $mtime_zip) { |
---|
13 | $fichier_zip = $_fichier; |
---|
14 | $mtime_zip = $_mtime; |
---|
15 | } |
---|
16 | } |
---|
17 | $nom_zip = substr($fichier_zip, strpos($fichier_zip, '/')+1, strlen($fichier_zip)-strpos($fichier_zip, '/')); |
---|
18 | } |
---|
19 | |
---|
20 | define( |
---|
21 | '_NOM_PAQUET_ZIP', |
---|
22 | $nom_zip |
---|
23 | ); |
---|
24 | define( |
---|
25 | '_URL_PAQUET_ZIP', |
---|
26 | './'.$nom_zip |
---|
27 | ); |
---|
28 | |
---|
29 | define( |
---|
30 | '_SPIP_LOADER_SCRIPT', |
---|
31 | 'spip.php?action=decompresser_mis_archivos' |
---|
32 | ); |
---|
33 | define( |
---|
34 | '_SPIP_LOADER_URL_RETOUR', |
---|
35 | 'ecrire/?exec=admin_tech&mis_archivos=restauration_ok' |
---|
36 | ); |
---|
37 | |
---|
38 | include_once('spip_loader.php'); |
---|
39 | exit; |
---|
40 | } |
---|
41 | |
---|
42 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.