-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
63 lines (56 loc) · 1.66 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
<style>
/* Desktop */
@media (min-width: 600px) {
html,body {
margin:0; padding:0; height:100%; width:100%;
}
}
/* Desktop */
#container {
background:#601748;
position:absolute;
color:#fff;
text-align:center;
top:50%;
left:50%;
padding:15px;
-ms-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
border-radius: 15px 50px;
}
</style>
</head>
<body>
<div id="container">
<p><textarea style="width: 900px; height: 400px;">
<?php
echo file_get_contents('texts/description.md');
?></textarea>
</p>
<p>
Enable SSH tunneling for database node
</p>
<p>
<?php
$jps="sshtun.jps";
if (isset($_SERVER['REQUEST_SCHEME']))
{
$manifest=$_SERVER['REQUEST_SCHEME']."://".$_SERVER['HTTP_HOST'].str_replace("index.php","",$_SERVER['REQUEST_URI']).$jps;
}
else
{
$manifest=str_replace("index.php","",$_SERVER['SCRIPT_URI']).$jps;
}
?>
<pre style="color:#601748"><?=$manifest?></pre>
<a href="https://app.j.layershift.co.uk/?manifest=<?=$manifest?>" target="myTarget">
<img src="https://raw.githubusercontent.com/jelastic-jps/jpswiki/master/images/getithosted.png" alt="GET IT HOSTED" style="max-width:100%;">
</a>
</p>
</div>
</body>
</html>