/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-NewestReplays.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $admin, $user, $sitekey, $gfx_chk, $admin_file;
mysql_connect($db_hostname, $db_username, $db_password) or die ("<br>Can't Connect to Database");
@mysql_select_db($db_replays) or die ("<br>Cant select Database: ");
$query2="SELECT * FROM reps_table";
$result2=mysql_query($query2);
$num=mysql_numrows($result2);
$query="SELECT * FROM reps_table WHERE ID>='ID-5'";
$result=mysql_query($query);
$i=0;
while ($i < $num) {
$ID=mysql_result($result2,$i,"ID");
$gametype=mysql_result($result2,$i,"SpielModus");
$Player1=mysql_result($result2,$i,"Slot1name");
$Player2=mysql_result($result2,$i,"Slot2name");
$Player3=mysql_result($result2,$i,"Slot3name");
$Player4=mysql_result($result2,$i,"Slot4name");
$Player1race=mysql_result($result2,$i,"Slot1Rasse");
$Player2race=mysql_result($result2,$i,"Slot2Rasse");
$Player3race=mysql_result($result2,$i,"Slot3Rasse");
$Player4race=mysql_result($result2,$i,"Slot4Rasse");
if ($i>=$num-5) {
if ($gametype=="1on1")
{
echo "$Player1";
if ($Player1race=="N"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
} else if ($Player1race=="O"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
}else if ($Player1race=="U"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ud.gif">
<?
}else if ($Player1race=="H"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_hu.gif">
<?
}
echo "<br> vs<br>";
echo "$Player2";
if ($Player2race=="N"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
} else if ($Player2race=="O"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
}else if ($Player2race=="U"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ud.gif">
<?
}else if ($Player2race=="H"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_hu.gif">
<?
}
}else
{if ($gametype=="2on2"){
echo "$Player1";
if ($Player1race=="N"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
} else if ($Player1race=="O"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
}else if ($Player1race=="U"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ud.gif">
<?
}else if ($Player1race=="H"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_hu.gif">
<?
}
echo "<br>";
echo "$Player2";
if ($Player2race=="N"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
} else if ($Player2race=="O"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
}else if ($Player2race=="U"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ud.gif">
<?
}else if ($Player2race=="H"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_hu.gif">
<?
}
echo "<br> vs<br> $Player3";
if ($Player3race=="N"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
} else if ($Player3race=="O"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
}else if ($Player3race=="U"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ud.gif">
<?
}else if ($Player3race=="H"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_hu.gif">
<?
}
echo "<br>";
echo "$Player4";
if ($Player4race=="N"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
} else if ($Player4race=="O"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ne.gif">
<?
}else if ($Player4race=="U"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_ud.gif">
<?
}else if ($Player4race=="H"){
?>
<IMG SRC="http://clangg.com/replays/images/icons/tft_hu.gif">
<?
}
}
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum