Als ik het mijn onderstaande pagina gebruik krijg ik de volgende error te zien:
Fatal error: Cannot redeclare titlebar() (previously declared in /home/phantom/domains/phantom.xelon.nl/public_html/config/config.php:39) in /home/phantom/domains/phantom.xelon.nl/public_html/config/config.php on line 39
Ik heb hier in het forum database gezocht maar kan daar ook niets vinden.
Meschien dat iemand mij hier kan helpen.
Bvd,
<?php
//Battle Quest Gaming System V2.0 Copyright by: Robin Peters
//Includes
include('../config/config.php');
include('includes/inc_header.php');
$userid = $_SESSION['user_id'];
$sql = "SELECT * FROM permission WHERE userid = '$userid'";
$result = mysql_query($sql);
if(!$result)
{
trigger_error(mysql_error());
}
else
{
while($row = mysql_fetch_assoc($result))
{
$acces = $row['main_news_control'];
}
}
if($acces == 'no')
{
echo'You do not have permission to view this page, Please return';
}
elseif($acces == 'yes')
{
?>
<table width="300" border="1" cellpadding="0" cellspacing="2" bordercolor="#666666">
<tr>
<td colspan="3" align="center" bgcolor="#666666"><strong>Add News</strong></td>
</tr>
<tr>
<td width="100" align="center"><a href="add_news.php">Main</a></td>
<td width="100" align="center"><a href="add_game_news.php">Game</a></td>
<td width="100" align="center"><a href="add_admin_news.php">Admin</a></td>
</tr>
<tr>
<td colspan="3" align="center" bgcolor="#666666"><strong>Edit News</strong></td>
</tr>
<tr>
<td width="100" align="center"><a href="edit_news.php">Main</a></td>
<td width="100" align="center"><a href="edit_game_news.php">Game</a></td>
<td width="100" align="center"><a href="edit_admin_news.php">Admin</a></td>
</tr>
<tr>
<td colspan="3" align="center" bgcolor="#666666"><strong>Delete News</strong></td>
</tr>
<tr>
<td width="100" align="center"><a href="delete_news.php">Main</a></td>
<td width="100" align="center"><a href="delete_game_news.php">Game</a></td>
<td width="100" align="center"><a href="delete_admin_news.php">Admin</a></td>
</tr>
<tr>
<td colspan="3" align="center" bgcolor="#666666"><strong>News Archive</strong></td>
</tr>
<tr>
<td width="100" align="center"><a href="news_archive.php">Main</a></td>
<td width="100" align="center"><a href="game_news_archive.php">Game</a></td>
<td width="100" align="center"><a href="admin_news_archive.php">Admin</a></td>
</tr>
</table>
<?php
}
else
{
echo'Your acces level id incomplete, Please contact a master admin';
}
include('includes/inc_footer.php');
?>