Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
9674e108
Commit
9674e108
authored
Jun 17, 2014
by
José Luis Gutiérrez
Committed by
Alessandro Rubini
Jul 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: page redirection bugs
Fixing www page redirection bugs
parent
36d25ba9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
functions.php
userspace/rootfs_override/var/www/functions.php
+7
-3
management.php
userspace/rootfs_override/var/www/management.php
+2
-0
No files found.
userspace/rootfs_override/var/www/functions.php
View file @
9674e108
...
...
@@ -507,6 +507,7 @@ function wrs_load_files(){
}
else
if
(
!
empty
(
$_POST
[
"size"
])){
php_file_transfer_size
(
htmlspecialchars
(
$_POST
[
"size"
]));
header
(
'Location: load.php'
);
}
...
...
@@ -548,6 +549,8 @@ function wrs_management(){
modify_switch_mode
();
$mode
=
check_switch_mode
();
echo
'<br><br><br>Switch is now '
.
$mode
;
header
(
'Location: management.php'
);
}
else
if
(
!
empty
(
$_FILES
[
'file'
][
'name'
])){
$uploaddir
=
'/tmp/'
;
$uploadfile
=
$uploaddir
.
basename
(
$_FILES
[
'file'
][
'name'
]);
...
...
@@ -684,6 +687,7 @@ function wrs_management(){
//Backup wrs firmware
}
}
...
...
@@ -789,8 +793,8 @@ function wrs_ptp_configuration(){
$output
=
shell_exec
(
$ptp_command
);
//Relaunching wrsw_hal to commit endpoint changes
shell_exec
(
"killall wrsw_hal"
);
shell_exec
(
"/wr/bin/wrsw_hal -c "
.
$GLOBALS
[
'etcdir'
]
.
"wrsw_hal.conf > /dev/null 2>&1 &"
);
//
shell_exec("killall wrsw_hal");
//
shell_exec("/wr/bin/wrsw_hal -c ".$GLOBALS['etcdir']."wrsw_hal.conf > /dev/null 2>&1 &");
echo
'<center>PPSi enabled!</center>'
;
header
(
'Location: ptp.php'
);
exit
;
...
...
@@ -798,7 +802,7 @@ function wrs_ptp_configuration(){
}
if
((
!
empty
(
$_POST
[
"daemongroup"
]))
&&
(
!
strcmp
(
htmlspecialchars
(
$_POST
[
"daemongroup"
]),
"Off"
))){
shell_exec
(
"killall ppsi"
);
shell_exec
(
"killall wrsw_hal"
);
//
shell_exec("killall wrsw_hal");
echo
'<center>PPSi stopped!</center>'
;
header
(
'Location: ptp.php'
);
exit
;
...
...
userspace/rootfs_override/var/www/management.php
View file @
9674e108
...
...
@@ -136,6 +136,8 @@
wrs_change_wrfs
(
"rw"
);
wrs_management
();
wrs_change_wrfs
(
"ro"
);
?>
...
...
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