mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
Set device image w/ getDeviceImage($revision)
This commit is contained in:
@@ -22,6 +22,7 @@ function DisplayDashboard(): void
|
||||
$clientInterface = $_SESSION['wifi_client_interface'];
|
||||
$hostname = $system->hostname();
|
||||
$revision = $system->rpiRevision();
|
||||
$deviceImage = $dashboard->getDeviceImage($revision);
|
||||
$hostapd = $system->hostapdStatus();
|
||||
$adblock = $system->adBlockStatus();
|
||||
$vpn = $system->getActiveVpnInterface();
|
||||
@@ -88,6 +89,7 @@ function DisplayDashboard(): void
|
||||
echo renderTemplate(
|
||||
"dashboard", compact(
|
||||
"revision",
|
||||
"deviceImage",
|
||||
"interface",
|
||||
"clientInterface",
|
||||
"state",
|
||||
|
||||
@@ -9,6 +9,7 @@ require_once 'config.php';
|
||||
function DisplaySystem(&$extraFooterScripts)
|
||||
{
|
||||
$status = new \RaspAP\Messages\StatusMessage;
|
||||
$dashboard = new \RaspAP\UI\Dashboard;
|
||||
$pluginInstaller = \RaspAP\Plugins\PluginInstaller::getInstance();
|
||||
|
||||
if (isset($_POST['SaveLanguage'])) {
|
||||
@@ -86,6 +87,7 @@ function DisplaySystem(&$extraFooterScripts)
|
||||
$kernel = $system->kernelVersion();
|
||||
$systime = $system->systime();
|
||||
$revision = $system->rpiRevision();
|
||||
$deviceImage = $dashboard->getDeviceImage($revision);
|
||||
|
||||
// memory use
|
||||
$memused = $system->usedMemory();
|
||||
@@ -129,6 +131,7 @@ function DisplaySystem(&$extraFooterScripts)
|
||||
"uptime",
|
||||
"systime",
|
||||
"revision",
|
||||
"deviceImage",
|
||||
"cores",
|
||||
"os",
|
||||
"kernel",
|
||||
|
||||
Reference in New Issue
Block a user