0 && $slin<>'wyk') || ($ij == 1 && $slin == 'wyk') || $slin == 'deb' || ($ih > 0 && $slin == 'cnf')) { if( $slin == 'wyk' || $page == 'deb5' || $slin == 'cnf') { include("inc/menuw.php"); } } if($mf) { include("inc/menu.php"); include("inc/ret.php"); } include("inc/menud.php"); if($page <> 'deb5' && $page <> 'deb6' && $page <> 'deb7' && $slin<> 'cnf') { echo $vat[$page]; } if($page == 'rad0') { include("rad.php"); } elseif ($page == 'sub0') { include("sub.php"); } switch ($slin) { case 'lin': include("lin.php"); break; case 'cnf': include("cnf.php"); break; case 'anr': include("anr.php"); break; case 'akt': include("akt.php"); break; case 'lis': include("lis.php"); break; case 'lit': include("lit.php"); break; case 'wyd': include("wyd.php"); break; case 'deb': include("deb.php"); break; case 'wyk': include("wyk.php"); break; case 'log': include("log.php"); break; case 'tez': include("tez.php"); break; case 'kac': include("kac.php"); break; case 'slo': include("slo.php"); break; case 'use': include("use.php"); break; case 'tom': include("tom.php"); break; } if($slin=='wyk' || $slin=='deb'|| $slin=='cnf') { if( (($ik > 0) && $slin<>'wyk' && $slin<>'deb') || ($ij == 1 && $slin == 'wyk') || (($ii > 0 || $if > 0 ) && $slin == 'deb') || ($ih > 0 && $slin == 'cnf')) { include("inc/menuwd.php"); } } include("inc/foot.php"); // include("inc/l.php"); //-------------------------------------- } # else { # $q5 = "select * from artykul where id=" . $pdf; # $p_q5 = query($q5); # $va5 = fetch_array($p_q5); # IF (isset($logged) || $va5["pla"]==1) { # Settings # if($l==2 && $va5["pdf2"]<>'') { # $ppfd = "pdf2"; # } else { # $ppfd = "pdf1"; # } # $do = $va5[$ppfd]; # $down = 'pdf/' . $do; # $downfile = "log/down.txt"; ############################################################ # Main code # $written = FALSE; # if (file_exists($downfile)) # { # $temparray = file($downfile); # for($index = 0; $index < count($temparray); $index++) # { # $entry = explode("|",$temparray[$index]); # if(!strcmp($entry[1],$do)) # { # $entry[0] = $entry[0]+1; # $tempentry = $entry; # $temparray[$index] = implode($entry,"|"); # $fp = fopen($downfile,"w"); # for($index = 0; $index < count($temparray); $index++){ # fputs($fp,$temparray[$index]);} # fclose($fp); # $written = TRUE; # } # } # } # if($written == FALSE) # { # $entry = "1|$do|\n"; # $fp = fopen($downfile,"a"); # fputs($fp,$entry,256); # fclose($fp); # } # # header("Location: " . $down); # } else { // echo $_SERVER['HTTP_REFERER']; # header("Location: " . $adr . "?p=log"); # # } # } ?>