|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
$name = $_POST['name'];
if($name == "")
{
$name = "file";
}
header('Content-type: application/btvendor');
header('Content-Disposition: attachment; filename="'.$name.'.btvb"');
$CURRENT_VERSION="1.0";
$output = (object)array(
'version' => $CURRENT_VERSION,
'name' => $_POST['name'],
'machineID' => $_POST['machineid'],
'commands' => explode(",",$_POST[commands])
);
echo json_encode($output);
?>
|