Advertisement
Guest User

Untitled

a guest
Feb 17th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.84 KB | None | 0 0
  1. <?php header ('Content-type: text/html; charset=UTF-8'); ?>
  2. <?php
  3. error_reporting(0);
  4. @set_magic_quotes_runtime(false);
  5. ini_set('magic_quotes_runtime', 0);
  6. header ('Content-type: text/html; charset=UTF-8');
  7. date_default_timezone_set('Brazil/East');
  8. ob_start();
  9. session_start();
  10. include 'functions.php';
  11. if( ( !isset($_SESSION['id_s'])) || ( !isset($_SESSION['usuario_s'])) ) {
  12. header('Location: index.php');
  13. exit();
  14. }
  15. $row_usuario = mysql_fetch_array(mysql_query("SELECT * FROM usuario WHERE id_usuario='".$_SESSION['id_s']."' LIMIT 1"));
  16. if($manu_global == 1){
  17. if( $row_usuario['rank'] !== 'dono' ) {
  18. echo "<h1><center>MANUTENCAO</h1></center>";
  19. exit();
  20. }
  21. }
  22. ?>
  23.  
  24. <?php
  25. $ip = $_SERVER['REMOTE_ADDR'];
  26. $xzs = mysql_num_rows(mysql_query("SELECT * FROM banip WHERE ip='$ip'"));
  27. if($xzs > 0){
  28.  
  29. exit();
  30. }
  31. ?>
  32. <?php
  33.  
  34. $connect = new mysqli("localhost","w35uhari","CKoH1rjeuL","w35uhari_db");
  35. if ($connect->connect_error) {
  36. die("Erro no nosso banco de dados, aguarde os programadores resolverem esse erro!");
  37. }
  38.  
  39. $sql1 = "SELECT * FROM ban where habbo='".$_SESSION['usuario_s']."'";
  40. $rx1 = $connect->query($sql1);
  41. if($rx1->num_rows > 0){
  42. echo "Voce foi banido!";
  43. header("Location: /Scorpion2014/scorpionlogin/sair.php?i=1");
  44. exit;
  45. }
  46. function generateFigure($club=null,$gender=null){
  47. //generateFigure function
  48. //Generates a valid Habbo figure
  49. //Copyright (R) 2009 - Yifan Lu (www.yifanlu.com)
  50. //Please do not remove this :-)
  51. if($gender == null){ if(rand(0,1) == 0){ $gender = "M"; }else{ $gender = "F"; } }
  52. if($club == null){ $disp = array(0,2);$club = $disp[array_rand($disp)]; }
  53. echo $club;
  54. $xml = simplexml_load_file('figuredata.xml');
  55. $figure = "";
  56. foreach($xml->sets->settype as $settype){
  57. if((string) $settype['mandatory'] == "1" || rand(0,1) == 1){
  58. $item['settype'] = $settype['type'];
  59. $palette = (int) $settype['paletteid'];
  60. $possible = array();
  61. foreach($settype->set as $xset){
  62. if($xset['gender'] != "U" && $xset['gender'] != $gender){ $fail = true; }
  63. if($xset['selectable'] == "0"){ $fail = true; }
  64. if($xset['colorable'] == "0"){ $color = false; }else{ $color = true; }
  65. if($xset['club'] == "2" && $club == false){ $fail = true; }
  66. if($fail != true){ $possible[] = array($xset['id'],$color); }
  67. $fail = false; $color = false;
  68. }
  69. $count = count($possible);
  70. $num = rand(0,$count-1);
  71. $item['set'] = $possible[$num][0];
  72. if($possible[$num][1] == false){ $item['color'] = ""; }else{
  73. $possible = array();
  74. foreach($xml->colors->palette[$palette-1]->color as $color){
  75. if($color['club'] == "2" && $club == false){ $fail = true; }
  76. if($color['selectable'] == "0"){ $fail = true; }
  77. if($fail != true){ $possible[] = $color['id']; }
  78. $fail = false;
  79. }
  80. $count = count($possible);
  81. $num = rand(0,$count-1);
  82. $item['color'] = $possible[$num];
  83. }
  84. $figure .= $item['settype']."-".$item['set']."-".$item['color'].".";
  85. }
  86. }
  87. $figure = substr($figure, 0, -1);
  88. return array($figure,$gender);
  89. }
  90. ?>
  91. <?php
  92. /*((isset($_GET['count']) && is_numeric($_GET['count'])) ? $count = $_GET['count'] : $count = 10 );
  93. $i = 0;
  94. while($i != $count){
  95. $i++;
  96. $figure = generateFigure('0',null); $figure = $figure[0];
  97. echo "<strong>Figure #".$i."</strong><br />\n";
  98. echo $figure."<br />\n";
  99. echo "<img src=\"http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=".$figure."&size=b&direction=3&head_direction=3&gesture=sml\"><br /><br />\n";
  100. }*/
  101. ?>
  102. </body></html>
  103. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  104. <html xmlns="http://www.w3.org/1999/xhtml">
  105.  
  106.  
  107. <title>Scorpion Project - New</title>
  108. <meta name="title" content="Scorpion Project" />
  109.  
  110. <meta name="author" content="Tulley,Teixeira2009" />
  111. <link rel="stylesheet" type="text/css" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.9/themes/redmond/jquery-ui.css" />
  112. <link href="<?php echo $siteB;?>library/css/css.css" rel="Stylesheet" type="text/css" />
  113. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
  114.  
  115. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
  116. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
  117.  
  118. <script type="text/javascript" src="<?php echo $siteB;?>library/js/site.js"></script>
  119. <script type="text/javascript" src="http://malsup.github.com/jquery.form.js"></script>
  120. <script type="text/javascript" charset="utf-8">
  121. function notify() {
  122. Notification.requestPermission(function() {
  123. var notification = new Notification("Voce acabou de hackiar!", {
  124. icon: 'http://www.habborator.org/archive/icons/mini/createroom_icon.gif',
  125. body: "Voce acabou de hackiar uma vitima ou mais aqui no Downs!",
  126. sound: "http://dsano32m1o.esy.es/som.wav"
  127. });
  128. notification.onclick = function() {
  129. window.open("#");
  130. }
  131. });
  132. }
  133.  
  134.  
  135.  
  136. function xalert(){
  137. $.ajax({
  138. url: 'alertando.php',
  139. success: function(x){
  140. if(x){
  141. a = x.split(",");
  142. notify();
  143. document.getElementById("sound").innerHTML='<audio autoplay="autoplay"><source src="http://dsano32m1o.esy.es/som.wav" type="audio/mp3"/></audio>';
  144. }
  145. }
  146. });
  147. }
  148.  
  149. setInterval(function(){xalert();},6000);
  150. function fechar(){
  151. $("#chat").html('');
  152. var el = document.getElementById( 'chat' );
  153. el.parentNode.removeChild(chat);
  154. document.cookie = 'chat_fechado=sim'
  155. alert("Voce fechou a shoutbox, para abri-la novamente :\nVa ate o menu do Downs, e selecione o item: ShoutBox [+]");
  156. }
  157. var ult_id = 0;
  158. var numero = 0;
  159. $(document).ready(function(){
  160. if (document.cookie.indexOf("chat_fechado") >= 0) {
  161. $("#chat").html('');
  162. var el = document.getElementById( 'chat' );
  163. el.parentNode.removeChild(chat);
  164. }
  165. $("#texto_chat").keyup(function(r){
  166. if(r.which == 13){
  167. sendmsg();
  168. }
  169. });
  170.  
  171. });
  172. function sendmsg(){
  173. text = $("#texto_chat").val();
  174. if(text == ''){
  175. alert('Digite alguma coisa!');
  176. return false;
  177. }
  178. $.ajax({
  179. type: 'POST',
  180. url: '/Scorpion2014/scorpionchat/envia.php',
  181. data: {
  182. 'texto': text
  183. },
  184. cache: false,
  185. success: function(html) {
  186. result = JSON.parse(html);
  187. $("#texto_chat").val('').focus;
  188. if(!result.error == ''){
  189. alert(result.error);
  190. } else if(!result.ban == ''){
  191. alert(result.ban);
  192. location = "/";
  193. }
  194. getmsgs();
  195. }});
  196.  
  197.  
  198. }
  199. function limpar(h){
  200. numerox = document.getElementsByClassName("cx").length;
  201. }
  202.  
  203. function getmsgs() {
  204. $.ajax({
  205. type: 'GET',
  206. url: 'scorpionchat/recebe.php',
  207. data: {
  208. 'id': ult_id
  209. },
  210. dataType: 'json',
  211. cache: false,
  212. success: function(html) {
  213. var texto = '';
  214.  
  215.  
  216.  
  217.  
  218. if (html[0] == 's') {
  219. for (i = 0; i < html[3].length; i++) {console.log(html[3][i][5]);
  220. if ($('#chat-' + html[3][i][4]).length == 0) {
  221. color = null;
  222. if(html[3][i][5] == "## GERENTE ##"){
  223. color="text-shadow:0 0 2px green;";
  224. }
  225.  
  226. if(html[3][i][5] == "@ DIRETOR @"){
  227. color="text-shadow: blue 1px 2px 5px;";
  228. }
  229.  
  230. if(html[3][i][5] == "ADM"){
  231. color="text-shadow:0 0 2px red;";
  232. }
  233.  
  234. if(html[3][i][5] == "MOD"){
  235. color="text-shadow:0 0 2px green";
  236. }
  237.  
  238. texto += '<div class="cx" id="chat-' + html[3][i][4] + '" style="width:568px;padding:3px;background:' + html[3][i][3] + ';border-bottom:1px solid #bbb">';
  239. texto += '<div style="float:left;"><b style="font-size:10px;color:#000;' + color + '">' + html[3][i][0] + '</b><br><span style="font-size:9px;color:#666666;">' + html[3][i][1] + '</span></div>';
  240. texto += '<div style="width:1px;height:21px;border-right:1px solid #666;float:left;margin:4px 3px 0px 3px"></div>';
  241. texto += '<div style="width:438px;float:left;word-wrap:break-word;font-size:11px;color:#333333;max-width:438px">' + html[3][i][2] + '</div><span style="color:red;float:right; font-weight: bold;">' + html[3][i][5] + '<img src="http://images.habbohotel.com.br/c_images/catalogue/icon_168.png" title="Participando da Promocao do Natal no Downs Project!"></span>';
  242. texto += '<div class="clear"></div>';
  243. texto += '</div>';
  244. }
  245. }
  246. $('#content_chat').prepend(texto);
  247. ult_id = html[1];
  248.  
  249. limpar(html[1]);
  250. }
  251.  
  252.  
  253. numero = html[1];
  254. if(numero[0] != ult_id[0]){
  255. $("#content_chat").html("");
  256. ult_id = 0;
  257. getmsgs();
  258. }
  259. }
  260. });
  261. }
  262. setInterval(function(){
  263. getmsgs();
  264. }, 3000);
  265. function zoar() {
  266. url: 'home.php';
  267. };
  268. function sair() {
  269. $.ajax({
  270. type: 'GET',
  271. url: '<?php echo $siteB;?>scorpionlogin/sair.php',
  272. success: function() {
  273. location.href = '<?php echo $siteB;?>index.php';
  274. }
  275. });
  276. }
  277. var alerta = {
  278. vermelho: function(texto, alvo) {
  279. $(alvo + ' div[rel=js]').remove();
  280. $(alvo).append('<div class="mensagem_vermelha" rel="js" style="display:none">' + texto + '</div>');
  281. $(alvo + ' .mensagem_vermelha').fadeIn(200);
  282. }
  283. }
  284. function mudaPag(pg) {
  285. var pg = parseInt(pg);
  286. //alert('a');
  287. $.ajax({
  288. type: 'POST',
  289. url: '<?php echo $siteB;?>scorpionwidgetid/paginacao_ranking.php',
  290. data: { 'pg': pg },
  291. dataType: 'json',
  292. success: function(html) {
  293. $('#ranking').html(html.text_1+'<div class="clear"></div>');
  294.  
  295. $('.cell_ranking').each(function(e) {
  296. var cor = ( i % 2 == 0 )?'#F0F0F0':'#f7f7f7';
  297. $(this).css('background', cor);
  298. i++;
  299. });
  300. }
  301. });
  302. }
  303. var i = 0;
  304. $(function() {
  305.  
  306. $('.cell_menu').click(function() {
  307. var pagina = $.trim( $(this).attr('rel') );
  308. if( pagina == '' ) {
  309. return false;
  310. } else {
  311. location.hash = '!/' + pagina;
  312. $.ajax({
  313. type: 'POST',
  314. url: '<?php echo $siteB;?>scorpionwidgetid/' + pagina + '.php',
  315. beforeSend: function () {
  316. $('#palco').html('<div id="loading"></div>');
  317. $('#palco #loading').fadeIn(200);
  318. },
  319. success: function( html ) {
  320. $('#palco').html('<div style="width:100%;display:none;" id="' + pagina + '_palco">' + html + '</div>');
  321. $('#palco #' + pagina + '_palco').fadeIn(200);
  322. }
  323. });
  324. }
  325. });
  326.  
  327. var left_menu = parseInt( $('#all').offset().left - 165 );
  328. var left_logo = parseInt( $('#all').offset().left );
  329. var top_logo = parseInt( $('#all').offset().top - 160 );
  330. $('#menu').css({'left': left_menu, 'top': '200px'}).fadeIn(200);
  331. $('#logomarca').css({'left': left_logo, 'top': top_logo + 'px'}).fadeIn(200);
  332. $('.cell_ranking').each(function(e) {
  333. var cor = ( i % 2 == 0 )?'#F0F0F0':'#f7f7f7';
  334. $(this).css('background', cor);
  335. i++;
  336. });
  337. $('#username').autocomplete({
  338. source: '<?php echo $siteB;?>scorpionlogin/options.php',
  339. minLength: 2
  340. });
  341.  
  342. var form_l = false;
  343. $('#login').submit(function() {
  344. var user = $.trim( $('#username').val() );
  345. var pass = $.trim( $('#password').val() );
  346. var check = 0;//$('#check_esconde').val();
  347. if( form_l == false ) {
  348. if( user && pass ) {
  349. $.ajax({
  350. type: 'POST',
  351. dataType: 'json',
  352. data: { 'habbo':user, 'senha':pass, 'check': check },
  353. url: '<?php echo $siteB;?>scorpionlogin/logar.php',
  354. beforeSend:function() {
  355. form_l = true;
  356. },
  357. success: function(html) {
  358. form_l = false;
  359. if(html.erro == 's') {
  360. alerta.vermelho(html.msg, '#central_login');
  361. } else if(html.erro == 'n') {
  362. location.reload();
  363. }
  364. }
  365. });
  366. } else {
  367. alerta.vermelho('Digite seu usuario e sua senha!', '#central_login');
  368. }
  369. }
  370. });
  371.  
  372. $('#menu .cell_menu').hover(function() {
  373. $(this).animate({
  374. opacity: 1,
  375. left: '0px'
  376. }, { duration: 200, queue:false });
  377. }, function() {
  378. $(this).animate({
  379. opacity: 0.99999,
  380. left: '8px'
  381. }, { duration: 200, queue:false });
  382. });
  383.  
  384. var carreg_box = false;
  385. $('div[alt=botao]').click(function(){
  386.  
  387. if( !carreg_box ) {
  388. carreg_box = true;
  389. var prox = $(this).attr('rel');
  390. //var dis = $('#'+prox).offset().top - $('.box_meio').offset().top;
  391. $('.box_inner').hide();
  392. $('#'+prox).animate({
  393. opacity:'toggle',
  394. height:'toggle' }, 200, function(){
  395. carreg_box = false;
  396. });
  397. $('div[alt=botao]').attr('class', 'botao_inativo');
  398. $(this).attr('class', 'botao_ativo');
  399. }
  400. });
  401.  
  402. });
  403. </script>
  404. </head>
  405. <body onload="getmsgs();">
  406. <div id="logomarca"></div>
  407. <div id="menu">
  408. <div class="cell_menu" rel="home"><div class="titulo_menu">Home</div></div>
  409. <div class="cell_menu" rel="codigos"><div class="titulo_menu">JS Codes</div></div>
  410. <div class="cell_menu" rel="videoaula"><div class="titulo_menu">Tutoriais</div></div>
  411. <div class="cell_menu" rel="uploader"><div class="titulo_menu">Comandos</div></div>
  412. <div class="cell_menu" rel="paginasfake_email"><div class="titulo_menu">Pages - Email</div></div>
  413. <div class="cell_menu" rel="logs_email"><div class="titulo_menu">Logs Email</div><div class="vitimas">
  414. <?php
  415. $x = $_SESSION['usuario_s'];
  416. $vx = mysql_query("SELECT * FROM novas WHERE habbo='$x' AND ativo='0'");
  417. $xc = mysql_num_rows($vx);
  418. if($xc == 0){
  419. echo "";
  420. } else{
  421. echo "[";
  422. echo $xc;
  423. echo "]";
  424. }
  425. ?>
  426. </div></div>
  427. <div id="sound"/></div>
  428. <div class="cell_menu" rel="widgetid"><div class="titulo_menu">Shoutbox [+]</div></div>
  429.  
  430. <?php if( $row_usuario['rank'] == 'vip' || $row_usuario['rank'] == 'adm' ) { ?><div class="cell_menu" rel="ler_email"><div class="titulo_menu">iMage_Owned</div></div><?php } ?>
  431. <?php if( $row_usuario['rank'] == 'vip' || $row_usuario['rank'] == 'adm' ) { ?><?php } ?>
  432. <div class="cell_menu" rel="account_bomber"><div class="titulo_menu">Extensão</div></div>
  433. <div class="cell_menu" rel=" " onclick="if( confirm('Tem certeza de que deseja sair?') ) { sair(); return false; } else { return false; }"><div class="titulo_menu">Logout</div></div>
  434.  
  435. </div>
  436.  
  437. <div id="all">
  438.  
  439. <div id="palco">
  440.  
  441. <span style="margin-left:6px;font-size:14px;font-weight:bold;color:#666666;float:left;">Bem Vindo ao Downs Project</span>
  442. <div class="separadorg"></div>
  443. <div class="clear"></div>
  444. <br>
  445. <style>
  446. #alerta{
  447. position: fixed;
  448. width:54%;
  449. height: 250px;
  450. top:200px;
  451. left:320px;
  452. z-index: 999;
  453. background-color: #265CFF;
  454. color: white;
  455. font-weight: 900;
  456. }
  457. </style>
  458. <script>
  459.  
  460. function xzs(){
  461. alert("-- Sistema de Referência --\n\nEsse sistema serve para você trazer pessoas pro Downs;\n\nA cada pessoa que acessar o seu link de referência que está acima, após ela se registrar, você ganhará uma quantia de 10 ponto(s);\n\nAqui no Downs, que poderá ser trocada por VIP, poder limpar suas vítimas, e usar os devidos comandos que exijem ponto(s) aqui no site;\n\n\n");
  462. }
  463. </script>
  464.  
  465. <center>Bem vindo, <?php echo $_SESSION['usuario_s'];?><br><br></center><b><h3>
  466. Seu link para referência <b>(<font color=blue>http://downsprojects.br22.com/Scorpion2014/registrar.php?ref=<?php echo $_SESSION['usuario_s'];?></font>)</b><br> Não sabe o que é sistema de referência? <b>(<font color=lightblue><a href="javascript:;" onClick="xzs()">Clique aqui</a></font>)</b>
  467. <br></b></h3><br><br>
  468. <div class="clear"></div>
  469. <br>
  470.  
  471. <span style="margin-left:6px;font-size:14px;font-weight:bold;color:#666666;float:left;margin-bottom:6px">Ranking</span>
  472. <div class="separadorg"></div>
  473. <div class="clear"></div>
  474.  
  475. <div id="ranking" style="padding-bottom:5px;">
  476. <?php
  477. $numreg = 5;
  478. $sql_conta = mysql_query("SELECT * FROM usuario WHERE vitimas > 0");
  479. $quantreg = mysql_num_rows($sql_conta);
  480. if($quantreg > 0) {
  481. if (!isset($pg) || $pg < 1 || $pg > $quantreg || empty($pg) || !$pg || $pg == '') {
  482. $pg = 1;
  483. }
  484. $inicial = ($pg * $numreg)-$numreg;
  485. $sql_rank = mysql_query("SELECT * FROM usuario WHERE vitimas > 0 ORDER BY vitimas DESC LIMIT $inicial, $numreg");
  486. $r = 1;
  487. while($row_rank = mysql_fetch_array($sql_rank)) {
  488. ?>
  489. <div class="cell_ranking"><span style="font-size:14px;font-weight:bold"><?php echo $r;?></span> <?php echo utf8_encode($row_rank['habbo']);?> - <span style="font-size:14px;font-weight:bold;margin-left:7px"><font color=red><?php echo $row_rank['vitimas'];?></font> vitima(s) e possuí <b><font color=red><?php echo $row_rank['pontos'];?></font></b> ponto(s)!</div></font></span>
  490. <?php $r++;} ?>
  491. <br>
  492. <?php
  493. $quant_pg = ceil($quantreg/$numreg);
  494. echo 'Pagina '.$pg.' de '.($quant_pg).' &nbsp; ';
  495. if ( $pg > 1) {
  496. echo '<a href="javascript:;" class="botao_pag" onclick="mudaPag('.($pg-1).')">Anterior</a>';
  497. } else {
  498. echo '<a href="javascript:;" class="botao_pag" style="opacity:0.6">Anterior</a>';
  499. }
  500. if (($pg) < $quant_pg) {
  501. echo '<a href="javascript:;" class="botao_pag" onclick="mudaPag('.($pg+1).')">Proximo</a>';
  502. } else {
  503. echo '<a href="javascript:;" class="botao_pag" style="opacity:0.6">Proximo</a>';
  504. }
  505. }
  506. ?>
  507. </div>
  508.  
  509. </div>
  510. <div class="clear"></div>
  511.  
  512. </div>
  513. <div class="clear"></div>
  514.  
  515. <?php if( isset($_SESSION['id_s']) || isset($_SESSION['usuario_s']) ) { ?>
  516.  
  517. <div id="chat" style="z-index: 99999; width: 610px; position: fixed; height: 405px; bottom: 0px; right: 10px; overflow: hidden;">
  518. <div class="button_chat" rel="max" style="position: relative; float: right; width: 101px; height: 32px; cursor: pointer; opacity: 0.9; display: none; background: url(/Scorpion2014/library/imagens) no-repeat;"></div>
  519. <div class="clear"></div>
  520. <div style="width:610px;height:405px;background:url('/library/imagens/fundo_chat.png');">
  521. <div style="width:590px;margin:0px auto 4px auto;position:relative;top:10px;">
  522. <b style="color:#333333;float:left;">Chat Downs</b> <span style="float:left;font-size:10px;color:#666666;padding-top:1px;padding-left:10px;">Converse, debata e faca novos amigos...</span>
  523. <a href="javascript:;" onclick="fechar()" class="button_chat" style="float:right;color:#666666;font-size:10px;" rel="min">Fechar [-]</a>
  524. <div class="clear"></div>
  525. <div style="width:590px;height:3px;margin:2px auto 2px auto"></div>
  526. <div class="clear"></div>
  527. </div>
  528. <div class="clear"></div>
  529. <div id="content_chat" style="width:590px;height:340px;overflow-y:auto;overflow-x:hidden;margin:12px auto 3px auto">
  530. </div>
  531. <input autocomplete="off" type="text" id="texto_chat" maxlength="190" style="width:470px;font-size:11px;font-family:verdana;color:#555;border:3px solid #ccc;margin-left:9px;" name="texto">
  532. <input type="submit" onclick="sendmsg();" value="Enviar" style="background:#fff;font-weight:bold;width:85px;font-size:11px;font-family:verdana;color:#555;border:3px solid #ccc;margin-left:9px;">
  533. </div>
  534. </div>
  535. <?php } ?>
  536. </body>
  537. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement