Hello PHP family,
this is my first post and hope you all can help with my issue which i think may be a easy fix in cde somewhere...basically i am getting a error:
Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\webmaster\_header.php on line 182
Here is the code
Code: Select all
<?php
require("admin.php");
?>
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<?=$header_encoding?>">
<title> Webmaster Area :: Powered by Ateom.com / Datetopia.com </title>
<link rel="stylesheet" href="style.css">
<script language="JScript" src="../info.js"></script>
</head>
<body bgcolor=#4A5868 class=bodytext link=0 vlink=0 alink=0 text=0>
<table width="100%" bgcolor="#CCCCCC" border="0" bordercolor="ffffff" align="center" cellpadding="4" cellspacing="1">
<tr valign="middle" bgcolor="#7798CE">
<td align="center"><font color="#333333" size="3" face="Arial, Helvetica, sans-serif"><strong><font color="#000000"><a href="index.php"><img src="images/mablogo.gif" width="142" height="52" border="0" align="absmiddle"></a> </font></strong> </font> </td>
<td><font color="#333333" size="3" face="Arial, Helvetica, sans-serif"><b><font color="#CCCCCC" size="2"><?php echo l1("Webmaster Area")." : $admin_login"; ?></font></b></font></td>
<td width="150" align="center"> <table border="0" cellspacing="0" cellpadding="2">
<tr>
<?php
$q=substr($_SERVER['SCRIPT_FILE'],1);
$qs=preg_replace("/&?lg=[0-9]$/i","",$_SERVER['QUERY_STRING']);
if ($qs) $q.="?$qs&lg=";
else $q.="?lg=";
$r=qs("* from lang");
if (!e($r)) while ($l=f($r)) echo "<TD align='center' bgcolor=".($local_language==$l[id]?"#BDD0F2":"")."><a href='${q}${l[id]}'><img info='$l[name]' alt='$l[name]' border=0 src='../templates/_default/flags/$l[name].gif'></a></TD>";
?><br>
</tr>
</table><?=$lang_info?></td>
</tr>
<tr valign="top" bgcolor="#CCCCCC">
<td height="3" colspan=3></td>
</tr>
<tr valign="top">
<td width="200" colspan="1" bgcolor="#E8E9F7" id="main_menu_td"><div align="center"><strong><?=l1("Main Menu")?></strong> </div>
<div align="center">
<br>
<img src="images/left-big.gif" width="19" height="19" align="absmiddle" onClick="main_menu.style.display='none';main_menu_td.style.width='40';" info="< <?=l1("Hide")?>"> <img src="images/right-big.gif" width="19" height="19" align="absmiddle" onClick="main_menu.style.display='block';main_menu_td.style.width='200';" info="<?=l1("Show")?> >"> </div>
<br>
<div id="main_menu">
<table width="200" border="0" cellpadding="1" cellspacing="1">
<tr>
<td align="center" bgcolor="#A2AFBF" onMouseOver="style.backgroundColor='ffffff';" onMouseOut="style.backgroundColor='#A2AFBF';"><a info='<?=l1("News")?>' href="index.php"><B>
<?=l1("News")?></B></a></td>
</tr>
</table>
<?
$color=#333333;
$ztime=time();
if (!$menu_category) $menu_category="Administrators";
$rca[0]=qs("* from syscategories where name='$menu_category' and (type=1 or type=3) order by name asc");
$rca[1]=qs("* from syscategories where name<>'$menu_category' and (type=1 or type=3) order by name asc");
if (e($rca[0])&&e($rca[1]))
{
echo l1("MySQL database not installed properly.");
include("_footer.php");
exit;
}
$menu_targeted=0;
if (!e($rca[0])) $menu_targeted=1;
for ($ic=0;$ic<=1;$ic++)
{
$menu_colorhead="#7798CE";
$menu_coloritem="#C8D7EE";
if ($ic==0)
{
$menu_colorhead="#88BB33";
$menu_coloritem="#CCDD99";
}
//$dscode="style=\"display:none;\"";
if ($menu_targeted&&$ic) $dscode="style=\"display:none;\"";
$rc=$rca[$ic];
while ($c=f($rc)) if ($mab_modid[$c[mod]])
{
?>
<table width="200" border="0" cellpadding="1" cellspacing="1">
<tr>
<td align="center" bgcolor="<?=$menu_colorhead?>"><img align="absmiddle" info="< <?=l1("Hide")?>" onClick="menu_<?=$c[id]?>.style.display='none';" src="images/minus.png">
<a href="#" onClick="if (menu_<?=$c[id]?>.style.display=='none') menu_<?=$c[id]?>.style.display='block'; else menu_<?=$c[id]?>.style.display='none';"><font color=#FFFFFF><strong> <?=l1($c[name])?> </strong></font></a> <img align="absmiddle" info="<?=l1("Show")?> >" onClick="menu_<?=$c[id]?>.style.display='block';" src="images/plus.png"> </td>
</tr>
</table>
<div id="menu_<?=$c[id]?>" <?=$dscode?>>
<table width="200" border="0" cellpadding="1" cellspacing="1">
<?
$r=qs("* from sysmenus where cid='$c[id]' order by topic asc ");
while ($m=f($r)) if ($mab_modid[$m[mod]])
{
?>
<tr>
<td onMouseOver="style.backgroundColor='ffffff';" onMouseOut="style.backgroundColor='<?=$menu_coloritem?>';" bgcolor="<?=$menu_coloritem?>"><a info='<?=l1($m[topic])?>' href="<?=$m[link]?>"><B><img src="images/arrow2.gif" border="0" align="absmiddle">
<?=l1($m[topic])?></B></a></td>
</tr>
<?
}
if ($c[type]==3)
{
?>
<tr>
<td bgcolor="<?=$menu_coloritem?>" onMouseOver="style.backgroundColor='ffffff';" onMouseOut="style.backgroundColor='<?=$menu_coloritem?>';"><a href="edit_settings.php?stype=<?=$c[id]?>&t=<?=l1($c[name])?>"><img src="images/arrow.gif" border="0" align="absmiddle"><B> <?=l1("Settings")?></B></a> </td>
</tr>
<?
}
?>
<tr>
<td bgcolor="#E8E9F7"> </td>
</tr>
</table></div>
<?
}
}
$rc=qs("* from syscategories where (type=2 or type=3) order by id asc");
if ((!e($rc)) && $mab_mod["Settings"])
{ ?>
<table width="200" border="0" cellpadding="1" cellspacing="1">
<tr>
<td align="center" bgcolor="#76B3CF"><img align="absmiddle" src="images/minus.png" onClick="menu_set.style.display='none';" info="< <?=l1("Hide")?>"><a href="#" onClick="if (menu_set.style.display=='none') menu_set.style.display='block'; else menu_set.style.display='none';">
<b>
<font color="#FFFFFF">
<?=l1("Settings")?>
</font></b> </a><img align="absmiddle" src="images/plus.png" onClick="menu_set.style.display='block';" info="<?=l1("Show")?> >"></td>
</tr>
</table>
<div id="menu_set" <?=$dscode?>>
<table width="200" border="0" cellpadding="1" cellspacing="1">
<tr>
<?
if (!e($rc)) while ($c=f($rc)) if ($mab_modid[$c[mod]])
{
?>
<tr>
<td bgcolor="#C8D7EE" onMouseOver="style.backgroundColor='ffffff';" onMouseOut="style.backgroundColor='#C8D7EE';"><a href="edit_settings.php?stype=<?=$c[id]?>&t=<?=l1($c[name])?>"><img src="images/arrow.gif" border="0" align="absmiddle"><B> <?=l1($c[name])?></B></a> </td>
</tr>
<?
}
?>
</table>
</div>
<?
}
?>
<div align="center">
<br>
<img src="images/left-big.gif" width="19" height="19" align="absmiddle" onClick="main_menu.style.display='none';main_menu_td.style.width='40';" info="< <?=l1("Hide")?>"> <img src="images/right-big.gif" width="19" height="19" align="absmiddle" onClick="main_menu.style.display='block';main_menu_td.style.width='200';" info="<?=l1("Show")?> >"> </div>
</div> </td>
<td colspan=2 background="images/bk_dot.gif" bgcolor="f7f7f7">
<?
if ($tpl_offline)
{
?>
===CUT FROM HERE===
<br></td>
</tr>
<tr valign="top" bgcolor="DDDDDD">
<td colspan=3>
<a href=index.php?logout=1>[
<?=(l1("logout"))?>
]</a> <a href=index.php>[
<?=(l1("news"))?>
]</a> </td>
</tr>
</table>
</body>
</html>
<?php
}
?>pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: