Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
4de4b371
Commit
4de4b371
authored
Jun 08, 2017
by
anne munoz
Committed by
Adam Wujek
Aug 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: fixed calibration tables
Fixed Calibration tables to write in dot-cong correctly
parent
b1dbadd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
functions.php
userspace/rootfs_override/var/www/functions.php
+4
-2
No files found.
userspace/rootfs_override/var/www/functions.php
View file @
4de4b371
...
@@ -320,7 +320,9 @@ function process_multi_form($matrix){
...
@@ -320,7 +320,9 @@ function process_multi_form($matrix){
$modified
=
false
;
$modified
=
false
;
$i
=
0
;
$i
=
0
;
if
(
!
empty
(
$_POST
)){
if
(
!
empty
(
$_POST
)){
$fiber
=
array_search
(
'FIBER'
,
$_POST
);
$tmp
=
implode
(
" "
,
$_POST
);
$fiber
=
strstr
(
$tmp
,
'FIBER'
);
foreach
(
$matrix
as
$array
){
foreach
(
$matrix
as
$array
){
$elements
=
explode
(
","
,
$array
);
$elements
=
explode
(
","
,
$array
);
...
@@ -342,7 +344,7 @@ function process_multi_form($matrix){
...
@@ -342,7 +344,7 @@ function process_multi_form($matrix){
$output
=
rtrim
(
$output
,
","
);
$output
=
rtrim
(
$output
,
","
);
//change matrix fiber to match format to save at dot-config
//change matrix fiber to match format to save at dot-config
if
(
$fiber
>=
0
){
if
(
$fiber
!=
FALSE
){
$output
=
str_replace
(
"id="
.
$i
.
","
,
""
,
$output
);
$output
=
str_replace
(
"id="
.
$i
.
","
,
""
,
$output
);
$output
=
lreplace
(
",rx="
,
"_"
,
$output
);
$output
=
lreplace
(
",rx="
,
"_"
,
$output
);
$output
=
str_replace
(
"tx="
,
"alpha_"
,
$output
);
$output
=
str_replace
(
"tx="
,
"alpha_"
,
$output
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment