Add RASPI_MONITOR_ENABLED to update check btn, require config.php

This commit is contained in:
billz 2023-11-24 22:53:06 +00:00
parent 484a1e8702
commit c0bf18bf50
2 changed files with 5 additions and 0 deletions

View file

@ -1,4 +1,7 @@
<?php
require_once '../../includes/config.php';
$logFile = '/tmp/'.RASPI_INSTALL_LOG;
$searchStrings = [
'Configure update' => 1,

View file

@ -6,9 +6,11 @@
<div class="card-body">
<div class="ml-5 mt-2"><img class="about-logo" src="app/img/raspAP-logo.php" style="width: 175px; height:175px"></div>
<h2 class="mt-3 ml-4"><?php echo _("RaspAP") ." v".RASPI_VERSION; ?></h2>
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<button type="button" class="btn btn-warning ml-4 mt-2" name="check-update" data-toggle="modal" data-target="#chkupdateModal" />
<i class="fas fa-sync-alt ml-1 mr-2"></i><?php echo _("Check for update"); ?>
</button>
<?php endif; ?>
</div>
</div>
</div>