Skip to content

Commit

Permalink
Test if zip extension is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER committed Jan 28, 2017
1 parent 771c548 commit 5cf61a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ function convertseconds($argument) {
<div class="box-tools pull-right"><button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button></div>
</div>
<div class="box-body">
<?php if (extension_loaded('zip')) { ?>
<form role="form" method="post" id="takeoutform" action="scripts/pi-hole/php/teleporter.php" target="_blank" enctype="multipart/form-data">
<div class="col-lg-12">
<p>Export your Pi-hole lists as downloadable ZIP file</p>
Expand Down Expand Up @@ -787,6 +788,9 @@ function convertseconds($argument) {
</div>
</div>
</form>
<?php } else { ?>
<p>The Pi-hole teleporter can only work properly when the PHP ZIP extension is installed. Please install it.</p>
<?php } ?>
</div>
</div>
</div>
Expand Down

0 comments on commit 5cf61a5

Please sign in to comment.