<?php
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');  $codeSupp=$_GET["codeSupp"];  include("fotoweb46.php");  $queryDeleteTheme = "DELETE FROM theme WHERE `codeTheme`='$codeSupp'"; $resultDeleteTheme = mysql_query ($queryDeleteTheme) or die ("La requête de suppression du theme a échoué."); $queryDeleteImage = "DELETE FROM image WHERE `codeTheme`='$codeSupp'"; $resultDeleteImage = mysql_query ($queryDeleteImage) or die ("La requête de suppression des images du theme a échoué."); $queryTheme = "select distinct repertoire from theme where codeTheme='$codeSupp' "; $resultTheme = mysql_query ($queryTheme) or die ("La requête de sélection des repertoires a échoué"); $lineTheme = mysql_fetch_row($resultTheme); $rep = $lineTheme[0]; /* Free resultset */ mysql_free_result($resultTheme);  $queryDeleteStats = "DELETE FROM statclick WHERE `repertoire`='$rep'"; $resultDeleteStats = mysql_query ($queryDeleteStats) or die ("La requête de suppression des stats des images du theme a échoué.");  $queryDelete = "DELETE FROM relationthemepersonne WHERE `codeTheme`='$codeSupp'"; $resultDelete = mysql_query ($queryDelete) or die ("La requête de suppression des associations participant/theme a échoué."); echo "alert('Supression du thème OK.');";  echo "parent.frames['basAdmin'].location.replace('fotoweb44.html');";  ?> 