rendered paste body<?php
$server = 'KragJin';
$gilde ='Helden der Apokalypse';
$url = 'http://www.blasc.de/guild.php?g=21276';
$file = file_get_contents($url);
if(!$file) die("Fehler beim Öffnen von $url");
$guild = unserialize(gzuncompress($file));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
<?=$guild['guild_name'] ?>
- Memberlist</title>
<style type="text/css" media="screen">
<!--
body {
margin: 0px;
color: rgb(255, 255, 255);
font: 12px Geneva, Arial, Helvetica, sans-serif;
line-height: 16px;
background-color: #0D0B0B;
}
td {
color: rgb(255, 255, 255);
font: 12px Geneva, Arial, Helvetica, sans-serif;
line-height: 16px;
}
h1 {
color: rgb(218, 182, 86);
}
a {
color: #ffffff;
font: 12px/16px Geneva, Arial, Helvetica, sans-serif;
text-decoration: none;
}
a:hover {
color: #ffffff;
}
a.bold:hover {
color: #ffffff;
}
.Stil1 {color: #ffffff}
-->
</style>
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
<a name="top"></a>
<div align="center" style="padding: 10px">
<table width="85%" height="126" border="0" cellpadding="2" cellspacing="2">
<tr>
<td colspan="8">
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td align="center"><img src="http://www.2on2.org/2hot/_gfx/toohotchars.gif"></td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="2">
<tr valign="top">
<td>
<b>Server:</b> <?=$guild['server'] ?> •
<b>Fraktion:</b> <?=$guild['faction'] ?> •
<b>registrierte Charaktere:</b> <?=$guild['numchars'] ?> •
<b>Level-Durchschnitt:</b> <?=$avlvl ?>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top" style="font-size: 14px">
<td height="23">
<?
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'name' && $_GET['sort'] == 'asc') {
$pic = 'ups';
} else { $pic = 'up'; }
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'name' && $_GET['sort'] == 'desc') {
$apic = 'downs';
}
else { $apic = 'down'; }
?>
<b>Name:</b><br />
<a href="<?=$PHP_SELF ?>?wahl=name&sort=asc" title="Aufsteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/up.gif" alt="up" height="11" width="11" border="0" /></a>
<a href="<?=$PHP_SELF ?>?wahl=name&sort=desc" title="Absteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/down.gif" alt="down" height="11" width="11" border="0" /></a>
</td>
<td align="center">
<?
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'level' && $_GET['sort'] == 'asc') {
$pic = 'ups';
}
else { $pic = 'up'; }
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'level' && $_GET['sort'] == 'desc') {
$apic = 'downs';
}
else { $apic = 'down'; }
?>
<b>Level:</b><br />
<a href="<?=$PHP_SELF ?>?wahl=level&sort=asc" title="Aufsteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/up.gif" alt="up" height="11" width="11" border="0" /></a>
<a href="<?=$PHP_SELF ?>?wahl=level&sort=desc" title="Absteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/down.gif" alt="down" height="11" width="11" border="0" /></a>
</td>
<td>
<?
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'race' && $_GET['sort'] == 'asc') {
$pic = 'ups';
}
else { $pic = 'up'; }
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'race' && $_GET['sort'] == 'desc') {
$apic = 'downs';
}
else { $apic = 'down'; }
?>
<b>Rasse:</b><br />
<a href="<?=$PHP_SELF ?>?wahl=race&sort=asc" title="Aufsteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/up.gif" alt="up" height="11" width="11" border="0" /></a>
<a href="<?=$PHP_SELF ?>?wahl=race&sort=desc" title="Absteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/down.gif" alt="down" height="11" width="11" border="0" /></a>
</td>
<td>
<?
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'class' && $_GET['sort'] == 'asc') {
$pic = 'ups';
}
else { $pic = 'up'; }
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'class' && $_GET['sort'] == 'desc') {
$apic = 'downs';
}
else { $apic = 'down'; }
?>
<b>Klasse:</b><br />
<a href="<?=$PHP_SELF ?>?wahl=class&sort=asc" title="Aufsteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/up.gif" alt="up" height="11" width="11" border="0" /></a>
<a href="<?=$PHP_SELF ?>?wahl=class&sort=desc" title="Absteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/down.gif" alt="down" height="11" width="11" border="0" /></a>
</td>
<td>
<?
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'guild_rank' && $_GET['sort'] == 'asc') {
$pic = 'ups';
}
elseif(!isset($_GET['wahl']) && !isset($_GET['sort'])) {
$pic = 'ups';
}
else { $pic = 'up'; }
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'guild_rank' && $_GET['sort'] == 'desc') {
$apic = 'downs';
}
else { $apic = 'down'; }
?>
<b>Rang:</b><br />
<a href="<?=$PHP_SELF ?>?wahl=guild_rank&sort=asc" title="Aufsteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/up.gif" alt="up" height="11" width="11" border="0" /></a>
<a href="<?=$PHP_SELF ?>?wahl=guild_rank&sort=desc" title="Absteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/down.gif" alt="down" height="11" width="11" border="0" /></a>
</td>
<td height="23">
<?
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'pvprank' && $_GET['sort'] == 'asc') {
$pic = 'ups';
} else { $pic = 'up'; }
if(isset($_GET['wahl']) && isset($_GET['sort']) && $_GET['wahl'] == 'pvprank' && $_GET['sort'] == 'desc') {
$apic = 'downs';
}
else { $apic = 'down'; }
?>
<b>PvP-Rang:</b><br />
<a href="<?=$PHP_SELF ?>?wahl=pvprank&sort=asc" title="Aufsteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/up.gif" alt="up" height="11" width="11" border="0" /></a>
<a href="<?=$PHP_SELF ?>?wahl=pvprank&sort=desc" title="Absteigend sortieren..."><img src="http://www.2on2.org/2hot/_gfx/down.gif" alt="down" height="11" width="11" border="0" /></a>
</td>
<td><b>Berufe:</b></td>
</tr>
<?
function sortierung($a, $b) {
global $wahl, $sort;
if ($a[$wahl] == $b[$wahl]) return 0;
if($sort == 'desc') {
return ($a[$wahl] < $b[$wahl]) ? 1 : -1;
}
elseif($sort == 'asc') {
return ($a[$wahl] < $b[$wahl]) ? -1 : 1;
}
else {
return ($a[$wahl] < $b[$wahl]) ? -1 : 1;
}
}
usort($guild['character'], 'sortierung');
foreach($guild['character'] as $c) {
if($i %2 == 0) { $bgc = '#1D1D1D'; } else { $bgc = '#302F2F'; }
echo '<tr valign="top" bgcolor="'.$bgc.'">
<td>
<a class="bold" href="http://blasc.de/index.php?id=3&sub=1&showchar='.$c['name'].'&showguild=&server='.$server.'&search=suchen" target="_blank" title="Profil von '.$c['name'].'...">'.$c['name'].'</a><br>
<a style="font-size: 10px" href="http://blasc.de/index.php?id=3&sub=1&showprofile=true&name='.$c['name'].'&server='.$server.'" target="_blank" title="Ausrüstung von '.$c['name'].'...">» Ausrüstung</a>
</td>
<td align="center">'.$c['level'].'</td>
<td>'.$c['race'].'</td>
<td>'.$c['class'].'</td>';
echo '<td>'.$c['guild_title'].'</td>';
echo '<td>'.$c['pvprank'].'</td>';
$s = $c['skills'];
$berufe = $s['Berufe'];
echo "<td>";
// berufe
if (count($berufe)>0) {
$berufname = array_keys($berufe);
for($x=0;$x<count($berufe);$x++) {
?>
<table cellspacing="0" border="0" width="100%" cellpadding="0">
<tr>
<td width="30%">
<b><? echo $berufname[$x]; ?>:</b>
</td>
<td width="70%">
<table cellpadding="0" cellspacing="1" border="0">
<tr>
<td background="http://www.2on2.org/2hot/_gfx/balken.gif" width="<?=$berufe[$berufname[$x]]['value'] ?>">
<? echo " (".$berufe[$berufname[$x]]['value']."/".$berufe[$berufname[$x]]['max'].") "; ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
}
}
else { echo '<div style="font-size: 11px">Berufslos</div>'; }
echo '</td>';
echo '</tr>';
$i++;
}
?>
<tr align="right">
<td colspan="8"> powered by <a href="http://www.blasc.de" target="_blank">BLASC</a>
:: © copyright<? echo date( ' Y '); ?><a href="http://black-legion.planet-multiplayer.de/index.php?id=3&sub=1&showguild=<?=$guild['guild_name'] ?>&server=<?=$server ?>" target="_blank">
<?=$guild['guild_name'] ?>
</a> :: </td>
</tr>
</table>
<br>
</div>
</body>
</html>