Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
743bfc28
Commit
743bfc28
authored
Sep 23, 2013
by
Leigh B Stoller
Browse files
Add ssh:// links.
parent
23f52add
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/shownode.php3
View file @
743bfc28
...
@@ -104,6 +104,9 @@ if ($node->HasSerialConsole()) {
...
@@ -104,6 +104,9 @@ if ($node->HasSerialConsole()) {
# SSH to option.
# SSH to option.
#
#
if
(
$experiment
)
{
if
(
$experiment
)
{
$sshurl
=
$node
->
sshurl
(
$uid
);
WRITESUBMENUBUTTON
(
"SSH URL"
,
$sshurl
);
WRITESUBMENUBUTTON
(
"SSH to node</a> "
.
WRITESUBMENUBUTTON
(
"SSH to node</a> "
.
"<a href='
$WIKIDOCURL
/ssh_mine'>"
.
"<a href='
$WIKIDOCURL
/ssh_mine'>"
.
"(howto)"
,
"nodessh.php3?node_id=
$node_id
"
);
"(howto)"
,
"nodessh.php3?node_id=
$node_id
"
);
...
...
www/showstuff.php3
View file @
743bfc28
<?php
<?php
#
#
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
#
#
# {{{EMULAB-LICENSE
# {{{EMULAB-LICENSE
#
#
...
@@ -33,6 +33,7 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
...
@@ -33,6 +33,7 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
global
$SCRIPT_NAME
;
global
$SCRIPT_NAME
;
global
$TBOPSPID
;
global
$TBOPSPID
;
global
$WIKIDOCURL
;
global
$WIKIDOCURL
;
global
$login_user
;
#
#
# If this is an expt in emulab-ops, we also want to see the reserved
# If this is an expt in emulab-ops, we also want to see the reserved
...
@@ -226,7 +227,8 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
...
@@ -226,7 +227,8 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
<th class='sorttable_nosort'>Last Log Message</th>
\n
"
;
<th class='sorttable_nosort'>Last Log Message</th>
\n
"
;
}
}
echo
" <th class='sorttable_nosort'><a href=
\"
$WIKIDOCURL
/ssh_mine
\"
>SSH</a></th>
echo
" <th class='sorttable_nosort'>SSH<br>URL</th>
<th class='sorttable_nosort'>SSH<br>mime</th>
<th class='sorttable_nosort'><a href=
\"
$WIKIDOCURL
/kb25
\"
>Console</a></th>
<th class='sorttable_nosort'><a href=
\"
$WIKIDOCURL
/kb25
\"
>Console</a></th>
<th class='sorttable_nosort'>Log</th>"
;
<th class='sorttable_nosort'>Log</th>"
;
...
@@ -327,6 +329,11 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
...
@@ -327,6 +329,11 @@ function SHOWNODES($pid, $eid, $sortby, $showclass) {
(<a href='shownodelog.php3?node_id=
$node_id
'>LOG</a>)
(<a href='shownodelog.php3?node_id=
$node_id
'>LOG</a>)
</td>
\n
"
;
</td>
\n
"
;
}
}
$sshurl
=
$node
->
sshurl
(
$login_user
->
uid
());
echo
" <td align=center>
<a href='
$sshurl
'>
<img src=
\"
ssh.gif
\"
alt=s></a>
</td>
\n
"
;
echo
" <td align=center>
echo
" <td align=center>
<a href='nodessh.php3?node_id=
$node_id
'>
<a href='nodessh.php3?node_id=
$node_id
'>
...
...
Write
Preview
Supports
Markdown
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