Esempio n. 1
0
<?php

include_once 'includes/db_connect.php';
include_once 'includes/functions.php';
if (CheckArma3isrunning() == true) {
    $online = 'Online';
    $picture = 'pics/status_gruen.png';
} else {
    $online = 'Offline';
    $picture = 'pics/status_rot.png';
}
sec_session_start();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Webinterface: Arma3 Server</title>
        <link rel="stylesheet" href="css/style_arma.css" />	
    </head>
    <body>
        <?php 
if (login_check($mysqli) == true) {
    ?>
           	<p class = "blocktext">Willkomen <?php 
    echo htmlentities($_SESSION['username']);
    ?>
 !</p>
			<div style="text-align:center;"><form action="includes/logout.php" method="get"><button class="logout">Logout</button></form></div>
		   <p class = "blocktext">
				Du bist nun eingeloggt und kannst den Server administrieren
Esempio n. 2
0
<?php

include_once 'db_connect.php';
include_once 'functions.php';
sec_session_start();
?>

<?php 
if (login_check($mysqli) == true) {
    if (CheckArma3isrunning() == false) {
        echo "Der Server ist schon Offline! Du wirst wieder zum Interface weitergeleitet";
        ?>
		<meta http-equiv="refresh" content="3; URL=http://127.0.0.1/Webinterface_arma.php">
		<?php 
    } else {
        execInBackground("C:\\Bats\\StopArma3.bat");
        echo "Server wird gestoppt, du wirst wieder zum Interface weitergeleitet";
        doLog("Hat den Server Gestoppt");
        ?>
		<meta http-equiv="refresh" content="3; URL=http://127.0.0.1/Webinterface_arma.php">
		<?php 
    }
} else {
    echo 'You are not authorized to access this page, please login.';
    ?>
		<meta http-equiv="refresh" content="3; URL=http://127.0.0.1/index.php">
		<?php 
}
?>