|
|
|
@ -201,8 +201,6 @@ function displayClanProfileReadOnly($clan, $ownclan, $userid){
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<tr><th colspan="2">Debug Daten (Kein Bug, dass die naechste Zeile etwas komisch aussieht)</th></tr>
|
|
|
|
|
<tr><th colspan="2"><?php print_r($clan); ?></th></tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -347,9 +345,11 @@ function displayClanProfileEditable($clan, $userid){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function displayClanProfile($clanid, $user){
|
|
|
|
|
$sql = 'SELECT * FROM clan where clan.id = '.$clanid;
|
|
|
|
|
// echo $sql.'<br>';
|
|
|
|
|
$clan = mysql_fetch_assoc(mysql_query($sql));
|
|
|
|
|
$clan = getClan($clanid, FALSE);
|
|
|
|
|
if(!$clan) {
|
|
|
|
|
echo displayErrorMessage(NULL, 'Es gibt den Clan mit der ID ' .$clanid.' nicht oder nicht mehr!', displayHistoryBackLink());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$editable = $clan['leader'] == $user['id'] || $clan['co_leader'] == $user['id'];
|
|
|
|
|
if(!$editable){
|
|
|
|
|
displayClanProfileReadOnly($clan, $user['clan'] == $clan['id'], $user['id']);
|
|
|
|
|