'; if ($photoPublic) { $adminEditJS .= 'public '; } else { $adminEditJS .= 'public '; } $adminEditJS .= ' caption rotate delete '; } else { $adminTitleJS = ""; $adminCaptionJS = ""; $adminTagsJS = ""; $adminEditJS = ""; } if ($photoDescription == "") { $captionCSS = "display:none;"; } else { $captionCSS = ""; } if ($cntPhoto == 1) { $photoBody = << stub = '{$_GET['p']}'; width = ({$width}-10);

{$photoTitle}

{$photoTitle}
{$photoDescription}
{$adminEditJS}
[.] {$photoDateTitle} at {$photoDateTime}
PHOTOEND; //Print out tags if ($photoTags !== "") { $photoBody .= '
tagged '; $tags = explode(":",$photoTags); array_pop($tags); for($t=0;$t 0) { while ($backphoto = mysql_fetch_array($result)) { $photoDate = $backphoto['DateCreated']; $backphotoID = $backphoto['PhotoID']; $photoYear = date("Y",strtotime($photoDate)); $thumbYearDir = THUMB_DIR . $photoYear; $thumbBaseFile = $thumbYearDir . "\\" . md5(SALT.$backphotoID); $thumbFile_s = $thumbBaseFile . "_s.jpg"; $thumbSRC_s = str_replace(THUMB_DIR, "http://photos.onfocus.com/thumbs/", $thumbFile_s); $thumbSRC_s = str_replace("\\", "/", $thumbSRC_s); list($width_s, $height_s, $type_s, $attr_s) = @getimagesize($thumbFile_s); $backNext .= <<back
older
BACKEND; $menuOlderHTML = 'older'; } } else { $backNext .= ' '; $menuOlderHTML = 'older'; } // Get next $sql = "SELECT PhotoID, Title, Stub, DateCreated FROM photos WHERE Public = 1 AND PhotoID > $photoID ORDER BY PhotoID ASC LIMIT 1"; if (!$result = @ mysql_query ($sql, $connection)) logerror(); if (mysql_num_rows($result) > 0) { while ($nextphoto = mysql_fetch_array($result)) { $photoDate = $nextphoto['DateCreated']; $nextphotoID = $nextphoto['PhotoID']; $photoYear = date("Y",strtotime($photoDate)); $thumbYearDir = THUMB_DIR . $photoYear; $thumbBaseFile = $thumbYearDir . "\\" . md5(SALT.$nextphotoID); $thumbFile_s = $thumbBaseFile . "_s.jpg"; $thumbSRC_s = str_replace(THUMB_DIR, "http://photos.onfocus.com/thumbs/", $thumbFile_s); $thumbSRC_s = str_replace("\\", "/", $thumbSRC_s); list($width_s, $height_s, $type_s, $attr_s) = @getimagesize($thumbFile_s); $backNext .= <<next
newer
NEXTEND; $menuNewerHTML = 'older'; } } else { $menuNewerHTML = 'older'; } $backNext .= ""; ?> onfocus - photos