1
0
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:
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><?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
'index.php?id=backup&restore='.$backup.'&token='.Security::token(), if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
array('class' => 'btn btn-primary')); 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'), <?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(),

View File

@@ -107,33 +107,35 @@
</tbody> </tbody>
</table> </table>
<div class="row"> <?php if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN'): ?>
<div class="col-md-12"> <div class="row">
<?php <div class="col-md-12">
echo ( <?php
Form::open(null, array('enctype' => 'multipart/form-data', 'class' => 'form-inline')). echo (
Form::hidden('csrf', Security::token()) Form::open(null, array('enctype' => 'multipart/form-data', 'class' => 'form-inline')).
); Form::hidden('csrf', Security::token())
?> );
<div class="fileinput fileinput-new pull-left" data-provides="fileinput"> ?>
<span class="btn btn-default btn-file"><span class="fileinput-new"><?php echo __('Select file', 'filesmanager'); ?></span><span class="fileinput-exists"><?php echo __('Change', 'filesmanager'); ?></span><input type="file" name="file"></span> <div class="fileinput fileinput-new pull-left" data-provides="fileinput">
<?php <span class="btn btn-default btn-file"><span class="fileinput-new"><?php echo __('Select file', 'filesmanager'); ?></span><span class="fileinput-exists"><?php echo __('Change', 'filesmanager'); ?></span><input type="file" name="file"></span>
echo ( <?php
Form::submit('upload_file', __('Upload', 'plugins'), array('class' => 'btn btn-primary')). echo (
Form::close() Form::submit('upload_file', __('Upload', 'plugins'), array('class' => 'btn btn-primary')).
); Form::close()
?> );
<span class="fileinput-filename"></span> ?>
</div> <span class="fileinput-filename"></span>
<div id="DgDfileUploader"> </div>
<div class="upload-area"> <div id="DgDfileUploader">
<div class="upload-progress"></div> <div class="upload-area">
<div class="upload-file-pholder"><?php echo __('Drop File Here', 'plugins'); ?></div> <div class="upload-progress"></div>
<div class="upload-file-pholder"><?php echo __('Drop File Here', 'plugins'); ?></div>
</div>
<div class="upload-file-info"></div>
</div> </div>
<div class="upload-file-info"></div>
</div> </div>
</div> </div>
</div> <?php endif; ?>
</div> </div>
<!-- /Plugins_to_install_list --> <!-- /Plugins_to_install_list -->