Topic: Moderation Syntax Error

Good afternoon.
Sorry for my English.

I have some troubles while trying to sticky/close/move topic. Tried all account permissions, incl admin account.
When i click any of these functions, i have the following error:

Parse error: syntax error, unexpected T_IF in /*****/business/public_html/moderate.php on line 33

My moderate.php code looks like this:

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/attach/attach_incl.php'


// This particular function doesn't require forum-based moderator access. It can be used
// by all moderators and admins.
if (isset($_GET['get_host'])) //////////////////////////// THIS IS THE ERROR LINE !!!
{
    if ($pun_user['g_id'] > PUN_MOD)
        message($lang_common['No permission']);

    // Is get_host an IP address or a post ID?
    if (@preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $_GET['get_host']))
        $ip = $_GET['get_host'];
    else
    {
        $get_host = intval($_GET['get_host']);
        if ($get_host < 1)
            message($lang_common['Bad request']);

        $result = $db->query('SELECT poster_ip FROM '.$db->prefix.'posts WHERE id='.$get_host) or error('Unable to fetch post IP address', __FILE__, __LINE__, $db->error());
        if (!$db->num_rows($result))
            message($lang_common['Bad request']);

        $ip = $db->result($result);
    }

    message('The IP address is: '.$ip.'<br />The host name is: '.@gethostbyaddr($ip).'<br /><br /><a href="admin_users.php?show_users='.$ip.'">Show more users for this IP</a>');
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

This is the begining of the code. If you need the whole one, i can put it here ....

I've installed the following mods, which affected this file: attachment_mod, calendar_mod
Unfortunately, i dont know PHP, so i can't solve the problem myself sad

Thanx in advance for your help.

2 (edited by lie2815 2008-03-05 19:31)

Re: Moderation Syntax Error

Add a semicolon at the end of the third line:

require PUN_ROOT.'include/attach/attach_incl.php';
FluxBB - v1.4.8

Re: Moderation Syntax Error

Thanx a lot, m8 smile

Really stupid sintax mistake