15 * 60) { // If last access > 15min -> new session $last = $current; setcookie('last', $last, time() + 365 * 86400); } else { $last = $_COOKIE[last]; } setcookie('current', time(), time() + 365 * 86400); // $last is the date of the last visit. $TITLE = "CGI-download"; include("header.inc"); # # get parameters (DXT support?, card memory?) # $maxmem = $_POST[ram]; $dds = $_POST[dxt]; $mem = array( '8', '16', '32', '64', '128' ); $res = array( '2k', '4k', '8k', '16k' ); $resol = array( '2048 x 1024','4096 x 2048','8192 x 4096','16384 x 8192' ); $stat = stat("readme.php4"); $new = ( $stat[9] > $last ); $new = $new?'[ NEW ] ':''; ?>

Texture Download

$new"; ?> Readme 1st
$resol[$i]"; print ""; print "\n"; foreach ($allfiles as $f) { list($name,$format) = split("\.", $f); if ($dds && ($format == "jpg" | $format == "png")) { $stat = stat("$wwwhome/$texaltdir/".$f); $size = $stat[7]; $new = ( $stat[9] > $last ); $filepath = "$texaltdir/".$f; } else { $stat = stat("$wwwhome/$texdir/".$f); $size = $stat[7] ; $new = ( $stat[9] > $last ); $filepath = "$texdir/".$f; } $new = $new?'[ NEW ] ':''; if ($count[$filepath]=='') $count[$filepath] = 0; print ""; $file ="$wwwhome/$previewdir/$name.jpg"; if(file_exists($file)){ print ""; } else { print ""; } } } $i++; print "\n
TextureSize [bytes]Downloads PreviewHelp
$new $f $size$count[$filepath]  
  

"; } echo "


"; include("footer.inc"); ?>