From d8e0d82152ced0a5cf70993af69a287250cbb6b2 Mon Sep 17 00:00:00 2001
From: SimonFair <39065407+SimonFair@users.noreply.github.com>
Date: Thu, 6 Jul 2023 22:03:37 +0100
Subject: [PATCH] Set highlight lines
---
emhttp/plugins/dynamix/SysDrivers.page | 93 ++++++++++++++++++-
emhttp/plugins/dynamix/include/SysDrivers.php | 36 +++----
2 files changed, 108 insertions(+), 21 deletions(-)
diff --git a/emhttp/plugins/dynamix/SysDrivers.page b/emhttp/plugins/dynamix/SysDrivers.page
index b33535a1c..3c6a1d412 100644
--- a/emhttp/plugins/dynamix/SysDrivers.page
+++ b/emhttp/plugins/dynamix/SysDrivers.page
@@ -21,15 +21,99 @@ Tag="server"
$select[] = mk_option(0,"all",'All');
?>
+
-
-
+
diff --git a/emhttp/plugins/dynamix/include/SysDrivers.php b/emhttp/plugins/dynamix/include/SysDrivers.php
index e3f52ee52..135e43a61 100644
--- a/emhttp/plugins/dynamix/include/SysDrivers.php
+++ b/emhttp/plugins/dynamix/include/SysDrivers.php
@@ -119,35 +119,37 @@ foreach($procmodules as $line) {
getmodules($kernel,$line) ;
}
-
- echo "| "._("Module/Driver")." | "._("Description")." | "._("State")." | "._("Type")." | "._("Modeprobe.d config file")." |
";
-
+ echo "| "._("Module/Driver")." | "._("Description")." | "._("State")." | "._("Type")." | "._("Modeprobe.d config file")." |
";
+ echo "" ;
if (is_array($arrModules)) ksort($arrModules) ;
foreach($arrModules as $modname => $module)
{
switch ($_POST['option']){
- case "inuse":
-
- if ($module['state'] == "Available" || $module['state'] == "(builtin)") continue(2) ;
- break ;
- case "confonly":
- if ($module['modprobe'] == "" ) continue(2) ;
+ case "inuse":
+ if ($module['state'] == "Available" || $module['state'] == "(builtin)") continue(2) ;
break ;
+
+ case "confonly":
+ if ($module['modprobe'] == "" ) continue(2) ;
+ break ;
+
case "all":
break ;
}
- if (substr($module['state'],0,9) == "(builtin)") $disable = "disabled" ; else $disable = "" ;
- $disable = "disabled" ;
- echo "| $modname | {$module['description']} | {$module['state']} | {$module['type']} | ";
- $text = "" ;
- if (is_array($module["modprobe"])) {
- $text = implode("\n",$module["modprobe"]) ;
- echo " |
";
- } else echo " | ";
+ #echo " $modname| {$module['description']} | {$module['state']} | {$module['type']} | ";
+ $text = "" ;
+ if (is_array($module["modprobe"])) {
+ $text = implode("\n",$module["modprobe"]) ;
+ echo " | ";
+ } else echo " | ";
}
+ echo "" ;
break;
+
case "update":
$conf = $_POST['conf'] ;
$module = $_POST['module'] ;