- use queued screenshot directory instead of mysql to store queued data

- use the config file to determine thumbnail size
This commit is contained in:
Jonathan Ernst
2004-12-23 01:13:26 +00:00
committed by WineHQ
parent ca749d32d9
commit 52437f5f30
5 changed files with 168 additions and 138 deletions

View File

@@ -1,16 +1,14 @@
<?php
/************************************************/
/* code to show an image stored in mysql */
/* code to show a queued image */
/************************************************/
include("path.php");
require(BASE."include/"."incl.php");
if($info=getimagesize("../data/screenshots/".$_REQUEST['file']))
if($info=getimagesize("../data/queued/screenshots/".$_REQUEST['queueId']))
{
header('Content-type: '.$info['mime']);
$handle = fopen("../data/screenshots/".$_REQUEST['file'], "rb");
echo fread($handle, filesize("../data/screenshots/".$_REQUEST['file']));
$handle = fopen("../data/queued/screenshots/".$_REQUEST['queueId'], "rb");
echo fread($handle, filesize("../data/queued/screenshots/".$_REQUEST['queueId']));
fclose($handle);
}
unlink("../data/screenshots/".$_REQUEST['file']);
?>