mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 12:17:42 +02:00
Unzip Functionality - hide on Windows #229
This commit is contained in:
@@ -35,9 +35,12 @@
|
|||||||
<td><?php echo Number::byteFormat(filesize(ROOT . DS . 'backups' . DS . $backup)); ?></td>
|
<td><?php echo Number::byteFormat(filesize(ROOT . DS . 'backups' . DS . $backup)); ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<?php echo Html::anchor(__('Restore', 'backup'),
|
<?php
|
||||||
|
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||||
|
echo Html::anchor(__('Restore', 'backup'),
|
||||||
'index.php?id=backup&restore='.$backup.'&token='.Security::token(),
|
'index.php?id=backup&restore='.$backup.'&token='.Security::token(),
|
||||||
array('class' => 'btn btn-primary'));
|
array('class' => 'btn btn-primary'));
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<?php echo Html::anchor(__('Delete', 'backup'),
|
<?php echo Html::anchor(__('Delete', 'backup'),
|
||||||
'index.php?id=backup&delete_file='.$backup.'&token='.Security::token(),
|
'index.php?id=backup&delete_file='.$backup.'&token='.Security::token(),
|
||||||
|
@@ -107,6 +107,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<?php if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN'): ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<?php
|
<?php
|
||||||
@@ -134,6 +135,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /Plugins_to_install_list -->
|
<!-- /Plugins_to_install_list -->
|
||||||
|
Reference in New Issue
Block a user