This commit is contained in:
devdatt 2025-12-20 08:39:11 +05:30
parent ee9a822a31
commit c959f3aba9
1 changed files with 102 additions and 101 deletions

View File

@ -2,7 +2,10 @@
include 'header.php'; 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': case 'update':
update_firmware(); update_firmware();
break; break;
@ -99,10 +102,9 @@ switch ($_POST['action']) {
die("Backup file not found\n"); die("Backup file not found\n");
} }
break; break;
}
} }
$board_id = trim(@file_get_contents('/sys/class/dmi/id/board_serial'));
?> ?>
<script> <script>
function confirmReboot() { function confirmReboot() {
@ -127,8 +129,7 @@ $board_id = trim(@file_get_contents('/sys/class/dmi/id/board_serial'));
<div class="grid"> <div class="grid">
<div class="card wide"> <div class="card wide">
Device Licence Info :- <br> Device Licence Info :- <br>
Device ID :- <?php global $board_id; Device ID :- <?php echo $board_id ?><br>
echo $board_id ?><br>
Reseller ID :- <br> Reseller ID :- <br>
Project Name :- <br> Project Name :- <br>
</div> </div>