requireAuth(); SimpleSAML_Session::getSessionFromRequest()->cleanup(); //print_r($auth->getAttributes()); $guid = $auth->getAttributes()['guid'][0]; //print_r(r4fb::fetchUsers($guid)); $nome = r4fb::fetchUsers($guid)[0]['nome']; $cognome = r4fb::fetchUsers($guid)[0]['cognome']; $matr = r4fb::fetchUsers($guid)[0]['matr']; //Auth livello 2: $tipo = trim(r4fb::fetchUsers($guid)[0]['tipo']); //print $tipo; if($tipo != 1 && $tipo != 2) { $auth->logout(); header("Location: index.php?error=Privilegi insufficienti."); die("su cunnu e tzia rua bagassa"); } ?> . */ /** * Description of manager * * @author corradomulas for Run PoliTo - Corso Duca degli Abruzzi 24, 10129 Torino (TO) */ // put your code here //MAIN: // echo $_SESSION['tourn']; ?>
Utente Torneo Arbitri Squadre Giocatori Calendario Partite Messaggi
merda
merda
porco dio
  • (necessario solo per invio credenziali)
porca madonna
porco gesoo
porco giuseppe
porci re magi
porco abramo
porco caino
merda
'; for($i=0; $i < $nsq; $i++) { echo '
Squadra '.($i+1).'
'; } echo ''; echo ''; if(isset($_POST['insq'])) { $max = sizeof($_POST['nome']); $tourn = $_SESSION['tourn']; echo $tourn; for($i=0; $i < $max; $i++) { $nome = $_POST['nome'][$i]; $colore = $_POST['colore'][$i]; $npls = $_POST['npls'][$i]; $girone = $_POST['girone'][$i]; r4fb::insSq($tourn, ($i+1), $nome, $colore, $npls, $girone); } } ?>
  • format('H:i'); $tsinizio = strtotime($_POST['tourntime']); $org = $_POST['org']; $loc = $_POST['location']; $nome = $_POST['nome']; $nsquadre = $_POST['nsquadre']; $ngironi = $_POST['ngironi']; r4fb::insTorneo($tsinizio,$nome,$org,$loc,$guid,$nsquadre,$ngironi); } ?>
'; for($i=0; $i < $npl; $i++) { echo '
Giocatore '.($i+1).'
'; } echo ''; echo ''; } if(isset($_POST['insp'])) { $max = sizeof($_POST['nome']); $team = $_SESSION['team']; echo $team; for($i=0; $i < $max; $i++) { $nome = $_POST['nome'][$i]; $email = $_POST['email'][$i]; $n = $i+1; if(!r4fb::insPlayer($n, "1", $nome, "notdef", $team, $email)) die("merdacciasecca"); } } ?>