Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-imgsrv
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-imgsrv
Commits
d2581e5d
Commit
d2581e5d
authored
Dec 13, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct application mode to exif
parent
8fdc5a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
exif.php
src/exif.php
+7
-5
No files found.
src/exif.php
View file @
d2581e5d
...
...
@@ -471,20 +471,22 @@ function substitute_value($ifd_entry) {
$ifd_entry
->
addChild
(
'value'
,
$DeviceBrand
);
break
;
case
"MODEL"
:
if
(
file_exists
(
'/var/state/APPLICATION'
))
{
$model
=
file_get_contents
(
'/var/state/APPLICATION'
);
if
(
file_exists
(
'/var/state/APPLICATION_MODE'
))
{
$model
.=
' CHN'
.
file_get_contents
(
'/var/state/APPLICATION_MODE'
);
}
$camera_state_path
=
"/var/volatile/state/camera"
;
if
(
file_exists
(
$camera_state_path
))
{
$pars
=
parse_ini_file
(
$camera_state_path
);
$model
=
$pars
[
'application'
]
.
"_"
.
$par
[
'mode'
];
}
else
{
$model
=
$DeviceModel
;
}
$ifd_entry
->
addChild
(
'value'
,
$model
);
break
;
case
"SOFTWARE"
:
/* TODO:
if (file_exists("/usr/html/docs/")) {
$ifd_entry->addChild ('value',exec("ls /usr/html/docs/")); // filter
}
*/
$ifd_entry
->
addChild
(
'value'
,
"https://github.com/Elphel/elphel393"
);
break
;
case
"SERIAL"
:
$s
=
""
;
...
...
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