-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoto_admin.php
65 lines (46 loc) · 1.88 KB
/
foto_admin.php
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<? session_start(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Fotos -> Album -> Foto</title>
<? include ('include/meta.php'); ?>
<script type="text/javascript" src="js/show_hide.js" language="JavaScript" ></script>
<script type="text/javascript" src="js/browserdetect.js" language="JavaScript" ></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8447274-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="contenido_ppal">
<?php
if (isset($_SESSION['user_name']))
{
$directorio_trabajo = $_GET['album'];
$foto = $_GET['foto'];
$num_pagina = $_GET['pag'];
$autor = $_GET['autor'];
$dir_foto = "$directorio_trabajo/$foto";
if (!$_GET['foto'] || !file_exists($dir_foto)) // El parametro pasado no es una foto
{
echo "<h1>La foto no existe, melón</h1>\n";
echo "</div></body></html>\n";
exit -3;
}
echo "<a style=\"color:#FFFFFF; text-decoration:none;\" href=\"javascript:history.back(1)\"> << Volver al álbum</a><br/><br/>\n";
echo "<img class=\"marco_thumbnail\" src=\"$dir_foto\" alt=\"$dir_foto\" /><br/><br/>\n";
} // Fin del hay sesión
else
{
echo "<b>Debes iniciar sesión para ver esta foto.<br/> Ve a <a href=\"fotos.php\" class=\"enlace_normal\">fotos</a> e introduce la password o escribe a <a class=\"enlace_normal\" href=\"mailto:[email protected]\">[email protected]</a> si no la tienes</b>";
}
?>
</div>
<? include ('include/firma.html')?>
</body>
</html>