Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/.barton/kenxpowerz/game2life.com/phpbbint.php on line 37
This is the code:
<?phpif (!defined('IN_SITE')) { die('HACKING ATTEMPT');}// phpbb3 login, user session management$phpbb_root_path = './forum/';$returnAddress = '../index.php';// include phpbb stuffdefine('IN_PHPBB', true);$phpEx = substr(strrchr(__FILE__, '.'), 1);include($phpbb_root_path . 'common.' . $phpEx);include($phpbb_root_path . 'includes/functions_display.' . $phpEx);// start phpbb3 session management$user->session_begin();$auth->acl($user->data);// start main page stuffif (!$user->data['is_registered']) {?><div id="login"> <form method="post" action="<? echo $phpbb_root_path' ?>ucp.php?mode=login"> <ul> <li><label for="username">Username:</label> <input type="text" name="username" id="username" size="5" title="Username" /></li><br /> <li><label for="password">Password:</label> <input type="password" name="password" id="password" size="5" title="Password" /></li><br /> <li><label for="autologin">Log me on automatically each visit:</label> <input type="checkbox" name="autologin" id="autologin" /></li><br /> <li><input type="submit" name="login" value="Login" /></li><br /> </ul> <input type="hidden" name="redirect" value="<? echo $returnAddress; ?>" /> </form></div><?} else {?>Hi <? echo $user->data['username']; ?>! <a href="<? echo $phpbb_root_path; ?>ucp.php?mode=logout&redirect=<? echo $returnAddress; ?>&sid=<? echo $user->data['session_id']; ?>">Logout</a><br /><?vardump($user->data);}?>
According to notepad++, the line that says "Hi username!" is line 37.
Can somebody please tell me what is going on?