<?
/* __
// .-----.-----.-. .-.-----.--| |-----.-----.-----.-----.
// |__ --| - | |_| | | _ | .__| - _| - | |
// |_____|_____|_____|__|__|_____|__| |_____|_| |_|_|||_|
// . ..: s o u n d r e a m o r g a n i z a t i o n :.. .
// . ..Coding Division.. .
//
// PHP Script..: Download Counter v1.1
// Made By.....: |The-Crow| - thecrow@impulsive.org
// Site........:
http://soundream.planet-d.net*/
//--------------------------------------------------------//
// PLEASE DEFINE THE VARIABLES //
//--------------------------------------------------------//
$extension = ".zip"; //leave this blank if you have various extensions.
$counterdir = "counters"; //change this if you want other directory for the counter files.
$textfont = "Verdana,Arial"; //text font for the error msg
//--------------------------------------------------------//
// DO NOT EDIT ANYTHING FROM HERE //
//--------------------------------------------------------//
if ($_GET['get'])
{
$get=$_GET['get'];
$dlfile=sprintf("%s%s",$get,$extension);
if (file_exists($dlfile))
{
echo "<script language=\"javascript\">window.open('dlfile','Download_file','')</script>";
$file = fopen("$counterdir/$get.txt","r"); // download counter
$count = fread($file, 100);
$countplus = ($count + 1);
fclose($file);
$fileb = fopen("$counterdir/$get.txt","w");
fwrite($fileb, $countplus, 100);
fclose($fileb);
}
else
{
echo "<font face=$textfont size=2>";
echo "<center><br><br>That file [<b>$dlfile</b>] is not available for download.<br>";
echo "Please contact the server administrator <a href='mailto:$SERVER_ADMIN'>$SERVER_ADMIN</a>.";
}
}
<p>Velkommen til TechRockRap's Downloads.
<p>Her kan du downloade alle vores sange. Alle filerne er I en .ZIP mappe, der
skal du bruge<a href="
http://www.winzip.com/downauto.cgi?wzipse22.exe"> Winzip
</a>til at åbne med (dog ikke med XP)<br></p>
<p> </p>
<p><a href="downloads.php?get=satansong">Satan vs. Lucifer (Skitzo)<br></a>
<?php include ("
http://www.zeizu.dk/Techrockrap/counters/satansong.txt"); ?>
<p> </p>