View Single Post
Old November 12th, 2007, 9:13 PM   #1 (permalink)
Tracer Round
MR. SECURITY
Excelling Contributor
 
Tracer Round's Avatar
 
Joined in Jun 2004
Lives in Orlando, USA
Hosted on SH129
722 posts
Gave thanks: 4
Thanked 1 Time in 1 Post
PHP/MySQL Sessions

I had this code

Code:
      	if( $kernel->session->vars['session_group_id'] <> 1 )
      	{
      		$kernel->ld['lang_f_control_panel'] = "";
      	}
			else
			{
				$kernel->tp->call( "admin_copyright_notice" );
				
				$kernel->tp->call( "admin_footer" );
			}
I want to include session_group_id 23 so with the help of DewKnight I now have

Code:
      		if(($kernel->session->vars['session_group_id'] != 1 )|| ($kernel->session->vars['session_group_id'] != 23))
      		{
      			$kernel->ld['lang_f_control_panel'] = "";
			}		
			else
			{
				$kernel->tp->call( "admin_copyright_notice" );
				
				$kernel->tp->call( "admin_footer" );
			}
Now I get

Quote:
Parse error: syntax error, unexpected ';', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /<path>/include/function_class_page.php on line 1029
Line 1029 is

Quote:
?>
Any suggestions?
__________________
2005 Surpassies: Winner of Most Skilled Wordsmith

SH129 - Power
SH81 - OC5
Tracer Round is offline   Reply With Quote