anyone can help me ? error in www.mysite/admin
If I try to conect the admin I have this error :
Parse error: syntax error, unexpected '}' in
/home/rela2/public_html/inc/admin_design.inc.php(119) : runtime-created function on line
1 Fatal error: Function name must be a string in
/home/rela2/public_html/inc/admin_design.inc.php on line
120
and not show the menus ... this error appear before I do a upgrade 6.004 to 6.005
here is the lines 110 to 140 of file : admin_design.inc.php
$l = 'base64_decode';
function getAdminMenuItem( $aItem, $isActiveItem )
{
global $site;
if( strlen( $aItem['Check'] ) )
{
$func = create_function( '', $aItem['Check'] );
if( !$func() )
return '';
}
ob_start();
?>
<div class="menu_item_wrapper">
<img src="<?= $site['url_admin']?>images/icons/items/<?= $aItem['Icon'] ?>" class="menu_item_icon" />
<?
if( $isActiveItem )
{
?><span><?= $aItem['Title'] ?></span><?
}
else
{
if( substr( $aItem['Url'], 0, strlen( 'javascript:' ) ) == 'javascript:' ) // smile :))
{
$href = 'javascript:void(0);';
$onclick = 'onclick="' . $aItem['Url'] . '"';
url = articles.php
Title = Admin Articles
order = 5
cat = 3
the rest i left blank im sure there was somthing in there b4 but seems to work after, i take it you went to edit one of the admin menu bars and it went tits up from there lol
anyway if its not that i would check the see more