This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/appimage.php
Jonathan Ernst 2083bf521b - OO version of user class
- no more duplicated functions
- improved performances (much less duplicated mysql queries)
- less code and better error handling
2005-01-30 23:12:48 +00:00

20 lines
535 B
PHP

<?php
/*************************/
/* code to show an image */
/*************************/
include("path.php");
require(BASE."include/"."incl.php");
require(BASE."include/"."screenshot.php");
if(!$_SESSION['current']->hasPriv("admin") && $_REQUEST['queued'])
{
errorpage("Insufficient privileges.");
exit;
}
$oScreenshot = new screenshot($_REQUEST['id'],$_REQUEST['queued']);
if(!$_REQUEST['thumbnail'])
$oScreenshot->oScreenshotImage->output_to_browser(1);
else
$oScreenshot->oThumbnailImage->output_to_browser(1);
?>