Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
e3061fe4
Commit
e3061fe4
authored
Feb 17, 2017
by
anne munoz
Committed by
Adam Wujek
Aug 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www: [BUG #1528] cache wrs_version
wrs_version value cached
parent
4cb8cb7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
wrs-data.php
userspace/rootfs_override/var/www/data/wrs-data.php
+4
-0
functions.php
userspace/rootfs_override/var/www/functions.php
+1
-1
No files found.
userspace/rootfs_override/var/www/data/wrs-data.php
View file @
e3061fe4
...
...
@@ -19,6 +19,10 @@ if(empty($_SESSION["KCONFIG"])){
load_kconfig
();
}
if
(
empty
(
$_SESSION
[
"WRSVERSION"
])){
$_SESSION
[
"WRSVERSION"
]
=
shell_exec
(
"/wr/bin/wrs_version -g"
);
}
// Forms are firstly generated by default, but can be modified by users.
$WRS_TABLE_INFO
=
Array
(
...
...
userspace/rootfs_override/var/www/functions.php
View file @
e3061fe4
...
...
@@ -1005,7 +1005,7 @@ function wrs_display_help($help_id, $name){
$message
=
"<p>This is a switch console emulator windows. Use it as if you were using a ssh session.</p>"
;
}
else
if
(
!
strcmp
(
$help_id
,
"gateware"
)){
$msg
=
shell_exec
(
"/wr/bin/wrs_version -g"
)
;
$msg
=
$_SESSION
[
"WRSVERSION"
]
;
$msg
=
explode
(
"
\n
"
,
$msg
);
$message
.=
"<ul>"
;
...
...
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