mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-03 19:57:57 +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'),
|
||||
<?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(),
|
||||
|
@@ -107,6 +107,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN'): ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
@@ -134,6 +135,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<!-- /Plugins_to_install_list -->
|
||||
|
Reference in New Issue
Block a user