Commit 1be57e3b authored by José Luis  Gutiérrez's avatar José Luis Gutiérrez Committed by Adam Wujek

www: header ports fix

header ports were not loaded correctly because of format changes in
tmp/ports.conf output. Fixed now.
parent ceca38bc
......@@ -83,7 +83,7 @@ function wrs_header_ports(){
echo '<tr class="port">';
$cont = 0;
for($i=1; $i<18*4; $i=$i+4){
for($i=1; $i<18*3; $i=$i+3){
if (strstr($ports[($i-1)],"up")){
if (!strcmp($ports[($i)],"Master")){
......@@ -102,7 +102,7 @@ function wrs_header_ports(){
echo '</tr>';
echo '<tr class="status">';
for($i=1; $i<18*4; $i=$i+4){
for($i=1; $i<18*3; $i=$i+3){
if (!strstr($ports[($i+1)],"NoLock")){
$mode="locked";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment