update view Opennel Manager and change terminal header
This commit is contained in:
parent
22937b5bae
commit
4be4444a2f
6 changed files with 56 additions and 44 deletions
|
@ -178,6 +178,7 @@ then
|
||||||
mkdir -p /tmp/pymanager/tmp || exit 2
|
mkdir -p /tmp/pymanager/tmp || exit 2
|
||||||
cp -pr $DIRPYMANAGER/* /tmp/pymanager || exit 2
|
cp -pr $DIRPYMANAGER/* /tmp/pymanager || exit 2
|
||||||
msg_debug "cd /tmp/pymanager; `which python3` setup.py bdist_wheel -d ${DIRBUILD} -b /tmp"
|
msg_debug "cd /tmp/pymanager; `which python3` setup.py bdist_wheel -d ${DIRBUILD} -b /tmp"
|
||||||
|
rm -f ${DIRBUILD}/*.whl || exit 2
|
||||||
cd /tmp/pymanager; `which python3` setup.py bdist_wheel -d ${DIRBUILD} -b /tmp/pymanager/tmp || exit 2
|
cd /tmp/pymanager; `which python3` setup.py bdist_wheel -d ${DIRBUILD} -b /tmp/pymanager/tmp || exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -134,26 +134,33 @@ if (file_exists($cfgfile)) {
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$data = json_decode($result,true);
|
$data = json_decode($result,true);
|
||||||
ksort($data);
|
ksort($data);
|
||||||
echo "<table>";
|
if ( $data )
|
||||||
echo "<tr><th>Line</th>";
|
|
||||||
foreach ($data as $key => $value)
|
|
||||||
{
|
{
|
||||||
foreach ($value as $key2 => $value2)
|
echo "<table>";
|
||||||
|
echo "<tr><th>Line</th>";
|
||||||
|
foreach ($data as $key => $value)
|
||||||
{
|
{
|
||||||
echo "<th>$key2</th>";
|
ksort($value);
|
||||||
|
foreach ($value as $key2 => $value2)
|
||||||
|
{
|
||||||
|
echo "<th>$key2</th>";
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
echo "</tr>";
|
||||||
}
|
foreach ($data as $key => $value)
|
||||||
echo "</tr>";
|
|
||||||
foreach ($data as $key => $value)
|
|
||||||
{
|
|
||||||
echo "<tr><td>$key</td>";
|
|
||||||
foreach ($value as $key2 => $value2)
|
|
||||||
{
|
{
|
||||||
echo "<td align=\"right\">$value2</td>";
|
echo "<tr><td>$key</td>";
|
||||||
|
ksort($value);
|
||||||
|
foreach ($value as $key2 => $value2)
|
||||||
|
{
|
||||||
|
echo "<td align=\"right\">$value2</td>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
echo "</table></div>";
|
||||||
|
} else {
|
||||||
|
echo "<b>No admin command executed</b>";
|
||||||
}
|
}
|
||||||
echo "</table></div>";
|
|
||||||
} else {
|
} else {
|
||||||
echo "<a>OpenNelManager not enabled</a>";
|
echo "<a>OpenNelManager not enabled</a>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,17 @@ if (file_exists($cfgfile)) {
|
||||||
{
|
{
|
||||||
echo "<p><div>$key</div>";
|
echo "<p><div>$key</div>";
|
||||||
echo "<table>";
|
echo "<table>";
|
||||||
echo "<tr><th>Key</th><th>Value</th></tr>";
|
if ( $value )
|
||||||
foreach ($value as $key2 => $value2)
|
|
||||||
{
|
{
|
||||||
echo "<tr><td>$key2</td><td align=\"right\">$value2</td>";
|
echo "<tr><th>Key</th><th>Value</th></tr>";
|
||||||
|
foreach ($value as $key2 => $value2)
|
||||||
|
{
|
||||||
|
echo "<tr><td>$key2</td><td align=\"right\">$value2</td>";
|
||||||
|
}
|
||||||
|
echo "</table></div>";
|
||||||
|
} else {
|
||||||
|
echo "<b>Nothing</b>";
|
||||||
}
|
}
|
||||||
echo "</table></div>";
|
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,26 +134,33 @@ if (file_exists($cfgfile)) {
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$data = json_decode($result,true);
|
$data = json_decode($result,true);
|
||||||
ksort($data);
|
ksort($data);
|
||||||
echo "<table>";
|
if ( $data )
|
||||||
echo "<tr><th>Player</th>";
|
|
||||||
foreach ($data as $key => $value)
|
|
||||||
{
|
{
|
||||||
foreach ($value as $key2 => $value2)
|
echo "<table>";
|
||||||
|
echo "<tr><th>Player</th>";
|
||||||
|
foreach ($data as $key => $value)
|
||||||
{
|
{
|
||||||
echo "<th>$key2</th>";
|
ksort($value);
|
||||||
|
foreach ($value as $key2 => $value2)
|
||||||
|
{
|
||||||
|
echo "<th>$key2</th>";
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
echo "</tr>";
|
||||||
}
|
foreach ($data as $key => $value)
|
||||||
echo "</tr>";
|
|
||||||
foreach ($data as $key => $value)
|
|
||||||
{
|
|
||||||
echo "<tr><td>$key</td>";
|
|
||||||
foreach ($value as $key2 => $value2)
|
|
||||||
{
|
{
|
||||||
echo "<td align=\"right\">$value2</td>";
|
echo "<tr><td>$key</td>";
|
||||||
|
ksort($value);
|
||||||
|
foreach ($value as $key2 => $value2)
|
||||||
|
{
|
||||||
|
echo "<td align=\"right\">$value2</td>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
echo "</table></div>";
|
||||||
|
} else {
|
||||||
|
echo "<b>No player connected</b>";
|
||||||
}
|
}
|
||||||
echo "</table></div>";
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
echo "<a>OpenNelManager not enabled</a>";
|
echo "<a>OpenNelManager not enabled</a>";
|
||||||
|
|
|
@ -76,7 +76,7 @@ source /home/gameserver/.bashrc
|
||||||
# opennel-pymanager
|
# opennel-pymanager
|
||||||
####################################
|
####################################
|
||||||
msg_info "[$(basename $0):$LINENO] install/update opennel-pymanager"
|
msg_info "[$(basename $0):$LINENO] install/update opennel-pymanager"
|
||||||
last_pymanager_package=$(ls /opt/ref/pymanager/pymanager*.whl | head -n 1)
|
last_pymanager_package=$(ls /opt/ref/pymanager/pymanager*.whl | sort -r | head -n 1)
|
||||||
if [[ -n "$last_pymanager_package" ]]
|
if [[ -n "$last_pymanager_package" ]]
|
||||||
then
|
then
|
||||||
pip3 show pymanager
|
pip3 show pymanager
|
||||||
|
|
|
@ -194,17 +194,9 @@ SSH : ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no gameserver
|
||||||
+------------+----------+-------------------+
|
+------------+----------+-------------------+
|
||||||
|
|
||||||
Use 'sudo bash' to connect on root (ssh/terminal)
|
Use 'sudo bash' to connect on root (ssh/terminal)
|
||||||
|
---------------------------------------------------
|
||||||
-----------------------------------------
|
log khanat server : /home/gameserver/khanat/server/log/log.log
|
||||||
SCREEN
|
***************************************************
|
||||||
--------
|
|
||||||
<Control>+A+N : next windows
|
|
||||||
<Control>+A+P : previous windows
|
|
||||||
<Control>+A+0 : windows 0 (terminal)
|
|
||||||
<Control>+A+1 : windows 1 (AES)
|
|
||||||
-----------------------------------------
|
|
||||||
To launch server : go to windows AES and ENTER
|
|
||||||
-----------------------------------------
|
|
||||||
ENDOFCOMMENT
|
ENDOFCOMMENT
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue