Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Help on R63 server
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Joh" data-source="post: 21105" data-attributes="member: 2199"><p>[CODE] <?php</p><p>/*=======================================================================</p><p>| BobbaCMS - Site utilisant pour emulateur UberEmu</p><p>| #######################################################################</p><p>| Copyright (c) 2010, Roy 'Meth0d' and Oxyhd</p><p>| http://Bobbaplay.fr</p><p>| #######################################################################</p><p>| Ce CMS est un CMS libre et gratuit.</p><p>| Vous pouvez le reposter ou le modifier a votre plaisir.</p><p>| Ce CMS et en license GNU donc vous devez le partager gratuitement.</p><p>| cordialement</p><p>| #######################################################################</p><p>| Ce programme est distribué dans l'espoir que ce sera utile,</p><p>| Mais SANS AUCUNE GARANTIE; sans même la garantie impliquée de</p><p>| VALEUR COMMERCIALE ou APTITUDES POUR UN BUT PARTICULIER.</p><p>| Voir la Licence de génerale public de GNU pour plus de détails.</p><p>\======================================================================*/</p><p></p><p>require_once "global.php"; </p><p> </p><p>if (LOGGED_IN)</p><p>{</p><p> header("Location: " . WWW . "/me");</p><p> exit;</p><p>}</p><p></p><p>$tpl->Init();</p><p></p><p>$tpl->SetParam('page_title', 'Cr&eacute;e ton avatar, d&eacute;core ton appart, chatte et fais-toi plein d\'amis.');</p><p>$tpl->SetParam('credentials_username', '');</p><p></p><p>$tpl->AddGeneric('head-init');</p><p>$tpl->AddIncludeSet('frontpage');</p><p>$tpl->WriteIncludeFiles();</p><p>$tpl->AddGeneric('head-overrides-fp');</p><p>$tpl->AddGeneric('head-bottom');</p><p></p><p>$frontpage = new Template('page-index');</p><p>$frontpage->SetParam('login_result', '');</p><p></p><p>if (isset($_POST['credentials_username']) && isset($_POST['credentials_password']))</p><p>{</p><p> $frontpage->SetParam('credentials_username', $_POST['credentials_username']);</p><p></p><p> $credUser = filter($_POST['credentials_username']);</p><p> $credPass = $core->UberHash($_POST['credentials_password']);</p><p> </p><p> $errors = array();</p><p> </p><p> if (strlen($_POST['credentials_username']) < 1)</p><p> {</p><p> $errors[] = "Indique ton nom d'utilisateur";</p><p> }</p><p> </p><p> if (strlen($_POST['credentials_password']) < 1)</p><p> {</p><p> $errors[] = "Indique ton mot de passe";</p><p> }</p><p> </p><p> if (count($errors) == 0)</p><p> {</p><p> if ($users->ValidateUser($credUser, $credPass))</p><p> {</p><p> if (isset($_POST['page']))</p><p> {</p><p> $reqPage = filter($_POST['page']);</p><p> $pos = strrpos($reqPage, WWW);</p><p> </p><p> if ($pos === false || $pos != 0)</p><p> {</p><p> 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> ");</p><p> }</p><p> else</p><p> {</p><p> $_SESSION['page-redirect'] = $reqPage;</p><p> }</p><p> } </p><p> </p><p> $_SESSION['UBER_USER_N'] = $users->GetUserVar($users->Name2id($credUser), 'username');</p><p> $_SESSION['UBER_USER_H'] = $credPass;</p><p> </p><p> if (isset($_POST['_login_remember_me']))</p><p> {</p><p> $_SESSION['set_cookies'] = true;</p><p> }</p><p> </p><p> header("Location: " . WWW . "/security_check");</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $errors[] = "Nom ou Mot de passe incorrect";</p><p> }</p><p> }</p><p></p><p> if (count($errors) > 0)</p><p> {</p><p> $loginResult = '<div class="action-error flash-message"><div class="rounded"><ul>';</p><p></p><p> foreach ($errors as $err)</p><p> {</p><p> $loginResult .= '<li>' . $err . '</li>';</p><p> }</p><p> </p><p> $loginResult .= '</ul></div></div>';</p><p> </p><p> $frontpage->SetParam('login_result', $loginResult);</p><p> }</p><p>}</p><p></p><p>$tpl->AddTemplate($frontpage);</p><p>$tpl->AddGeneric('footer');</p><p></p><p>$tpl->Output();</p><p></p><p>?></p><p>[/CODE]</p><p></p><p>that should work.</p></blockquote><p></p>
[QUOTE="Joh, post: 21105, member: 2199"] [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ée ton avatar, dé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(); ?> [/CODE] that should work. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Help on R63 server
Top