|
|
@ -96,10 +96,10 @@ try { |
|
|
|
// Delete snap files |
|
|
|
// Delete snap files |
|
|
|
foreach (json_decode(SNAP_STORAGE) as $name => $storages) { |
|
|
|
foreach (json_decode(SNAP_STORAGE) as $name => $storages) { |
|
|
|
|
|
|
|
|
|
|
|
foreach ($storages as $storage) { |
|
|
|
foreach ($storages as $i => $storage) { |
|
|
|
|
|
|
|
|
|
|
|
// Generate storage id |
|
|
|
// Generate storage id |
|
|
|
$crc32name = crc32(sprintf('%s.%s', $name, $snapStorageIndex)); |
|
|
|
$crc32name = crc32(sprintf('%s.%s', $name, $i)); |
|
|
|
|
|
|
|
|
|
|
|
switch ($name) { |
|
|
|
switch ($name) { |
|
|
|
|
|
|
|
|
|
|
@ -162,10 +162,10 @@ try { |
|
|
|
// Delete snap files |
|
|
|
// Delete snap files |
|
|
|
foreach (json_decode(SNAP_STORAGE) as $name => $storages) { |
|
|
|
foreach (json_decode(SNAP_STORAGE) as $name => $storages) { |
|
|
|
|
|
|
|
|
|
|
|
foreach ($storages as $storage) { |
|
|
|
foreach ($storages as $i => $storage) { |
|
|
|
|
|
|
|
|
|
|
|
// Generate storage id |
|
|
|
// Generate storage id |
|
|
|
$crc32name = crc32(sprintf('%s.%s', $name, $snapStorageIndex)); |
|
|
|
$crc32name = crc32(sprintf('%s.%s', $name, $i)); |
|
|
|
|
|
|
|
|
|
|
|
switch ($name) { |
|
|
|
switch ($name) { |
|
|
|
|
|
|
|
|
|
|
@ -284,10 +284,10 @@ try { |
|
|
|
// Delete snap files |
|
|
|
// Delete snap files |
|
|
|
foreach (json_decode(SNAP_STORAGE) as $name => $storages) { |
|
|
|
foreach (json_decode(SNAP_STORAGE) as $name => $storages) { |
|
|
|
|
|
|
|
|
|
|
|
foreach ($storages as $storage) { |
|
|
|
foreach ($storages as $i => $storage) { |
|
|
|
|
|
|
|
|
|
|
|
// Generate storage id |
|
|
|
// Generate storage id |
|
|
|
$crc32name = crc32(sprintf('%s.%s', $name, $snapStorageIndex)); |
|
|
|
$crc32name = crc32(sprintf('%s.%s', $name, $i)); |
|
|
|
|
|
|
|
|
|
|
|
switch ($name) { |
|
|
|
switch ($name) { |
|
|
|
|
|
|
|
|
|
|
|