1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-06 21:26:58 +02:00

Unzip Functionality - hide on Windows #229

This commit is contained in:
Oleg Gatseluk
2014-02-20 17:02:49 +02:00
parent a0719eac94
commit 34d4482911
2 changed files with 33 additions and 28 deletions

View File

@@ -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(),