|
|
@ -201,8 +201,6 @@ function displayClanProfileReadOnly($clan, $ownclan, $userid){
|
|
|
|
<?php
|
|
|
|
<?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>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -347,9 +345,11 @@ function displayClanProfileEditable($clan, $userid){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function displayClanProfile($clanid, $user){
|
|
|
|
function displayClanProfile($clanid, $user){
|
|
|
|
$sql = 'SELECT * FROM clan where clan.id = '.$clanid;
|
|
|
|
$clan = getClan($clanid, FALSE);
|
|
|
|
// echo $sql.'<br>';
|
|
|
|
if(!$clan) {
|
|
|
|
$clan = mysql_fetch_assoc(mysql_query($sql));
|
|
|
|
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'];
|
|
|
|
$editable = $clan['leader'] == $user['id'] || $clan['co_leader'] == $user['id'];
|
|
|
|
if(!$editable){
|
|
|
|
if(!$editable){
|
|
|
|
displayClanProfileReadOnly($clan, $user['clan'] == $clan['id'], $user['id']);
|
|
|
|
displayClanProfileReadOnly($clan, $user['clan'] == $clan['id'], $user['id']);
|
|
|
|