Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
set $test 1
<?php
$cs15 = 0;
?>
<?php if ($cs15 == 1) { echo "<span class='online'>online</span>"; } elseif ($cs15 == 0) { echo "<span class='offline'>offline</span>"; } else echo "<span class='error'>error</span>"; ?>
</td>
<td width="164">
Counterstrike 1.5 Server
</td>
<td width="81">
<?php if ($cs15 == 1) { echo '<p><a href="index2.php?target=hlds&cmd=stop"><b style="cursor:crosshair">Stoppen</b></a>'; } elseif ($cs15 == 0) { echo '<p><a href="index2.php?target=hlds&cmd=start"><b style="cursor:crosshair">Starten</b></a>'; } ?>
</td>
<td width="69">
<?php if ($cs15 == 1) { echo '<p><a href="index2.php?target=hlds&cmd=restart"><b style="cursor:crosshair">Restarten</b></a>'; } ?>
</td>
<td width="284">
<?php
if ($target == "hlds")
{
echo "<h2>";
if ($cmd == "start")
{
passthru('hlds start');
echo "<span class='Stil3'>Counterstrike 1.5 Server gestartet</span>";
}
if ($cmd == "stop")
{
passthru('/home/controlling/hlds stop');
echo "<span class='Stil3'>Counterstrike 1.5 Server gestoppt</span>";
}
if ($cmd == "restart")
{
passthru('/home/controlling/hlds restart');
echo "<span class='Stil3'>Counterstrike 1.5 Server restarted</span>";
}
if ($cmd == "status")
{
passthru('/home/controlling/hlds status');
}
echo "</h2>";
}
?>
<?php
if($_GET[target] == "hlds" && $_GET[cmd] == "start") $cs15 = 1; else $cs15 = 0;
if ($cs15 == 1) { echo "<span class='online'>online</span>"; } elseif ($cs15 == 0) { echo "<span class='offline'>offline</span>"; } else echo "<span class='error'>error</span>"; ?>
</td>
<td width="164">
Counterstrike 1.5 Server
</td>
<td width="81">
<?php if ($cs15 == 1) { echo '<p><a href="lschen.php?target=hlds&cmd=stop"><b style="cursor:crosshair">Stoppen</b></a>'; } elseif ($cs15 == 0) { echo '<p><a href="lschen.php?target=hlds&cmd=start"><b style="cursor:crosshair">Starten</b></a>'; } ?>
</td>
<td width="69">
<?php if ($cs15 == 1) { echo '<p><a href="index2.php?target=hlds&cmd=restart"><b style="cursor:crosshair">Restarten</b></a>'; } ?>
</td>
<td width="284">
<?php
if ($_GET["target"] == "hlds")
{
echo "<h2>";
if ($_GET["cmd"] == "start")
{
passthru('hlds start');
echo "<span class='Stil3'>Counterstrike 1.5 Server gestartet</span>";
}
if ($cmd == "stop")
{
passthru('/home/controlling/hlds stop');
echo "<span class='Stil3'>Counterstrike 1.5 Server gestoppt</span>";
}
if ($cmd == "restart")
{
passthru('/home/controlling/hlds restart');
echo "<span class='Stil3'>Counterstrike 1.5 Server restarted</span>";
}
if ($cmd == "status")
{
passthru('/home/controlling/hlds status');
}
echo "</h2>";
}
?>