-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbc.php
More file actions
22 lines (19 loc) · 660 Bytes
/
Copy pathbc.php
File metadata and controls
22 lines (19 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
# A request for the boot code
$file = dirname(__FILE__) . '/firmware/bootcode.bin';
if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: inline; filename='.basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);
exit;
}
?><h1>Error</h1>
<p>Could not find rabbit bootcode: <?php print $file ?></p>