Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-autocampars
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-autocampars
Commits
8ba46614
Commit
8ba46614
authored
8 years ago
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more output to log only
parent
471b3341
master
rocko
thud
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
autocampars.php
src/autocampars.php
+5
-5
No files found.
src/autocampars.php
View file @
8ba46614
...
...
@@ -2073,7 +2073,7 @@ function readParsToPage($sensor_port, $page) {
}
// elphel_parse_P_name
function
saveRotateConfig
(
$sensor_port
,
$numBackups
)
{
log_msg
(
"saveRotateConfig(
$sensor_port
,
$numBackups
),
\$
GLOBALS['configs'] [
$sensor_port
] ['defaultPage'] = "
.
$GLOBALS
[
'configs'
]
[
$sensor_port
]
[
'defaultPage'
]);
log_msg
(
"saveRotateConfig(
$sensor_port
,
$numBackups
),
\$
GLOBALS['configs'] [
$sensor_port
] ['defaultPage'] = "
.
$GLOBALS
[
'configs'
]
[
$sensor_port
]
[
'defaultPage'
]
,
0
);
// log_msg("GLOBALS['configs']=".print_r($GLOBALS['configs'],1));
rotateConfig
(
$sensor_port
,
$numBackups
);
...
...
@@ -2109,13 +2109,13 @@ function createConfigLink($sensor_port){
}
function
rotateConfig
(
$sensor_port
,
$numBackups
)
{
log_msg
(
"rotateConfig(
$sensor_port
,
$numBackups
)"
);
log_msg
(
"rotateConfig(
$sensor_port
,
$numBackups
)"
,
0
);
if
(
file_exists
(
backupName
(
$sensor_port
,
$numBackups
)
))
unlink
(
backupName
(
$sensor_port
,
$numBackups
)
);
for
(
$i
=
$numBackups
-
1
;
$i
>
0
;
$i
--
)
if
(
file_exists
(
backupName
(
$sensor_port
,
$i
-
1
)
))
rename
(
backupName
(
$sensor_port
,
$i
-
1
),
backupName
(
$sensor_port
,
$i
)
);
log_msg
(
"checking path "
.
$GLOBALS
[
'configDir'
]
.
'/'
.
$GLOBALS
[
'configPaths'
][
$sensor_port
]
.
": "
.
file_exists
(
$GLOBALS
[
'configDir'
]
.
'/'
.
$GLOBALS
[
'configPaths'
][
$sensor_port
]));
log_msg
(
"checking path "
.
$GLOBALS
[
'configDir'
]
.
'/'
.
$GLOBALS
[
'configPaths'
][
$sensor_port
]
.
": "
.
file_exists
(
$GLOBALS
[
'configDir'
]
.
'/'
.
$GLOBALS
[
'configPaths'
][
$sensor_port
])
,
0
);
if
((
$numBackups
>
0
)
&&
(
file_exists
(
$GLOBALS
[
'configDir'
]
.
'/'
.
$GLOBALS
[
'configPaths'
][
$sensor_port
])))
rename
(
$GLOBALS
[
'configDir'
]
.
'/'
.
$GLOBALS
[
'configPaths'
][
$sensor_port
],
backupName
(
$sensor_port
,
0
)
);
}
...
...
@@ -2181,8 +2181,8 @@ function parseConfig($filename) {
}
function
encodeConfig
(
$config
)
{
log_msg
(
"encodeConfig(): sensor_port="
.
$GLOBALS
[
'sensor_port'
]);
// , config=".print_r($config,1));
log_msg
(
"
\$
config['defaultPage'] = "
.
$config
[
'defaultPage'
]);
log_msg
(
"encodeConfig(): sensor_port="
.
$GLOBALS
[
'sensor_port'
]
,
0
);
// , config=".print_r($config,1));
log_msg
(
"
\$
config['defaultPage'] = "
.
$config
[
'defaultPage'
]
,
0
);
$xml
=
"<?xml version=
\"
1.0
\"
standalone=
\"
yes
\"
?>
\n
<!-- This file is generated by "
.
$_SERVER
[
'argv'
]
[
0
]
.
" -->
\n
"
;
$xml
.=
" <autocampars>
\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