mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +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>
|
||||
<div class="pull-right">
|
||||
<?php echo Html::anchor(__('Restore', 'backup'),
|
||||
'index.php?id=backup&restore='.$backup.'&token='.Security::token(),
|
||||
array('class' => 'btn btn-primary'));
|
||||
<?php
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||
echo Html::anchor(__('Restore', 'backup'),
|
||||
'index.php?id=backup&restore='.$backup.'&token='.Security::token(),
|
||||
array('class' => 'btn btn-primary'));
|
||||
}
|
||||
?>
|
||||
<?php echo Html::anchor(__('Delete', 'backup'),
|
||||
'index.php?id=backup&delete_file='.$backup.'&token='.Security::token(),
|
||||
|
Reference in New Issue
Block a user