<?PHP
if(!IsSet($indexloaded)) { header("Location: index.php"); }
$out[mainurl]="$url[base]/$file[main]";
$out[bulletleft] ="<font class='catfont'>»</font>";
include("$dir[curthemeroot]/snips.inc");
include("config/config.php");
$menuhead=menu_head();
$menufoot=menu_foot();
$forumlink = "";
$f1='PGZvbnQgc2l6ZT0xIGNvbG9yPXdoaXRlPjxicj5MYWRkZXIgU2NyaXB0cyBieSA8YSBocmVmPWh0dHA6
y93d3cubXlnYW1pbmdsYWRkZXIuY29tPmh0dHA6Ly93d3cubXlnYW1pbmdsYWRkZXIuY29tPC9hPiA8Y
I+IKkgTXkgR2FtaW5nIExhZGRlciBhbmQgDQoNCg==';
if($url[forums] != ''){
$forumlink = "$out[bulletleft] <a href='$url[forums]'>Forums</a><br>";}
if($misc[passrequests] != 'no'){
$lostpasslink = "$out[bulletleft] <a href='$url[base]/$file[join]?action=lostpass'>Lost Password</a><br>";
}else{
$lostpasslink="";
}
//PLAYER LOGIN/LOGGED-IN BLOCK
if($plyr[id]){
$servertime = date("D g:i A"); $out[toprightcorner]=$out[toprightcorner]."
<strong>
<font class='catfont' style='color: black;'>
$plyr[alias] jeste¶ ju¿ zalogowany
<!-- Server Time: $servertime -->
</font>
</strong>";
}else{
$out[toprightcorner]=$out[toprightcorner]."
<table width='100%' cellpadding='2' cellspacing='0'>
<form method='post' action='$url[base]/$file[login]'>
<tr><td>
<font class='catfont'><strong>Login:</strong></font><input type='text' name='playerid' class='loginforma' onblur=\"if (value == '') {value = 'Login'}\" onfocus=\"if (value == 'Login') {value =''}\" value='' size='10'><font class='catfont'> <strong>Has³o:</strong></font><input type='password' name='playerpass' size='10' value='' class='loginformb'>
<input type='hidden' name='action' value='login'>
<input type='submit' value='Zaloguj' class='loginformc'> • <a href='join.php?action=join'>Rejestracja</a></td>
</tr>
</form>
</table>";
}
//PLAYER LOGIN/LOGGED-IN BLOCK
if($plyr[id]){
$servertime = date("D g:i A"); $out[toprightcorner2]=$out[toprightcorner2]."
<strong>
<font class='catfont' style='color: black;'>
Witaj $plyr[alias]!
<!-- Server Time: $servertime -->
</font>
</strong>";
}else{
$out[toprightcorner2]=$out[toprightcorner2]."<!-- Jeste¶ ju¿ zalogowany -->";
}
// MAIN BLOCK
//PLAYER MENU BLOCK
$out[mainblock]=$out[mainblock]."
<br>
<!-- $menuhead -->
<strong><font class='catfont'>Main</font></strong><br>
$out[bulletleft] <a href='$url[base]/$file[main]'>Home</a><br>
$out[bulletleft] <a href='$url[base]/$file[search]'>Search</a><br>
$out[bulletleft] <a href='$url[base]/$file[help]'>News Archive</a><br>
$forumlink";
//DATA BLOCK
$out[datablock]=$out[datablock]." <br><br>
$menuhead
<strong><font class='catfont'>Data</font></strong><br>
$out[bulletleft] <a href='$url[base]/stats.php?action=matchdb'>Match Results</a><br>
$out[bulletleft] <a href='$url[base]/stats.php?action=playerdb'>Player List</a><br>
$out[bulletleft] <a href='$url[base]/stats.php?action=teamdb'>Team List</a><br>
$out[bulletleft] <a href='$url[base]/stats.php?action=ladderdb'>Ladder List</a><br>
$menufoot";
//MANAGER BLOCK
if(!$f1){$f2=include("$dir[func]/error.php");display_error
("");;}else{$f2=base64_decode($f1);} //Verify ID
if($plyr[id]){$out[mangerblock]=$out[mangerblock]."
$menuhead <strong><font class='catfont'>Player Manager</font></strong><br>
$out[bulletleft] <a href='$url[base]/$file[join]?action=chooseladder'>Join a Ladder</a><br>
$out[bulletleft] <a href='$url[base]/$file[phome]'>Account Manager</a></a><br>
$out[bulletleft] <a href='$url[base]/$file[match]?action=report_init'>Report a Loss</a></a><br>
$out[bulletleft] <a href='$url[base]/$file[match]?action=confirm'>Confirm a Win</a></a><br>
$out[bulletleft] <a href='$url[base]/$file[login]?action=logout'>Logout</a></a><br>
$menufoot";
}else{
//PLAYER MENU BLOCK
$out[mangerblock]=$out[mangerblock]."
$menuhead
<strong><font class='catfont'>Player Manager</font></strong><br>
$out[bulletleft] <a href='$url[base]/$file[join]?action=join'>New Player Signup</a><br>
$out[bulletleft] <a href='$url[base]/$file[join]?action=validate'>Validate Account</a><br>
$menufoot"; }
//GAMES BLOCK
if(!$f2){$f2=include("$dir[func]/error.php");display_error("");}else{$pr="$f2 $site[longname] $gt";}
$out[mainblock]=$out[mainblock]."$menufoot";
$listgames=mysql_query("SELECT id,gamename,status FROM games ORDER by gamename"); if($status){
$gamelink=$gamelink."$out[bulletleft] <a href='$url[base]/$file[game]?gameid=$id'>$name</a><br>";
$gamesavail++;} }
//TOURNAMENTS
$out[tourneyblock]=$out[tourneyblock]."
$menuhead
<strong><font class='catfont'>Tournaments</font></strong><br>
$out[bulletleft] <a href='$url[base]/$file[tournament]'>Tournaments</a><br>
$menufoot";
//HELP BLOCK
if($gamesavail){
$out[gamesblock]=$out[gamesblock]."
$menuhead
<strong><font class='catfont'>Ladders</font></strong><br>
$gamelink$menufoot";}$out[footer]="$pr";$out[helpblock]=$out[helpblock]."$menuhead
<strong><font class='catfont'>Support</font></strong><br>
$out[bulletleft] <a href='$url[base]/$file[staff]?ladderid=$ladderid'>Staff List</a><br>
$out[bulletleft] <a href='$url[base]/$file[rules]?ladderid=$ladderid'>Ladder Rules</a><br>
$lostpasslink
$menufoot";if((!$out[footer])||($out[footer]!="$pr")){include("$dir[func]/error.php");display_error("");}else{$pr="$f2 $site[longname] $gt";}
//MY BLOCK
$out[myblock]=$out[myblock]."
$query = "SELECT matchid,winneralias,loseralias FROM matchdb ORDER by confirmdate DESC LIMIT 5";
$lastmatches = mysql_query($query);
while(list($matchid,$winneralias,$loseralias)=mysql_fetch_row($lastmatches)){
$recentmatches=$recentmatches."$out[bulletleft] <a href='$url[base]/$file[match]?matchid=$matchid'>$winneralias vs $loseralias</a><br>";
}
if(!$recentmatches){
$recentmatches = "$out[bulletleft] No Recent Matches";
}
$date = date('Y-m-d H:i:s', mktime(0, 0, 0, date("m") , date("d") + 7, date("Y")));
<strong><font class='catfont'>Recent Matches</font></strong><br>
<hr class='catfont' size='1'>
$recentmatches
";
//ADMIN BLOCK
if($admn[id]){
$out[adminblock]=$out[adminblock]."
$menuhead
<strong><font class='catfont'>Admin [$admn[id]]</font></strong><br>
$out[bulletleft] <a href='$url[base]/$file[admin]'>Admin Main</a></a><br>
$out[bulletleft] <a href='$url[base]/$file[login]?action=adminlogout'>Admin Logout</a></a><br>
$menufoot";
}
//MENU BLOCK ORDER
$out[menu]="
$out[mainblock]
$out[mangerblock]
$out[gamesblock]
$out[tourneyblock]
$out[datablock]
$out[helpblock]
$out[myblock]
$out[adminblock]
";
?>