ravenfaust Posted September 22, 2006 Share Posted September 22, 2006 Parse error: parse error, unexpected T_VARIABLE in cp_pages_content.php on line 116im using invision power board 2.1.7<?php/*+---------------------------------------------------------------------------| Invision Power Board ACP LOADER| ========================================| by Matthew Mecham| (c) 2005 Invision Power Services| Nullified by DGT| ========================================+---------------------------------------------------------------------------| INVISION POWER BOARD IS NOT FREE SOFTWARE!| +---------------------------------------------------------------------------|| > CONTROL PANEL PAGES FILE| > Script written by Matt Mecham| > Date started: Fri 8th April 2005 (12:07)|+---------------------------------------------------------------------------*///===========================================================================// Simple library that holds all the links for the admin cp//===========================================================================// CAT_ID => array( PAGE_ID => (PAGE_NAME, URL ) )// $PAGES[ $cat_id ][$page_id][0] = Page name// $PAGES[ $cat_id ][$page_id][1] = Url// $PAGES[ $cat_id ][$page_id][2] = Look for folder before showing// $PAGES[ $cat_id ][$page_id][3] = URL type: 1 = Board URL 0 = ACP URL// $PAGES[ $cat_id ][$page_id][4] = Item icon: 1= redirect 0 = Normal$CATS[] = array( 'Forum Control' );$PAGES[] = array( // 1 => array( 'New Forum' , 'section=content&act=forum&code=new' ), 2 => array( 'Manage Forums' , 'section=content&act=forum' ), 3 => array( 'Permission Masks' , 'section=content&act=group&code=permsplash'), // 6 => array( 'Moderators' , 'section=content&act=mod' ), 7 => array( 'Topic Multi-Moderation', 'section=content&act=multimod' ), 8 => array( 'Trash Can Set-Up' , 'section=tools&act=op&code=findsetting&key=trashcanset-up', '', 0, 1 ), ); $CATS[] = array( 'Users and Groups' );$PAGES[] = array( 1 => array ( 'Manage Members' , 'section=content&act=mem&code=search' ), 2 => array ( 'Add New Member' , 'section=content&act=mem&code=add' ), 6 => array ( 'Manage Ranks' , 'section=content&act=mem&code=title'), 7 => array ( 'Manage User Groups' , 'section=content&act=group' ), 8 => array ( 'Manage Validating' , 'section=content&act=mem&code=mod' ), 9 => array ( 'Custom Profile Fields' , 'section=content&act=field' ), 11 => array ( 'IP Member Tools' , 'section=content&act=mtools' ), 12 => array ( 'Member Settings' , 'section=tools&act=op&code=findsetting&key=userprofiles', '', 0, 1 ), ); $CATS[] = array( 'Subscriptions' );$PAGES[] = array( 1 => array( 'Manage Payment Gateways' , 'section=content&act=msubs&code=index-gateways' ), 2 => array( 'Manage Packages' , 'section=content&act=msubs&code=index-packages' ), 3 => array( 'Manage Transactions' , 'section=content&act=msubs&code=index-tools' ), 4 => array( 'Manage Currencies' , 'section=content&act=msubs&code=currency' , ), 5 => array( 'Manually Add Transaction' , 'section=content&act=msubs&code=addtransaction' ), 6 => array( 'Install Payment Gateways' , 'section=content&act=msubs&code=install-index' ), 9 => array( 'Subscription Settings' , 'section=tools&act=op&code=findsetting&key='.urlencode('subscriptionsmanager'), '', 0, 1 ), ); $CATS[] = array( 'Calendars' );$PAGES[] = array( 1 => array( 'Calendar Manager' , 'section=content&act=calendars&code=calendar_list' ), 2 => array( 'Add New Calendar' , 'section=content&act=calendars&code=calendar_add' ), ); $CATS[] = array( 'RSS Management' );$PAGES[] = array( 1 => array( 'RSS Export Manager' , 'section=content&act=rssexport&code=rssexport_overview' ), 2 => array( 'RSS Import Manager' , 'section=content&act=rssimport&code=rssimport_overview' ), ); $CATS[] = array( 'Custom BBCode' );$PAGES[] = array( 1 => array( 'Custom BBCode Manager' , 'section=content&act=bbcode&code=bbcode' ), 2 => array( 'Add New BBCode' , 'section=content&act=bbcode&code=bbcode_add' ), ); $CATS[] = array( 'Word & Ban Filters' );$PAGES[] = array( 1 => array( 'Manage Badword Filters', 'section=content&act=babw&code=badword' ), 2 => array( 'Manage Ban Filters' , 'section=content&act=babw&code=ban' ), ); $CATS[] = array( 'Attachments' );$PAGES[] = array( 1 => array( 'Attachment Types' , 'section=content&act=attach&code=types' ), 2 => array( 'Attachment Stats' , 'section=content&act=attach&code=stats' ), 3 => array( 'Attachment Search' , 'section=content&act=attach&code=search' ), );$CATS[] = array( 'Toplist' );$PAGES[] = array( 1 => array( 'Modify Toplist' , 'section=content&act=toplist' ),//--------------------------------// D21-Shoutbox//-------------------------------- )$CATS[] = array('D21-Shoutbox');(This line has error)$PAGES[] = array( 1 => array( 'Main Page' , 'section=content&act=Shoutbox&code=00' ), 2 => array( '· Admin Logs' , 'section=content&act=Shoutbox&code=logs' ), 3 => array( '· Badwords' , 'section=content&act=Shoutbox&code=06' ), 4 => array( '· Banned Members' , 'section=content&act=Shoutbox&code=04' ), 5 => array( '· Colors' , 'section=content&act=Shoutbox&code=05' ), 6 => array( '· Group Permissions' , 'section=content&act=Shoutbox&code=09' ), 7 => array( '· Member Search' , 'section=content&act=Shoutbox&code=search' ), 8 => array( '· Settings' , 'section=tools&act=op&code=findsetting&key='.urlencode('d21-shoutbox')), 9 => array( 'Statistics' , 'section=content&act=Shoutbox&code=02' ), 10 => array( 'Shoutbox Tools' , 'section=content&act=Shoutbox&code=03' ), 11 => array( 'Exports Manager' , 'section=content&act=Shoutbox&code=exports' ), ); );?> Quote Link to comment https://forums.phpfreaks.com/topic/21717-parse-error-parse-error-unexpected-t_variable-in/ Share on other sites More sharing options...
trq Posted September 22, 2006 Share Posted September 22, 2006 Can you tell us which is line 116? Or at least post [i]your[/i] code in [ php ] [ / php ] tags so the highlighting can find your error. Quote Link to comment https://forums.phpfreaks.com/topic/21717-parse-error-parse-error-unexpected-t_variable-in/#findComment-96970 Share on other sites More sharing options...
Seraph Posted September 22, 2006 Share Posted September 22, 2006 in the last line with just )make it);that should fix it Quote Link to comment https://forums.phpfreaks.com/topic/21717-parse-error-parse-error-unexpected-t_variable-in/#findComment-96972 Share on other sites More sharing options...
ravenfaust Posted September 22, 2006 Author Share Posted September 22, 2006 [quote author=Seraph link=topic=109122.msg439655#msg439655 date=1158960636]in the last line with just )make it);that should fix it[/quote]tried that still same error Quote Link to comment https://forums.phpfreaks.com/topic/21717-parse-error-parse-error-unexpected-t_variable-in/#findComment-96993 Share on other sites More sharing options...
onlyican Posted September 23, 2006 Share Posted September 23, 2006 Look before line 116 (115 I make it)[code]<?php$PAGES[] = array( 1 => array( 'Modify Toplist' , 'section=content&act=toplist' ),//--------------------------------// D21-Shoutbox//-------------------------------- )[/code]Needs to end in a ;Should solve that problem Quote Link to comment https://forums.phpfreaks.com/topic/21717-parse-error-parse-error-unexpected-t_variable-in/#findComment-97272 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.