Seite 1 von 1

viewforum.php ( change on $s_auth_can )

Verfasst: 10.08.2004 02:42
von bloe
hallo

ich habe versucht die ansicht der berechtigungen der user ( in der viewforum.php ) zu ändern, seitdem behauptet das forum, alle user (inkl gäste) hätten volle rechte.

ich hoffe jemand findet den fehler im code

danke, bernd

Code: Alles auswählen

//
// User authorisation levels output
//
$s_auth_can .='<table cellpadding="1" cellspacing="1" border="0" width="100%">';

$s_auth_can .='<tr><td align="center" width=30><img src="';
$s_auth_can .= ( ( $is_auth['auth_post'] ) ? 'images/y.gif' : 'images/n.gif' );
$s_auth_can .= '"><td><span style="font-size:11px;">Beiträge schreiben</span>';

$s_auth_can .='<tr><td align="center" width=30><img src="';
$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? 'images/y.gif' : 'images/n.gif' );
$s_auth_can .= '"><td><span style="font-size:11px;">Beiträge beantworten</span>';

$s_auth_can .='<tr><td align="center" width=30><img src="';
$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? 'images/y.gif' : 'images/n.gif' );
$s_auth_can .= '"><td><span style="font-size:11px;">Beiträge bearbeiten</span>';

$s_auth_can .='<tr><td align="center" width=30><img src="';
$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? 'images/y.gif' : 'images/n.gif' );
$s_auth_can .= '"><td><span style="font-size:11px;">Beiträge löschen</span>';

$s_auth_can .='<tr><td align="center" width=30><img src="';
$s_auth_can .= ( ( $is_auth['auth_vote']  ) ? 'images/y.gif' : 'images/n.gif' );
$s_auth_can .= '"><td><span style="font-size:11px;">Umfragen mitmachen</span>';


if ( $is_auth['auth_mod'] )
{
$s_auth_can .='<tr><td align=\"center\" width=30><img src="';
$s_auth_can .= ( ( $is_auth['auth_vote']  ) ? 'images/y.gif' : 'images/n.gif' );
$s_auth_can .= '"><td><span style="font-size:11px;"><a href="modcp.$phpEx?' . POST_FORUM_URL . '=$forum_id&start=' . $start . '&sid=' . $userdata['session_id'] . '">Forum moderieren</a></span>';
}

$s_auth_can .='</table>';

Verfasst: 10.08.2004 03:06
von itst
y.gif und n.gif sind auch tatsächlich unterschiedliche Bilder? Und $is_auth wurde auch korrekt initialisiert?

Verfasst: 10.08.2004 13:03
von bloe
hallo

ich weiß nicht woran es lag, aber jetzt geht alles wieder.
danke an itst für den service

bernd