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] Butterfly EMU- New Crypto
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="DaLightz" data-source="post: 133222" data-attributes="member: 17436"><p>newclient.php:</p><p>[CODE]<?php</p><p>/*=======================================================================</p><p>| UberCMS - Advanced Website and Content Management System for uberEmu</p><p>| #######################################################################</p><p>| Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'</p><p>| http://www.meth0d.org & http://www.sulake.biz</p><p>| #######################################################################</p><p>| This program is free software: you can redistribute it and/or modify</p><p>| it under the terms of the GNU General Public License as published by</p><p>| the Free Software Foundation, either version 3 of the License, or</p><p>| (at your option) any later version.</p><p>| #######################################################################</p><p>| This program is distributed in the hope that it will be useful,</p><p>| but WITHOUT ANY WARRANTY; without even the implied warranty of</p><p>| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p><p>| GNU General Public License for more details.</p><p>\======================================================================*/</p><p> </p><p>define('HIDE_FEEDBACK', true);</p><p>require_once "global.php";</p><p>require_once "includes/class.rooms.php";</p><p>if (!LOGGED_IN)</p><p>{</p><p> header("Location: /login_popup");</p><p> exit;</p><p>}</p><p> </p><p>$forwardType = 0;</p><p>$forwardId = 0;</p><p> </p><p>$ticket = rand(1000000, 9999999);</p><p> </p><p>if(!isset($_GET['username']))</p><p>{</p><p> $sql = mysql_query("SELECT userid FROM user_tickets WHERE userid = '".USER_ID."'");</p><p> if(mysql_num_rows($sql) > 0)</p><p> {</p><p> mysql_query("UPDATE user_tickets SET sessionticket = '".md5($ticket)."', ipaddress = '" . $_SERVER["REMOTE_ADDR"] ."' WHERE userid = '".USER_ID."'");</p><p> }</p><p> else</p><p> {</p><p> mysql_query("INSERT INTO user_tickets (userid, sessionticket, ipaddress) VALUES ('".USER_ID."', '".md5($ticket)."', '".$_SERVER['REMOTE_ADDR']."');");</p><p> }</p><p>}</p><p>else</p><p>{</p><p> $user__id = $users->UserID($gtfo->cleanWord($_GET['username']));</p><p> $sql = mysql_query("SELECT userid FROM user_tickets WHERE userid = '".$user__id."'");</p><p> if(mysql_num_rows($sql) > 0)</p><p> {</p><p> mysql_query("UPDATE user_tickets SET sessionticket = '".$gtfo->cleanWord($_GET['ticket'])."', ipaddress = '".$ip."' WHERE userid = '".$user__id."'");</p><p> }</p><p> else</p><p> {</p><p> mysql_query("INSERT INTO user_tickets (userid, sessionticket, ipaddress) VALUES ('".$user__id."', '".$gtfo->cleanWord($_GET['ticket'])."', '".$_SERVER['REMOTE_ADDR']."');");</p><p> }</p><p>}</p><p> </p><p>if ($users->getUserVar(USER_ID, 'newbie_status') == "0")</p><p>{</p><p> if (isset($_GET['createRoom']) && is_numeric($_GET['createRoom']))</p><p> {</p><p> $roomId = RoomManager::CreateRoom(USER_NAME . "'s room", USER_NAME, 'model_s');</p><p> </p><p> switch (intval($_GET['createRoom']))</p><p> {</p><p> default:</p><p> case 0:</p><p> </p><p> RoomManager::PaintRoom($roomId, '1701', '601');</p><p> break;</p><p> </p><p> case 1:</p><p> </p><p> RoomManager::PaintRoom($roomId, '607', '111');</p><p> break;</p><p> </p><p> case 2:</p><p> </p><p> RoomManager::PaintRoom($roomId, '1901', '301');</p><p> break;</p><p> </p><p> case 3:</p><p> </p><p> RoomManager::PaintRoom($roomId, '1801', '110');</p><p> break;</p><p> </p><p> case 4:</p><p> </p><p> RoomManager::PaintRoom($roomId, '503', '104');</p><p> break;</p><p> </p><p> case 5:</p><p> </p><p> RoomManager::PaintRoom($roomId, '804', '107');</p><p> break;</p><p> }</p><p> </p><p> //die('createRoom Result: ' . $roomId);</p><p> dbquery("UPDATE users SET home_room = '" . $roomId . "', newbie_status = '1' WHERE id = '" . USER_ID . "' LIMIT 1");</p><p> </p><p> //$forwardType = 2;</p><p> //$forwardId = $roomId;</p><p> }</p><p> else</p><p> {</p><p> header("Location: /client?createRoom=" . rand(0, 5));</p><p> exit;</p><p> }</p><p>}</p><p>else if (isset($_GET['forwardType']) && isset($_GET['forwardId']) && is_numeric($_GET['forwardType']) && is_numeric($_GET['forwardId']))</p><p>{</p><p> $forwardType = intval($_GET['forwardType']);</p><p> $forwardId = intval($_GET['forwardId']);</p><p> </p><p> if ($forwardType >= 3 || $forwardType <= 0)</p><p> {</p><p> return;</p><p> }</p><p>}</p><p> </p><p>if ($users->GetUserVar(USER_ID, "newbie_status", false) == "1")</p><p>{</p><p> header("Location: /account/policy-verify");</p><p> exit;</p><p>}</p><p> </p><p>$users->CheckSSO(USER_ID);</p><p> </p><p>$tpl->Init();</p><p> </p><p>$tpl->AddGeneric('head-init');</p><p>$tpl->AddIncludeSet('default');</p><p>$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/habboclient.css', 'stylesheet'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/habboflashclient.css', 'stylesheet'));</p><p>$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/habboflashclient.js')); </p><p>$tpl->WriteIncludeFiles();</p><p>$tpl->AddGeneric('head-bottom');</p><p> </p><p>$client = new Template('page-client');</p><p>$client->SetParam('page_title', 'Hotel');</p><p>if(!isset($_GET['username']))</p><p>{</p><p> $client->SetParam('sso_ticket', md5($ticket));</p><p>}</p><p>else</p><p>{</p><p> $client->SetParam('sso_ticket', $users->GetUserVar($users->UserID($gtfo->cleanWord($_GET['username'])), 'auth_ticket'));</p><p>}</p><p>$client->SetParam('flash_base', 'http://images.habbo.com/gordon/RELEASE51-26419-26420-201005120327_b80cdd8bbca0c0fb7e8ffb6b881319ee/');</p><p>$client->SetParam('flash_client_url', 'http://images.habbo.com/dcr/r51_none_b4ea29afdff17a13afb841a9811ebf55/');</p><p>$client->SetParam('hotel_status', $core->GetUsersOnline() . ' usuários online!');</p><p>$client->SetParam('forwardType', $forwardType);</p><p>$client->SetParam('forwardId', $forwardId);</p><p> </p><p>if (isset($_GET['ticket']) && $_GET['username'] && $users->UserPermission('hk_ext_login', USER_NAME))</p><p>{</p><p> $ticket = $gtfo->cleanWord($_GET['ticket']);</p><p> $client->SetParam('sso_ticket', $gtfo->cleanWord($_GET['ticket']));</p><p> $user_name = $gtfo->cleanWord($_GET['username']);</p><p> dbquery("UPDATE users SET auth_ticket = '".$ticket."' WHERE username = '".$user_name."'");</p><p>}</p><p> </p><p>$tpl->AddTemplate($client);</p><p> </p><p>$tpl->Output();</p><p> </p><p>?></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="DaLightz, post: 133222, member: 17436"] newclient.php: [CODE]<?php /*======================================================================= | UberCMS - Advanced Website and Content Management System for uberEmu | ####################################################################### | Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK' | http://www.meth0d.org & http://www.sulake.biz | ####################################################################### | 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. \======================================================================*/ define('HIDE_FEEDBACK', true); require_once "global.php"; require_once "includes/class.rooms.php"; if (!LOGGED_IN) { header("Location: /login_popup"); exit; } $forwardType = 0; $forwardId = 0; $ticket = rand(1000000, 9999999); if(!isset($_GET['username'])) { $sql = mysql_query("SELECT userid FROM user_tickets WHERE userid = '".USER_ID."'"); if(mysql_num_rows($sql) > 0) { mysql_query("UPDATE user_tickets SET sessionticket = '".md5($ticket)."', ipaddress = '" . $_SERVER["REMOTE_ADDR"] ."' WHERE userid = '".USER_ID."'"); } else { mysql_query("INSERT INTO user_tickets (userid, sessionticket, ipaddress) VALUES ('".USER_ID."', '".md5($ticket)."', '".$_SERVER['REMOTE_ADDR']."');"); } } else { $user__id = $users->UserID($gtfo->cleanWord($_GET['username'])); $sql = mysql_query("SELECT userid FROM user_tickets WHERE userid = '".$user__id."'"); if(mysql_num_rows($sql) > 0) { mysql_query("UPDATE user_tickets SET sessionticket = '".$gtfo->cleanWord($_GET['ticket'])."', ipaddress = '".$ip."' WHERE userid = '".$user__id."'"); } else { mysql_query("INSERT INTO user_tickets (userid, sessionticket, ipaddress) VALUES ('".$user__id."', '".$gtfo->cleanWord($_GET['ticket'])."', '".$_SERVER['REMOTE_ADDR']."');"); } } if ($users->getUserVar(USER_ID, 'newbie_status') == "0") { if (isset($_GET['createRoom']) && is_numeric($_GET['createRoom'])) { $roomId = RoomManager::CreateRoom(USER_NAME . "'s room", USER_NAME, 'model_s'); switch (intval($_GET['createRoom'])) { default: case 0: RoomManager::PaintRoom($roomId, '1701', '601'); break; case 1: RoomManager::PaintRoom($roomId, '607', '111'); break; case 2: RoomManager::PaintRoom($roomId, '1901', '301'); break; case 3: RoomManager::PaintRoom($roomId, '1801', '110'); break; case 4: RoomManager::PaintRoom($roomId, '503', '104'); break; case 5: RoomManager::PaintRoom($roomId, '804', '107'); break; } //die('createRoom Result: ' . $roomId); dbquery("UPDATE users SET home_room = '" . $roomId . "', newbie_status = '1' WHERE id = '" . USER_ID . "' LIMIT 1"); //$forwardType = 2; //$forwardId = $roomId; } else { header("Location: /client?createRoom=" . rand(0, 5)); exit; } } else if (isset($_GET['forwardType']) && isset($_GET['forwardId']) && is_numeric($_GET['forwardType']) && is_numeric($_GET['forwardId'])) { $forwardType = intval($_GET['forwardType']); $forwardId = intval($_GET['forwardId']); if ($forwardType >= 3 || $forwardType <= 0) { return; } } if ($users->GetUserVar(USER_ID, "newbie_status", false) == "1") { header("Location: /account/policy-verify"); exit; } $users->CheckSSO(USER_ID); $tpl->Init(); $tpl->AddGeneric('head-init'); $tpl->AddIncludeSet('default'); $tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/habboclient.css', 'stylesheet')); $tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/habboflashclient.css', 'stylesheet')); $tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/habboflashclient.js')); $tpl->WriteIncludeFiles(); $tpl->AddGeneric('head-bottom'); $client = new Template('page-client'); $client->SetParam('page_title', 'Hotel'); if(!isset($_GET['username'])) { $client->SetParam('sso_ticket', md5($ticket)); } else { $client->SetParam('sso_ticket', $users->GetUserVar($users->UserID($gtfo->cleanWord($_GET['username'])), 'auth_ticket')); } $client->SetParam('flash_base', 'http://images.habbo.com/gordon/RELEASE51-26419-26420-201005120327_b80cdd8bbca0c0fb7e8ffb6b881319ee/'); $client->SetParam('flash_client_url', 'http://images.habbo.com/dcr/r51_none_b4ea29afdff17a13afb841a9811ebf55/'); $client->SetParam('hotel_status', $core->GetUsersOnline() . ' usuários online!'); $client->SetParam('forwardType', $forwardType); $client->SetParam('forwardId', $forwardId); if (isset($_GET['ticket']) && $_GET['username'] && $users->UserPermission('hk_ext_login', USER_NAME)) { $ticket = $gtfo->cleanWord($_GET['ticket']); $client->SetParam('sso_ticket', $gtfo->cleanWord($_GET['ticket'])); $user_name = $gtfo->cleanWord($_GET['username']); dbquery("UPDATE users SET auth_ticket = '".$ticket."' WHERE username = '".$user_name."'"); } $tpl->AddTemplate($client); $tpl->Output(); ?> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help] Butterfly EMU- New Crypto
Top