mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Add RASPI_MONITOR_ENABLED to update check btn, require config.php
This commit is contained in:
parent
484a1e8702
commit
c0bf18bf50
2 changed files with 5 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
require_once '../../includes/config.php';
|
||||||
|
|
||||||
$logFile = '/tmp/'.RASPI_INSTALL_LOG;
|
$logFile = '/tmp/'.RASPI_INSTALL_LOG;
|
||||||
$searchStrings = [
|
$searchStrings = [
|
||||||
'Configure update' => 1,
|
'Configure update' => 1,
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
<div class="card-body">
|
<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>
|
<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>
|
<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" />
|
<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"); ?>
|
<i class="fas fa-sync-alt ml-1 mr-2"></i><?php echo _("Check for update"); ?>
|
||||||
</button>
|
</button>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue