Help on R63 server

shawn565

Member
Jan 30, 2011
46
0
I got everything thing okay and when i go to my site this error comes

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Habbo\Server\xampp\htdocs\index.php on line 23

and i dont know how to fix it

can anyone help me

this is my index.php
Code:
<?php
/*=======================================================================
| BobbaCMS - Site utilisant pour emulateur UberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d' and Oxyhd
| http://Bobbaplay.fr
| #######################################################################
| Ce CMS est un CMS libre et gratuit.
| Vous pouvez le reposter ou le modifier a votre plaisir.
| Ce CMS et en license GNU donc vous devez le partager gratuitement.
| cordialement
| #######################################################################
| Ce programme est distribué dans l'espoir que ce sera utile,
| Mais SANS AUCUNE GARANTIE; sans même la garantie impliquée de
| VALEUR COMMERCIALE ou APTITUDES POUR UN BUT PARTICULIER.
| Voir la Licence de génerale public de GNU pour plus de détails.
\======================================================================*/

require_once "global.php";	
	
if (LOGGED_IN)
{
	header("Location: " . WWW . NewStyleHotel.no-ip.org"/me");
	exit;
}

$tpl->Init();

$tpl->SetParam('page_title', 'Cr&eacute;e ton avatar, d&eacute;core ton appart, chatte et fais-toi plein d\'amis.');
$tpl->SetParam('credentials_username', '');

$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('frontpage');
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-fp');
$tpl->AddGeneric('head-bottom');

$frontpage = new Template('page-index');
$frontpage->SetParam('login_result', '');

if (isset($_POST['credentials_username']) && isset($_POST['credentials_password']))
{
	$frontpage->SetParam('credentials_username', $_POST['credentials_username']);

	$credUser = filter($_POST['credentials_username']);
	$credPass = $core->UberHash($_POST['credentials_password']);
	
	$errors = array();
	
	if (strlen($_POST['credentials_username']) < 1)
	{
		$errors[] = "Indique ton nom d'utilisateur";
	}
	
	if (strlen($_POST['credentials_password']) < 1)
	{
		$errors[] = "Indique ton mot de passe";
	}
	
	if (count($errors) == 0)
	{
		if ($users->ValidateUser($credUser, $credPass))
		{
			if (isset($_POST['page']))
			{
				$reqPage = filter($_POST['page']);
				$pos = strrpos($reqPage, WWW);
			
				if ($pos === false || $pos != 0)
				{
					die("<b>Avertissement de Security </ b> A malicious application has been detected which has tried to forward a counterfeit site. <a href='". WWW. 5.243.176.15"'> Back to site </ a> ");
				}
				else
				{
					$_SESSION['page-redirect'] = $reqPage;
				}
			}		
					
			$_SESSION['UBER_USER_N'] = $users->GetUserVar($users->Name2id($credUser), 'username');
			$_SESSION['UBER_USER_H'] = $credPass;
			
			if (isset($_POST['_login_remember_me']))
			{
				$_SESSION['set_cookies'] = true;
			}
			
			header("Location: " . WWW . "/security_check");
			exit;
		}
		else
		{
			$errors[] = "Nom ou Mot de passe incorrect";
		}
	}

	if (count($errors) > 0)
	{
		$loginResult = '<div class="action-error flash-message"><div class="rounded"><ul>';

		foreach ($errors as $err)
		{
			$loginResult .= '<li>' . $err . '</li>';
		}
		
		$loginResult .= '</ul></div></div>';
		
		$frontpage->SetParam('login_result', $loginResult);
	}
}

$tpl->AddTemplate($frontpage);
$tpl->AddGeneric('footer');

$tpl->Output();

?>

[mod] Threads merged, Ki. [/mod]
 

Users who are viewing this thread

Top