if(isset($_GET["restart"])) {
session_start();
session_destroy();
session_commit();
}
# Start Session
session_start();
# Game ID
$id = session_id();
# Save Check File
$file = "trust/".$id.".log";
if(!file_exists($file)) {
$write = fopen($file,"w");
fwrite($write,md5($id));
fclose($write);
}
# Game Engine
require "php/default.php";
$game = new game();
require_once 'php/mobile/Mobile_Detect.php';
$detect = new Mobile_Detect;
$deviceType = ($detect->isMobile() ? ($detect->isTablet() ? 'tablet' : 'phone') : 'computer');
if($deviceType=="phone") {
header("Location:mobile.php");
}
$game->device($deviceType);
$countGame = 0;
$dir = 'backup';
if ($handle = opendir($dir)) {
while (($file = readdir($handle)) !== false){
if (!in_array($file, array('.', '..')) && !is_dir($dir.$file))
$countGame++;
}
}
?>
if($countGame>0) { ?>
Deutschland -
} ?>
$game->settle("goal");
?>
$game->info("goal");
?>
$game->settle("defenseLeft");
?>
$game->info("defenseLeft");
?>
$game->settle("defense");
?>
$game->info("defense");
?>
$game->settle("defenseRight");
?>
$game->info("defenseRight");
?>
$game->settle("midfieldDefensive");
?>
$game->info("midfieldDefensive");
?>
$game->settle("midfieldLeft");
?>
$game->info("midfieldLeft");
?>
$game->settle("midfieldOffensive");
?>
$game->info("midfieldOffensive");
?>
$game->settle("midfieldRight");
?>
$game->info("midfieldRight");
?>
$game->settle("striker");
?>
$game->info("striker");
?>
for($i=1;$i<12;$i++) {
?>
}
?>
if($countGame>0) { ?>
Deutschland -
} ?>
if($countGame>0) { ?>
Deutschland -
} ?>
if($countGame>0) { ?>
Deutschland -
} ?>
if($countGame>0) { ?>
Deutschland -
} ?>
for($i=1;$i<12;$i++) {
?>
}
?>
$game->statistic("office");
?>
$game->statistic("lodda");
?>
for($i=1;$i<12;$i++) {
?>
}
?>
for($i=1;$i<12;$i++) {
?>
}
?>