summaryrefslogtreecommitdiff
path: root/teamy.php
blob: dd6a100f359aa3bb44d2a892bcb7b26e5ec1f19d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$n = $_GET['n'];
if(($n>0)&&($n<1000)) {
	require_once('engine.php');
	$vptable = vptable($n);
	
	$s = "; NOWA OFICJALNA TABELA VP DLA $n ROZDAN\r\n";
	$s .= "[VP]\r\nMAX=20\r\nDEUCE=10\r\n";
	foreach($vptable as $imp=>$vp) {
		if(($vp>10)&&($vp<20)) $s .= "$imp=$vp\r\n";
	}
	$maxImp = count($vptable)-1;
	$s .= "NULL=$maxImp\r\n";
	
	header('Content-Disposition: attachment; filename="nowa'.$n.'.TVP"');
	header('Content-type: text/plain');
	header('Content-length: '.strlen($s));
	echo $s;
	die();
}