Hallo iedereen,
Ik probeer het admin paneel ook toegankelijk te maken voor mijn moderator. Tenminste, bepaalde delen (xD)
Ik heb nu dit:
PHP
<? if($data->moderator != 0){ ?>
<div class="title_bg">
<div class="title"><STRONG>Moderator</STRONG></div>
</div>
<div style="background-color:#CCCCCC; padding:10px; padding-top:4px;">
<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
<table width="100%" class="mod_list" cellspacing="2" cellpadding="2">
<tr>
<a href="admin/">Mod paneel </a></td>
</tr></table>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
<? } ?>
Toon Meer
Ik heb bij alle opties die ik toegankelijk wil maken voor hem heb ik dit boven in staan:
PHP
<?
include("config.php");
if($data->admin != "1") {
if($data->moderator != "1") {
echo "Je bent geen Admin of Moderator!";
exit;
}
?>
Nu krijg ik deze foutcode:
Parse error: syntax error, unexpected $end in /home/deb32143/domains/maffiaoutlawz.nl/public_html/v3/admin/index.php on line 25
admin/index.php
http://www.codedump.be/code/834/
Wie weet wat ik fout doe?
Groetjes Oceans