summaryrefslogtreecommitdiff
path: root/teamy.php
diff options
context:
space:
mode:
Diffstat (limited to 'teamy.php')
-rw-r--r--teamy.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/teamy.php b/teamy.php
new file mode 100644
index 0000000..dd6a100
--- /dev/null
+++ b/teamy.php
@@ -0,0 +1,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();
+}