firmware
This commit is contained in:
parent
ee9a822a31
commit
c959f3aba9
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
include 'header.php';
|
||||
|
||||
switch ($_POST['action']) {
|
||||
$board_id = trim(@file_get_contents('/sys/class/dmi/id/board_serial'));
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
switch ($_POST['action']) {
|
||||
case 'update':
|
||||
update_firmware();
|
||||
break;
|
||||
|
|
@ -99,10 +102,9 @@ switch ($_POST['action']) {
|
|||
die("Backup file not found\n");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$board_id = trim(@file_get_contents('/sys/class/dmi/id/board_serial'));
|
||||
|
||||
?>
|
||||
<script>
|
||||
function confirmReboot() {
|
||||
|
|
@ -127,8 +129,7 @@ $board_id = trim(@file_get_contents('/sys/class/dmi/id/board_serial'));
|
|||
<div class="grid">
|
||||
<div class="card wide">
|
||||
Device Licence Info :- <br>
|
||||
Device ID :- <?php global $board_id;
|
||||
echo $board_id ?><br>
|
||||
Device ID :- <?php echo $board_id ?><br>
|
||||
Reseller ID :- <br>
|
||||
Project Name :- <br>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue