<div id="bread_crumb"> <?php crumb(); ?> <?php if (get_option('dvpoo_ad1')) { echo '<div class="ad_a">' . stripslashes(get_option('dvpoo_adcode1')) . '</div>'; } ?> </div>
/** * Function: image() - retrieves information for a specific image * * @access public * @var integer $albumID - ID of album picture belongs to * @var integer $imgID - ID of image to work with */ function image($albumID, $imgID) { global $db, $title, $config; /* Get album name */ $result =& $db->query('SELECT * FROM ' . TP . 'albums WHERE albumID = ' . $albumID); if (DB::isError($result)) { die($result->getMessage()); } $line =& $result->fetchRow(DB_FETCHMODE_ASSOC); $albumTitle[0] = $albumID; $albumTitle[1] = stripslashes($line['albumName']); /* Update number of views for this image */ $result =& $db->query('UPDATE ' . TP . 'images SET imageViews = imageViews+1 WHERE albumID = ' . $albumID . ' AND imageID = ' . $imgID); if (DB::isError($result)) { die($result->getMessage()); } /* Get the image's information */ $result =& $db->query('SELECT * FROM ' . TP . 'images WHERE albumID = ' . $albumID . ' AND imageID = ' . $imgID); if (DB::isError($result)) { die($result->getMessage()); } $i = 1; while ($line =& $result->fetchRow(DB_FETCHMODE_ASSOC)) { $image[$i][0] = stripslashes($line['imageName']); $image[$i][1] = $line['imageFilename']; $image[$i][2] = stripslashes($line['imageDesc']); $image[$i][3] = $line['imageCreated']; $image[$i][4] = $line['imageModified']; $image[$i][5] = $line['albumID']; if ($config['enableCache'] == 1) { $image[$i][6] = getImage($line['albumID'], $line['imageFilename'], $line['imageName'], 600, 'cache'); } else { $image[$i][6] = getImage($line['albumID'], $line['imageFilename'], $line['imageName'], 600, 'dynamic'); } $i++; } $image[1][7] = crumb('index', $albumTitle, $image[1][0]); $image[1][8] = $imgID; return $image; }