Location: PHPKode > projects > Maian Gallery > maian_gallery/admin/data_files/image_management/view_image.php
<?php

/*++++++++++++++++++++++++++++++++++++++++

  Script: Maian Gallery v2.0
  Written by: David Ian Bennett
  E-Mail: hide@address.com
  Website: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++
  
  This File: view_image.php
  Description: View Full Size Image

  ++++++++++++++++++++++++++++++++++++++++*/

// Make sure that this file is being called from parent file
if (!defined('INCLUDE_FILES')) {
  accessDenied($msg_script18,$msg_script19);
  exit;
}
 
if (!isset($_GET['new_img']) && isset($_GET['img']) && ctype_digit($_GET['img']))
{
  $q_image = mysql_query("SELECT * FROM ".$database['prefix']."images 
                          WHERE id = '{$_GET['img']}'
                          LIMIT 1
                          ") or die(mysql_error());
  $IMG = mysql_fetch_object($q_image);                         
}

// Image sizes..
if (isset($_GET['new_img'])) {
  //$sizes = getimagesize(RELATIVE_PATH.'galleries/new/'.$_GET['new_img']);
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $msg_charset; ?>">
<title></title>
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>

<body>
<div align="center">
  <?php
  if (isset($_GET['img'])) {
  ?>
  <img src="<?php echo $SETTINGS->folder; ?>/galleries/<?php echo $SETTINGS->folder_name; ?>/<?php echo getFolderName($IMG->cat); ?>/<?php echo $IMG->imagepath; ?>" alt="<?php echo cleanData($IMG->name); ?>"<?php echo ($SETTINGS->imgwidth>0 && $SETTINGS->imgheight>0 ? ' height="'.$SETTINGS->imgheight.'" width="'.$SETTINGS->imgwidth.'" ' : ' '); ?>title="<?php echo cleanData($IMG->name); ?>" class="image_pad" />
  <?php
  }
  if (isset($_GET['new_img'])) {
  ?>
  <img src="<?php echo $SETTINGS->folder; ?>/galleries/new/<?php echo $_GET['new_img']; ?>" alt="<?php echo $_GET['new_img']; ?>" title="<?php echo $_GET['new_img']; ?>" class="image_pad" />
  <?php
  }
  ?>
</div>
</body>
</html>
Return current item: Maian Gallery