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(); }