1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
if(!isset($_GET['account_id'])) { print_r("ASD"); return; }
$gName = explode("-", $_GET['account_id']); $imgIndex = $gName[count($gName) - 1];
if($imgIndex >= 28) { $imgIndex = $imgIndex%28; } // open the file in a binary mode $name = './Persona/'.$imgIndex .'.jpg'; $fp = fopen($name, 'rb');
// send the right headers header("Content-Type: image/png"); header("Content-Length: " . filesize($name));
// dump the picture and stop the script fpassthru($fp); exit;
?>
|