header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET, POST'); session_start(); header('content-type: text/html; charset=utf-8'); header('Cache-control: no-cache, must-revalidate'); header('Pragma: no-cache'); include_once("_config.php"); include_once("_connection.php"); include_once("_functions.php"); include("_header.php"); $fild = 60/78; $divw = 90; $padt = $divw/$fild; $spil = $_SESSION['kick']; if ($_SESSION['ausn']) {$minplayer=8;} else {$minplayer=6;} $anzplayer = anz("team","spiel='$spil'"); $proz = round(100/$minplayer*$anzplayer,0); if ($proz>=100) {$proz=100;$beteil="vollständig";} else {$beteil="noch ".($minplayer-$anzplayer)." Spieler";} echo"