Download Section:

"; $font = ""; $endfont = ""; # Don't edit below here. #______________________________________________________ #start timing code #------------------ $t_start = array_sum(explode(' ', microtime())); # Open header file (if it exsists) and display it. #------------------------------------------------- if (file_exists($header)){ $newfile = fopen($header,"r"); $content = fread($newfile, filesize($header)); fclose($newfile); print $content; } # Print the title #---------------- //Włączenie/wyłączenie treści nagłówka listy kategorii; $display_head_image=1; //Treść nagłówka; $head_image="download.jpg"; if($display_head_image==1){ echo "


"; } print "

\n"; # Read the directory #------------------- $dir="./"; if (is_dir($dir)) { $fd = @opendir($dir); while (($part = @readdir($fd)) == true) { if ($part != "." && $part != "..") { $file_array[]=$part; } } if ($fd == true) { closedir($fd); } } # Sort the directory alphabetically #---------------------------------- sort($file_array); reset($file_array); for($i=0;$i\n"); $z++; } } # Increment hit counter #---------------------- $filename = "counter.txt"; if (file_exists($filename)){ $newfile = fopen($filename,"r"); $hits = fread($newfile, filesize($filename)); fclose($newfile); $hits ++; # Save the new file count #------------------------ $newfile = fopen($filename,"w"); fwrite($newfile, $hits); fclose($newfile); } #End of timed code here #---------------------- $exec_time = array_sum(explode(' ', microtime())) - $t_start; $exec_time1 = (ceil($exec_time * 10000))/10000; ?>

$font$npart$endfont