khanat-server-docker-NeL/server/common/rootweb/index.php

134 lines
3 KiB
PHP
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<title>DOCKER KHANAT</title>
</head>
<style>
#command_shell{
background: #F3E2A9;
border:3px solid #151515;
color: #000000;
margin:10px;
padding:3px;
top:40px;left:3%;right:3%;
text-align:left;
max-width:100vw;
}
#title_info{
background: #00FFFF;
border:3px solid #8A0808;
color: #000000;
font-size:20px;
font-weight:500;
margin:50px;
padding:3px;
top:40px;left:3%;right:3%;
text-align:center;
}
#important_info{
background: #A9E2F3;
border:3px solid #088A08;
color: #000000;
font-size:15px;
font-weight:500;
margin:30px;
padding:3px;
top:40px;left:3%;right:3%;
text-align:left;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
#alert_javascript{
background: #F3F781;
border:3px solid #610B0B;
color: #DF0101;
font-size:20px;
font-weight:700;
margin:0;
padding:3px;
top:40px;left:3%;right:3%;
text-align:center;
max-width:100vw;
}
</style>
<script>
function setHref() {
document.getElementById('admin-href').href = window.location.protocol + "//" + window.location.hostname + ":40916/ams/";
}
</script>
<noscript>
<div id='alert_javascript'>
This website need Javascript.<br>
Could you please enable Javascript?
</div>
</noscript>
<body onload="setHref()">
<p>
<div id='title_info'>KHANAT DOCKER ENVIRONMENT (TEST)</div>
<div id='important_info'>
<?php
print "SERVER IP: ". getHostByName(gethostname());
?>
</div>
<a href="/EnableJavascript" id="admin-href" >Administration</a>
<br/>
<a href="/phpmyadmin/">phpmyadmin</a>
<br/>
<a href="/patch/">patch</a>
<br/>
<br/>
</div>
<div>
script to download and convert launcher on our instance:
<a href="/prepare_environment_container_64.sh">prepare_environment_container_64.sh</a>
</div>
<div>
Account / Password
<table>
<tr>
<th>Account</th>
<th>Password</th>
<th>Where</th>
<th>Comment</th>
</tr>
<tr>
<td>gameserver</td>
<td>khanat</td>
<td>ssh</td>
<td>server access</td>
</tr>
<tr>
<td>root</td>
<td></td>
<td>phpmyadmin</td>
<td>(no password)</td>
</tr>
<tr>
<td>admin</td>
<td>admin</td>
<td>khanat</td>
<td>account (administration)</td>
</tr>
<tr>
<td>tester</td>
<td>tester</td>
<td>khanat</td>
<td>account (player)</td>
</tr>
</table>
</div>
<div>
Command to connect on khanat 'server' :
<div id='command_shell'>ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no gameserver@<?php print getHostByName(gethostname());?></div>
Use sudo to switch on root account
<div id='command_shell'>sudo bash</div>
</div>
<p>PHP : <?php echo 'PHP version : ' . phpversion(); ?></p>
</body>
</html>