3 require_once('config.php');
\r
5 $db=new PDO('sqlite:'.$dblocation);
\r
7 if(isset($_REQUEST['UUID']))
\r
9 $st=$db->prepare("SELECT MimeType,PuzzleData FROM tblIntroductionPuzzleRequests WHERE UUID=?;");
\r
10 $st->bindParam(1,$_REQUEST['UUID']);
\r
13 if($record=$st->fetch())
\r
15 $data=base64_decode($record[1]);
\r
16 header("Content-type: ".$record[0]);
\r
17 header("Content-Length: ".strlen($data));
\r