diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/WebConsole/comandos/EliminarImagenCache.php | 4 | ||||
-rw-r--r-- | admin/WebConsole/includes/pintaParticiones.php | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/admin/WebConsole/comandos/EliminarImagenCache.php b/admin/WebConsole/comandos/EliminarImagenCache.php index 6c9e92ba..60a24cea 100644 --- a/admin/WebConsole/comandos/EliminarImagenCache.php +++ b/admin/WebConsole/comandos/EliminarImagenCache.php @@ -348,6 +348,10 @@ switch($ambito){ $ima[$x] = str_replace(".img.diff", "", $ima[$x]); //quitar todos los .img $ima[$x]=trim($ima[$x]); $nombreimagenes[]="f-".$ima[$x]; + } elseif (preg_match("/\.[0-3]/", $ima[$x])) { + $ima[$x] = preg_replace("/\.img\.[0-3]/", "", $ima[$x]); + $ima[$x] = trim($ima[$x]); + $nombreimagenes[] = "f-".$ima[$x]; }else{ $ima[$x] = str_replace(".img", "", $ima[$x]); //quitar todos los .img $ima[$x]=trim($ima[$x]); diff --git a/admin/WebConsole/includes/pintaParticiones.php b/admin/WebConsole/includes/pintaParticiones.php index c789298d..ef70de44 100644 --- a/admin/WebConsole/includes/pintaParticiones.php +++ b/admin/WebConsole/includes/pintaParticiones.php @@ -308,13 +308,15 @@ function pintaParticionesRestaurarImagen($cmd,$configuraciones,$idordenadores,$c $metodos.="UNICAST-DIRECT=UNICAST-DIRECT".chr(13); $metodos.="MULTICAST " . mcast_syntax($cmd,$ambito,$idambito) . "=MULTICAST-CACHE".chr(13); $metodos.="MULTICAST-DIRECT " . mcast_syntax($cmd,$ambito,$idambito) . "=MULTICAST-DIRECT".chr(13); - $metodos.="TORRENT " . torrent_syntax($cmd,$ambito,$idambito) . "=TORRENT-CACHE"; + $metodos.="TORRENT " . torrent_syntax($cmd,$ambito,$idambito) . "=TORRENT-CACHE".chr(13); + $metodos.="TIPTORRENT=TIPTORRENT-CACHE"; $TBmetodos["UNICAST-CACHE"]=1; $TBmetodos["UNICAST-DIRECT"]=2; $TBmetodos["MULTICAST-CACHE"]=3; $TBmetodos["MULTICAST-DIRECT"]=4; $TBmetodos["TORRENT-CACHE"]=5; + $TBmetodos["TIPTORRENT"]=6; $idxc=$_SESSION["protclonacion"]; if ($idxc == "UNICAST") { $idxc = "UNICAST-DIRECT"; |