-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssh.php
46 lines (42 loc) · 1.22 KB
/
ssh.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// page header, and any additional required libraries
require_once 'header.php';
// minimum permission to view page
valid_login($action_permission['delete']);
if ( test_port($server[$realm_id]['addr_wan'], $server[$realm_id]['term_port']) )
{
// we start with a lead of 10 spaces,
// because last line of header is an opening tag with 8 spaces
// keep html indent in sync, so debuging from browser source would be easy to read
$output .= '
<!-- start of ssh.php -->
<center>
<br />
<applet codebase="." archive="libs/js/ssh.jar"
code="de.mud.jta.Applet" width="780" height="350">
<param name="plugins" value="Status,Socket,'.$server[$realm_id]['term_type'].',Terminal" />
<param name="Socket.host" value="'.$server[$realm_id]['addr_wan'].'" />
<param name="Socket.port" value="'.$server[$realm_id]['term_port'].'" />
</applet>
<br />
<br />
</center>
<!-- end of ssh.php -->';
}
else
{
$lang_ssh = lang_ssh();
$output .= '
<!-- start of ssh.php -->
<div class="top">
<h1><font class="error">'.$lang_ssh['server_offline'].'</font></h1>
</div>
<center>
'.$lang_ssh['config_server_properly'].'
</center>
<!-- end of ssh.php -->';
unset($lang_ssh);
}
unset($action_permission);
require_once 'footer.php';
?>