-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdata-proxy.php
More file actions
41 lines (25 loc) · 766 Bytes
/
Copy pathdata-proxy.php
File metadata and controls
41 lines (25 loc) · 766 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}
$data = $_REQUEST['data'];
header('Content-Type: image/png');
header('Content-Transfer-Encoding: binary');
$data = base64_decode($data);
$name = md5($data) . ".png";
file_put_contents("images/" . $name, $data);
echo $name;
exit();
?>