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]
 

Joh

Member
Jan 10, 2011
154
20
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 . "/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();

?>
try that
 

Joh

Member
Jan 10, 2011
154
20
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 . "/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. "'> 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();

?>

that should work.
 

shawn565

Member
Jan 30, 2011
46
0
Warning: require_once(global.php) [function.require-once]: failed to open stream: No such file or directory in C:\ijji\Server\xampp\htdocs\index.php on line 19

Fatal error: require_once() [function.require]: Failed opening required 'global.php' (include_path='.;C:\ijji\Server\xampp\php\PEAR') in C:\ijji\Server\xampp\htdocs\index.php on line 19

thats happens now
 

Joh

Member
Jan 10, 2011
154
20
Warning: require_once(global.php) [function.require-once]: failed to open stream: No such file or directory in C:\ijji\Server\xampp\htdocs\index.php on line 19

Fatal error: require_once() [function.require]: Failed opening required 'global.php' (include_path='.;C:\ijji\Server\xampp\php\PEAR') in C:\ijji\Server\xampp\htdocs\index.php on line 19

thats happens now

Nothing i can do about that. That means your file global.php is missing.
 

shawn565

Member
Jan 30, 2011
46
0
Can someone give me a CMS

Can someone give me a working cms that works and it has no errors

Please and thank you


Sorry i wont pay but i will give co-owner in my hotel XD
 

shawn565

Member
Jan 30, 2011
46
0
Error on R63

NVM FIXED IT XD But i got a new problem

everytime i log in it goes to newstylehotel.no-ip.org/security

how do u just make it go to /me not /security


Code:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

require_once "global.php";

if (!LOGGED_IN)
{
	header("Location: " . WWW . "/");
	exit;
}

if (isset($_SESSION['set_cookies']) && $_SESSION['set_cookies'] === true)
{
	setcookie('rememberme', 'true', time() + 2592000, '/');
	setcookie('rememberme_token', USER_HASH, time() + 2592000, '/');
	setcookie('rememberme_name', USER_NAME, time() + 2592000, '/');

	unset($_SESSION['set_cookies']);
}

$redirMode = WWW . '/me';

if (isset($_SESSION['page-redirect']))
{
	$redirMode = $_SESSION['page-redirect'];
	unset($_SESSION['page-redirect']);
}

?>
<html>
<head>
  <title>Redireccionando...</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <style type="text/css">body { background-color: #e3e3db; text-align: center; font: 11px Verdana, Arial, Helvetica, sans-serif; } a { color: #fc6204; }</style>
</head>
<body>

<script type="text/javascript">window.location.replace('<?php echo $redirMode; ?>');</script><noscript><meta http-equiv="Refresh" content="0;URL=<?php echo $redirMode; ?>"></noscript>

<p class="btn">Si usted no es redirigido automáticamente, por favor <a href="<?php echo $redirMode; ?>" id="manual_redirect_link">Click aqui</a></p>

</body>
</html>
 

shawn565

Member
Jan 30, 2011
46
0
Another Problem

When ever I try going on the client it say i need to download Adobe Flash Player.'

I already got that and when i go to the site and try to get it, it say google chrome already install it

and i try it on regular internet and installed it and it said the same thing can anyone help me
?
 

Users who are viewing this thread

Top