Skip to content

Commit

Permalink
update RaspAP#18
Browse files Browse the repository at this point in the history
  • Loading branch information
getveloce committed Feb 25, 2017
1 parent 14186e2 commit 59263b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions includes/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ function DisplayUpdate(){

<?php
if (isset($_POST['check_update'])) {
echo '<div class="alert alert-warning">System Rebooting Now!</div>';
echo '<div class="alert alert-warning">Checking for updates Now!</div>';
$json = file_get_contents("");
$obj = json_decode($json);
echo $obj;
}
?>

Expand All @@ -27,12 +26,12 @@ function DisplayUpdate(){
<div class="panel-body">
<h4>Release Information</h4>
<div class="info-item">Wifi Portal Revision</div> v 1.0.1</br>
<div class="info-item">JSON Serial Port Server Revision</div> v 1.88</br>
<div class="info-item">JSPS Revision</div> v 1.88</br>
</div><!-- /.panel-body -->
</div><!-- /.panel-default -->
</div><!-- /.col-md-6 -->
</div><!-- /.row -->

<?php echo $obj; ?>
<form action="?page=update_info" method="POST">
<input type="submit" class="btn btn-warning" name="check_update" value="Check for Updates" />
<input type="button" class="btn btn-outline btn-primary" value="Refresh" onclick="document.location.reload(true)" />
Expand Down

0 comments on commit 59263b8

Please sign in to comment.