<?php
session_start(); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache');  include("fotoweb46.php");  $nomParticipant = $_GET['nomParticipant']; $listeTheme = $_GET['listeTheme']; $queryDelete = "DELETE FROM relationthemepersonne WHERE `nomPers`='$nomParticipant'"; $resultDelete = mysql_query ($queryDelete) or die ("La requête de suppression des associations participant/theme a échoué."); if ($listeTheme != "|noCode") { $tabCodeThemes = explode("|", $listeTheme); array_pop ($tabCodeThemes); while (count($tabCodeThemes) != 0) { $codeTheme = array_pop($tabCodeThemes); $niveau = substr($codeTheme,0,2); $codeTheme = substr($codeTheme,2,strlen($codeTheme)); switch ($niveau) { case "VI": $niveau = "2"; break; case "PR": $niveau = "1"; break; case "PU": $niveau = "0"; break; default : $niveau = "0"; } $queryInsert = "INSERT INTO relationthemepersonne (`nomPers`,`codeTheme`,`niveau`) VALUES ('$nomParticipant','$codeTheme','$niveau')"; $resultInsert = mysql_query ($queryInsert) or die ("La requête d'insertion des associations participant/theme a échoué."); } } echo "alert('Enregistrement des habilitations : OK');"; echo "parent.frames['basAdmin'].location.replace('fotoweb44.html');";  $modif = "true"; include("fotoweb29.php"); ?> 