Jump to content

Parse error: syntax error, unexpected $end


VeeDubZ

Recommended Posts

having a bit of trouble when it comes to move split or lock a topic on my phpbb board i keep getting this error

[CODE]Parse error: syntax error, unexpected $end in /home/www/evolutionrpm.co.uk/Forum/modcp.php on line 1368[/CODE]




a txt file of modcp.php can be found [URL=http://"http://www.evolutionrpm.co.uk/forum/modcp.txt"]HERE[/URL]


any help is greatly appreciated as im a total noob to php
Link to comment
Share on other sites

The closing tags should always be [color=green]?>[/color]

If the php_ini settings allow, you can use short tags to open php, so you can use [color=green]<?[/color] instead of [color=green]<?php[/color] but it's never advisable as it's installation specific and makes the code less portable.

Regards
Huggie
Link to comment
Share on other sites

Cant you go over the code yourself and find your missing braces? This is not a "do it for me" forum. You may go to the freelancing forum and ask someone there to do it for you...

[code]else
{
if ( $delete )
{
$mode = 'delete';
}
elseif ( $move )
{
$mode = 'move';
}
elseif ( $lock )
{
$mode = 'lock';
}
elseif ( $unlock )
{
$mode = 'unlock';
}

// MOD MODCP EXTENSION BEGIN
    elseif ( $sticky )
    {
        $mode = 'sticky';
    }
    elseif ( $announce )
    {
        $mode = 'announce';
    }
    elseif ( $normalise )
    {
        $mode = 'normalise';
    }
    // MOD MODCP EXTENSION END

else
{
$mode = '';
}
}[/code]

Orio.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.