Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
979e470b
Commit
979e470b
authored
4 years ago
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to helper function for reading detected ports
parent
68926b40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
index.php
src/index/index.php
+5
-11
No files found.
src/index/index.php
View file @
979e470b
...
...
@@ -96,21 +96,17 @@
<div
style=
'padding:10px'
>
<?php
$port0
=
2323
;
$path
=
"/sys/devices/soc0/elphel393-detect_sensors@0"
;
include
"include/elphel_functions_include.php"
;
$port0
=
2323
;
$table_contents
=
""
;
$port_links
=
""
;
$sample_port
=
-
1
;
for
(
$i
=
0
;
$i
<
4
;
$i
++
){
$sensor
=
$path
.
"/sensor
{
$i
}
0"
;
if
(
is_file
(
$sensor
)){
$c
=
trim
(
file_get_contents
(
$sensor
));
if
(
$c
!=
"none"
){
$sample_port
=
$i
;
foreach
(
get_sensors
()
as
$i
=>
$sensor
){
if
(
$sensor
!=
"none"
){
$sample_port
=
$i
;
$sandp
=
"http://
{
$_SERVER
[
"SERVER_ADDR"
]
}
:"
.
(
$port0
+
$i
);
$href1
=
"
$sandp
/bimg"
;
...
...
@@ -125,8 +121,6 @@
$table_contents
.=
"</td>"
;
$port_links
.=
"<li><a href=
\"
#
\"
onclick=
\"
window.open('camvc.html?sensor_port=
$i
&reload=0', 'port
$i
','menubar=0, width=800, height=600, toolbar=0, location=0, personalbar=0, status=0, scrollbars=1')
\"
>port
$i
</a></li>
\n
"
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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