File size: 1.37Kb
<?php
/*-----------------------------------------------------------------------------------------
mcGalleryPRO
All code is © 2003 Marc Cagninacci.
No files may be redistributed in whole or significant part.
----------------- mcgalleryPRO IS NOT FREE SOFTWARE -------------------
You should have receive a file called license.txt in this package
--------------------------------------------------------------------------------------------*/
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>mcGalleryPRO</title>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
</head>
<body bgcolor="black" text="black">
<div align="center">
<?php
include './admin/conf.inc.php';
if (empty($_SESSION['lang'])) $_SESSION['lang'] = $lang_def;
include './lang/'.$_SESSION['lang'];
$connect= mysql_connect($host,$login,$pass);
mysql_select_db($base, $connect);
$query = "SELECT file FROM mcgallery_photo WHERE id = $hidef";
$res = mysql_query($query);
$row = mysql_fetch_array($res);
list($path1,$path2) = split('_', $row['file'], 2);
$size = getimagesize('./photos/'.$path1.'/big/'.$path2);
echo '<font face="verdana" size="2" color="white">'.$l_close.'</font><br>';
echo '<a href="javascript:window.close()"><img src="photos/'.$path1.'/big/'.$path2.'" '.$size[3].' alt="back" border="0"></a>';
?>
</div>
</body>
</html>