Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
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-apps-camogm
Commits
bb98a520
Commit
bb98a520
authored
Oct 12, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved up list_raw_devices - it doesn't need camogm runnning
parent
ab5770e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
camogm_interface.php
src/camogmgui/camogm_interface.php
+18
-9
No files found.
src/camogmgui/camogm_interface.php
View file @
bb98a520
...
@@ -306,6 +306,24 @@ else if ($cmd=="list") {
...
@@ -306,6 +306,24 @@ else if ($cmd=="list") {
echo
"</"
.
$cmd
.
">"
;
echo
"</"
.
$cmd
.
">"
;
xml_footer
();
xml_footer
();
}
}
else
if
(
$cmd
==
"list_raw_devices"
){
$devices
=
get_raw_dev
();
foreach
(
$devices
as
$device
=>
$size
)
{
echo
"<item>"
;
echo
"<raw_device>"
.
$device
.
"</raw_device>"
;
echo
"<size>"
.
round
(
$size
/
1048576
,
2
)
.
"</size>"
;
echo
"</item>"
;
}
}
else
if
(
$cmd
==
"list_partitions"
){
$partitions
=
get_partitions
();
foreach
(
$partitions
as
$device
=>
$size
)
{
echo
"<item>"
;
echo
" <device>"
.
$device
.
"</device>"
;
echo
" <size>"
.
round
(
$size
/
1048576
,
2
)
.
"</size>"
;
echo
"</item>"
;
}
}
else
else
{
{
$fcmd
=
fopen
(
$cmd_pipe
,
"w"
);
$fcmd
=
fopen
(
$cmd_pipe
,
"w"
);
...
@@ -427,15 +445,6 @@ else
...
@@ -427,15 +445,6 @@ else
}
}
}
}
break
;
break
;
case
"list_raw_devices"
:
$devices
=
get_raw_dev
();
foreach
(
$devices
as
$device
=>
$size
)
{
echo
"<item>"
;
echo
"<raw_device>"
.
$device
.
"</raw_device>"
;
echo
"<size>"
.
round
(
$size
/
1048576
,
2
)
.
"</size>"
;
echo
"</item>"
;
}
break
;
case
"mkdir"
:
case
"mkdir"
:
$dir_name
=
$_GET
[
'name'
];
$dir_name
=
$_GET
[
'name'
];
if
(
isset
(
$dir_name
)
&&
((
$dir_name
!=
""
)
||
(
$dir_name
!=
" "
)))
if
(
isset
(
$dir_name
)
&&
((
$dir_name
!=
""
)
||
(
$dir_name
!=
" "
)))
...
...
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