PDA

View Full Version : missing a bracket somewhere


thesavior
12-22-2005, 04:38 PM
Im missing a bracket somewhere in this code, but all the code lines up, im getting the error on the last line with the ?> on it.

One thing is highlighted wrong in dreamweaver, so i will point that out

I think something is wrong around this line if not on this line: if ( $this->ipsclass->vars['ipb_copy_number'] )

because $this is highlighted wrong.

the error:
Parse error: parse error, unexpected ';', expecting T_FUNCTION in /raid5/home/eli/public_html/forum/sources/components_acp/copyright.php on line 120

<?php

/*
+--------------------------------------------------------------------------
| Invision Power Board v2.1.0
| =============================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| Time: Tue, 13 Sep 2005 16:21:46 GMT
| Release: b393140c97575126a85149e5984f535f
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Admin Framework for IPS Services
| > Module written by Matt Mecham
| > Date started: 17 February 2003
|
| > Module Version Number: 1.0.0
+--------------------------------------------------------------------------
*/


if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
exit();
}

class ad_copyright
{
var $ipsclass;
var $base_url;

function auto_run()
{
if ( TRIAL_VERSION )
{
print "This feature is disabled in the trial version.";
exit();
}

//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------

$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );

foreach ( $tmp_in as $k => $v )
{
unset($$k);
}

//-----------------------------------------

// Make sure we're a root admin, or else!

if ($this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'])
{
$this->ipsclass->admin->error("Sorry, these functions are for the root admin group only");
}

switch($this->ipsclass->input['code'])
{
case 'show':
case 'copy':
$this->copy_splash();
break;
case 'copysave':
$this->copy_save();
break;
default:
exit();
break;
}
}

/*-------------------------------------------------------------------------*/
// Copyright removal Splash
/*-------------------------------------------------------------------------*/

function copy_splash()
{
//-----------------------------------------
// Do we have an order number
//-----------------------------------------

if ( $this->ipsclass->vars['ipb_copy_number'] )
{
echo "denied";
}
else
{
echo "denied";
}
}

/*-------------------------------------------------------------------------*/
// Save...
/*-------------------------------------------------------------------------*/

function copy_save()
{
echo "denied";
}

/*-------------------------------------------------------------------------*/
// Show...
/*-------------------------------------------------------------------------*/

function copy_config($type="")
{
echo "denied";

}


?>

emehrkay
12-22-2005, 04:42 PM
function copy_config($type="")
{
echo "denied";
}//iadded this one

}

right here