High Scores – Inzectoids

Easy

$filename = "http://www.minionsoft.com/inzectoids/HighScores/game00-list.txt";

unset($score);unset($name);unset($level);unset($time);
$file = fopen( $filename, "r" );
$i=1;
while(!feof($file))
{
$line=explode("^",fgets($file));
$score[$i]=$line[2];
$line=explode("^",fgets($file));
$name[$i]=$line[2];
$line=explode("^",fgets($file));
$level[$i]=$line[2];
$time[$i]=fgets($file);

$i++;
}
$score[0]="Score";
$name[0]="Name";

$numrows = 15;
$changestyle = 2;

for($i=1;$i<=$numrows;$i++)
{

print("

“);

}

?>

Position Name Score Wave
$i $name[$i] $score[$i] $level[$i]

Medium

$filename = "http://www.minionsoft.com/inzectoids/HighScores/game01-list.txt";

unset($score);unset($name);unset($level);unset($time);
$file = fopen( $filename, "r" );
$i=1;
while(!feof($file))
{
$line=explode("^",fgets($file));
$score[$i]=$line[2];
$line=explode("^",fgets($file));
$name[$i]=$line[2];
$line=explode("^",fgets($file));
$level[$i]=$line[2];
$time[$i]=fgets($file);

$i++;
}
$score[0]="Score";
$name[0]="Name";

$numrows = 15;
$changestyle = 2;

for($i=1;$i<=$numrows;$i++)
{

print("

“);

}

?>

Position Name Score Wave
$i $name[$i] $score[$i] $level[$i]

Hard

$filename = "http://www.minionsoft.com/inzectoids/HighScores/game02-list.txt";

unset($score);unset($name);unset($level);unset($time);
$file = fopen( $filename, "r" );
$i=1;
while(!feof($file))
{
$line=explode("^",fgets($file));
$score[$i]=$line[2];
$line=explode("^",fgets($file));
$name[$i]=$line[2];
$line=explode("^",fgets($file));
$level[$i]=$line[2];
$time[$i]=fgets($file);

$i++;
}
$score[0]="Score";
$name[0]="Name";

$numrows = 15;
$changestyle = 2;

for($i=1;$i<=$numrows;$i++)
{

print("

“);

}

?>

Position Name Score Wave
$i $name[$i] $score[$i] $level[$i]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>