diff --git a/include/screenshot.php b/include/screenshot.php index f6d1ad6..8e42538 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -382,4 +382,35 @@ function get_screenshots($iAppId = null, $iVersionId = null, $bQueued = "false") } return false; } + +function get_thumbnail($id) +{ + $oScreenshot = new Screenshot($id); + + // generate random tag for popup window + $randName = generate_passwd(5); + // set img tag + $imgSRC = ''.$oScreenshot->sDescription.
+               ''; + $img = 'oScreenshotImage->width.','. + ($oScreenshot->oScreenshotImage->height+4). + ');return false;">'.$imgSRC.''; + + // set image link based on user pref + if ($_SESSION['current']->isLoggedIn()) + { + if ($_SESSION['current']->getpref("window:screenshot") == "no") + { + $img = ''.$imgSRC.''; + } + } + return $img; +} ?>