daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Nov 17th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*=======================================================================
  3. | UberCMS - Advanced Website and Content Management System for uberEmu
  4. | #######################################################################
  5. | Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'
  6. | http://www.meth0d.org & http://www.sulake.biz
  7. | #######################################################################
  8. | This program is free software: you can redistribute it and/or modify
  9. | it under the terms of the GNU General Public License as published by
  10. | the Free Software Foundation, either version 3 of the License, or
  11. | (at your option) any later version.
  12. | #######################################################################
  13. | This program is distributed in the hope that it will be useful,
  14. | but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. | GNU General Public License for more details.
  17. \======================================================================*/
  18.  
  19. define('HIDE_FEEDBACK', true);
  20.  
  21. require_once "global.php";
  22. require_once "inc/class.rooms.php";
  23.  
  24. if (!LOGGED_IN)
  25. {
  26.     header("Location: " . WWW. "/login_popup");
  27.     exit;
  28. }
  29.  
  30. $forwardType = 0;
  31. $forwardId = 0;
  32.  
  33. $lang = '';
  34. $habbo10 = '';
  35.  
  36. if (isset($_GET['lang']))
  37. {
  38.     $lang = $_GET['lang'];
  39. }
  40.  
  41. switch ($lang)
  42. {
  43.         default:
  44.     case "en":
  45.  
  46.         $lang = "";
  47.             dbquery("UPDATE users SET real_name = 'English' WHERE id = '" . USER_ID . "' LIMIT 1");
  48.             break;
  49.  
  50.     case "br":
  51.  
  52.             $lang = "_br";
  53.             dbquery("UPDATE users SET real_name = 'Brazilian' WHERE id = '" . USER_ID . "' LIMIT 1");
  54.             break;
  55.  
  56.     case "de":
  57.  
  58.             $lang = "_de";
  59.             dbquery("UPDATE users SET real_name = 'German' WHERE id = '" . USER_ID . "' LIMIT 1");
  60.         break;
  61.  
  62.     case "dk":
  63.  
  64.             $lang = "_dk";
  65.             dbquery("UPDATE users SET real_name = 'Danish' WHERE id = '" . USER_ID . "' LIMIT 1");
  66.         break;
  67.  
  68.     case "es":
  69.  
  70.             $lang = "_es";
  71.             dbquery("UPDATE users SET real_name = 'Spanish' WHERE id = '" . USER_ID . "' LIMIT 1");
  72.         break;
  73.  
  74.     case "fi":
  75.  
  76.         $lang = "_fi";
  77.             dbquery("UPDATE users SET real_name = 'Finnish' WHERE id = '" . USER_ID . "' LIMIT 1");
  78.         break;
  79.  
  80.     case "fr":
  81.  
  82.             $lang = "_fr";
  83.         dbquery("UPDATE users SET real_name = 'French' WHERE id = '" . USER_ID . "' LIMIT 1");
  84.         break;
  85.  
  86.     case "it":
  87.  
  88.             $lang = "_it";
  89.             dbquery("UPDATE users SET real_name = 'Italian' WHERE id = '" . USER_ID . "' LIMIT 1");
  90.         break;
  91.  
  92.     case "jp":
  93.  
  94.             $lang = "_jp";
  95.             $habbo10 = "_jp";
  96.             dbquery("UPDATE users SET real_name = 'Japanese' WHERE id = '" . USER_ID . "' LIMIT 1");
  97.         break;
  98.  
  99.     case "nl":
  100.  
  101.             $lang = "_nl";
  102.             dbquery("UPDATE users SET real_name = 'Dutch' WHERE id = '" . USER_ID . "' LIMIT 1");
  103.         break;
  104.  
  105.     case "no":
  106.  
  107.             $lang = "_no";
  108.             dbquery("UPDATE users SET real_name = 'Norwegian' WHERE id = '" . USER_ID . "' LIMIT 1");
  109.         break;
  110.  
  111.     case "se":
  112.  
  113.             $lang = "_se";
  114.             dbquery("UPDATE users SET real_name = 'Swedish' WHERE id = '" . USER_ID . "' LIMIT 1");
  115.         break;
  116. }
  117.  
  118.  
  119. if ($users->getUserVar(USER_ID, 'newbie_status') == "0")
  120. {
  121.     if (isset($_GET['createRoom']) && is_numeric($_GET['createRoom']))
  122.     {
  123.         $roomId = RoomManager::CreateRoom(USER_NAME . "'s kamer", USER_NAME, 'model_s');
  124.  
  125.         switch (intval($_GET['createRoom']))
  126.         {
  127.             default:
  128.             case 0:
  129.            
  130.                 RoomManager::PaintRoom($roomId, '1701', '601');
  131.                 break;
  132.                
  133.             case 1:
  134.            
  135.                 RoomManager::PaintRoom($roomId, '607', '111');
  136.                 break;
  137.                
  138.             case 2:
  139.            
  140.                 RoomManager::PaintRoom($roomId, '1901', '301');
  141.                 break;
  142.                
  143.             case 3:
  144.            
  145.                 RoomManager::PaintRoom($roomId, '1801', '110');
  146.                 break;
  147.                
  148.             case 4:
  149.            
  150.                 RoomManager::PaintRoom($roomId, '503', '104');
  151.                 break;
  152.                
  153.             case 5:
  154.            
  155.                 RoomManager::PaintRoom($roomId, '804', '107');
  156.                 break;
  157.         }
  158.  
  159.         //die('createRoom Result: ' . $roomId);
  160.         dbquery("UPDATE users SET home_room = '" . $roomId . "', newbie_status = '1' WHERE id = '" . USER_ID . "' LIMIT 1");
  161.        
  162.         //$forwardType = 2;
  163.         //$forwardId = $roomId;
  164.     }
  165.     else
  166.     {
  167.         header("Location: " . WWW . "/client?createRoom=" . rand(0, 5));
  168.         exit;
  169.     }
  170. }
  171. else if (isset($_GET['forwardType']) && isset($_GET['forwardId']) && is_numeric($_GET['forwardType']) && is_numeric($_GET['forwardId']))
  172. {
  173.     $forwardType = intval($_GET['forwardType']);
  174.     $forwardId = intval($_GET['forwardId']);
  175.    
  176.     if ($forwardType >= 3 || $forwardType <= 0)
  177.     {
  178.         return;
  179.     }
  180. }
  181.  
  182. if ($users->GetUserVar(USER_ID, "newbie_status", false) == "1")
  183. {
  184.     dbquery("UPDATE users SET newbie_status = '2' WHERE id = '" . USER_ID . "' LIMIT 1");
  185. }
  186.  
  187. $users->CheckSSO(USER_ID);
  188.  
  189. $tpl->Init();
  190.  
  191. $client = new Template('page-client-r63');
  192.  
  193. $client->SetParam('info_host', '5.230.195.110');
  194. $client->SetParam('info_port', '30000');
  195.  
  196. $client->SetParam('flash_base', 'http://5.230.195.110/RELEASE57-27947-27946-201008260248_1079303621800c85173eddf186d0a4c8/');
  197. $client->SetParam('flash_client_url', '%www%/client');
  198. $client->SetParam('habbo10_swf', 'http://5.230.195.110/RELEASE57-27947-27946-201008260248_1079303621800c85173eddf186d0a4c8/Habbo10 not.swf');
  199. $client->SetParam('external_flash_texts', 'http://5.230.195.110/RELEASE57-27947-27946-201008260248_1079303621800c85173eddf186d0a4c8/external_flash_texts.txt'.$lang);
  200. $client->SetParam('external_variables', 'http://5.230.195.110/RELEASE57-27947-27946-201008260248_1079303621800c85173eddf186d0a4c8/external_variables.txt');
  201.  
  202. if (isset($_GET['forceTicket']) && $users->HasFuse(USER_ID, 'fuse_admin'))
  203. {
  204.     $client->SetParam('sso_ticket', $_GET['forceTicket']);
  205. }
  206. else
  207. {
  208.     $client->SetParam('sso_ticket', $users->GetUserVar(USER_ID, 'auth_ticket', false));
  209. }
  210.  
  211. $tpl->AddTemplate($client);
  212.  
  213. $tpl->Output();
  214. ?>
RAW Paste Data
Top