diff --git a/html/includes/print-interface-adsl.inc.php b/html/includes/print-interface-adsl.inc.php
index 031b58468..36e9c5984 100644
--- a/html/includes/print-interface-adsl.inc.php
+++ b/html/includes/print-interface-adsl.inc.php
@@ -142,4 +142,4 @@ if ($graph_type && is_file($graph_file))
}
-?>
\ No newline at end of file
+?>
diff --git a/html/includes/print-interface.inc.php b/html/includes/print-interface.inc.php
index 3e31905a7..e2344d13f 100644
--- a/html/includes/print-interface.inc.php
+++ b/html/includes/print-interface.inc.php
@@ -101,7 +101,7 @@ if ($device['os'] == "ios" || $device['os'] == "iosxe")
if ($port_adsl['adslLineCoding'])
{
echo("
");
- echo($port_adsl['adslLineCoding']."/".$port_adsl['adslLineType']);
+ echo($port_adsl['adslLineCoding']."/" . rewrite_adslLineType($port_adsl['adslLineType']));
echo(" ");
echo("Sync:".formatRates($port_adsl['adslAtucChanCurrTxRate']) . "/". formatRates($port_adsl['adslAturChanCurrTxRate']));
echo(" ");
@@ -274,4 +274,4 @@ if ($graph_type && is_file($graph_file))
}
-?>
\ No newline at end of file
+?>
diff --git a/includes/rewrites.php b/includes/rewrites.php
index 2e48036c6..3f0e24232 100644
--- a/includes/rewrites.php
+++ b/includes/rewrites.php
@@ -950,4 +950,24 @@ function array_preg_replace($array, $string)
return $string;
}
-?>
\ No newline at end of file
+
+
+function rewrite_adslLineType($adslLineType)
+{
+ $adslLineTypes = array ('noChannel' => 'No Channel',
+ 'fastOnly' => 'Fastpath',
+ 'interleavedOnly' => 'Interleaved',
+ 'fastOrInterleaved' => 'Fast/Interleaved',
+ 'fastAndInterleaved' => 'Fast+Interleaved');
+
+ foreach($adslLineTypes as $type => $text)
+ {
+ if($adslLineType == $type)
+ {
+ $adslLineType = $text;
+ }
+ }
+ return($adslLineType);
+}
+
+?>
|