1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| <? require_once("header.php");
if (isset($_SESSION['id']))
{
if ($_SESSION['fan'] == 1)
{
$id_ki_photo = $_GET['id_user'];
$id_photo = $_GET['id'];
if (is_numeric($id_ki_photo))
{
?>
<div align="center">
<a href="galerie.php?id=<? echo $id_ki_photo; ?>">Retour galerie</a>
</div>
<table align="center" width="70%">
<tr>
<?
//récuperation
$query_photo = "SELECT id,id_from,photo FROM photos WHERE id_from='$id_ki_photo' AND id=$id_photo ORDER BY id DESC";
$retour_photo = query($query_photo);
// on met tout ca en array
$donnee_photo = mysql_fetch_array($retour_photo);
$id_photo = $donnee_photo['id'];
$id_from = $donnee_photo['id_from'];
$photo = $donnee_photo['photo'];
$_cover = "<img border='none' src='big/$photo'>";
?>
<td class="texte" align="center" valign="top">
<? header('Location: big/'.$photo.''); ?>
</td>
</tr>
</table>
<?
}
}
}
else
{
echo "<meta http-equiv='refresh' content='0 ; url=./sortie.php'>";
}
require_once("footer.php");
?> |
Partager