Implemented the user friendly screenshot submitting feature

This commit is contained in:
Jonathan Ernst
2004-12-18 06:06:46 +00:00
committed by WineHQ
parent c89531e4c1
commit a8ba02e76d
7 changed files with 485 additions and 156 deletions

16
admin/screenshotQueue.php Normal file
View File

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