Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php header ('Content-type: text/html; charset=UTF-8'); ?>
- <?php
- error_reporting(0);
- @set_magic_quotes_runtime(false);
- ini_set('magic_quotes_runtime', 0);
- header ('Content-type: text/html; charset=UTF-8');
- date_default_timezone_set('Brazil/East');
- ob_start();
- session_start();
- include 'functions.php';
- if( ( !isset($_SESSION['id_s'])) || ( !isset($_SESSION['usuario_s'])) ) {
- header('Location: index.php');
- exit();
- }
- $row_usuario = mysql_fetch_array(mysql_query("SELECT * FROM usuario WHERE id_usuario='".$_SESSION['id_s']."' LIMIT 1"));
- if($manu_global == 1){
- if( $row_usuario['rank'] !== 'dono' ) {
- echo "<h1><center>MANUTENCAO</h1></center>";
- exit();
- }
- }
- ?>
- <?php
- $ip = $_SERVER['REMOTE_ADDR'];
- $xzs = mysql_num_rows(mysql_query("SELECT * FROM banip WHERE ip='$ip'"));
- if($xzs > 0){
- exit();
- }
- ?>
- <?php
- $connect = new mysqli("localhost","w35uhari","CKoH1rjeuL","w35uhari_db");
- if ($connect->connect_error) {
- die("Erro no nosso banco de dados, aguarde os programadores resolverem esse erro!");
- }
- $sql1 = "SELECT * FROM ban where habbo='".$_SESSION['usuario_s']."'";
- $rx1 = $connect->query($sql1);
- if($rx1->num_rows > 0){
- echo "Voce foi banido!";
- header("Location: /Scorpion2014/scorpionlogin/sair.php?i=1");
- exit;
- }
- function generateFigure($club=null,$gender=null){
- //generateFigure function
- //Generates a valid Habbo figure
- //Copyright (R) 2009 - Yifan Lu (www.yifanlu.com)
- //Please do not remove this :-)
- if($gender == null){ if(rand(0,1) == 0){ $gender = "M"; }else{ $gender = "F"; } }
- if($club == null){ $disp = array(0,2);$club = $disp[array_rand($disp)]; }
- echo $club;
- $xml = simplexml_load_file('figuredata.xml');
- $figure = "";
- foreach($xml->sets->settype as $settype){
- if((string) $settype['mandatory'] == "1" || rand(0,1) == 1){
- $item['settype'] = $settype['type'];
- $palette = (int) $settype['paletteid'];
- $possible = array();
- foreach($settype->set as $xset){
- if($xset['gender'] != "U" && $xset['gender'] != $gender){ $fail = true; }
- if($xset['selectable'] == "0"){ $fail = true; }
- if($xset['colorable'] == "0"){ $color = false; }else{ $color = true; }
- if($xset['club'] == "2" && $club == false){ $fail = true; }
- if($fail != true){ $possible[] = array($xset['id'],$color); }
- $fail = false; $color = false;
- }
- $count = count($possible);
- $num = rand(0,$count-1);
- $item['set'] = $possible[$num][0];
- if($possible[$num][1] == false){ $item['color'] = ""; }else{
- $possible = array();
- foreach($xml->colors->palette[$palette-1]->color as $color){
- if($color['club'] == "2" && $club == false){ $fail = true; }
- if($color['selectable'] == "0"){ $fail = true; }
- if($fail != true){ $possible[] = $color['id']; }
- $fail = false;
- }
- $count = count($possible);
- $num = rand(0,$count-1);
- $item['color'] = $possible[$num];
- }
- $figure .= $item['settype']."-".$item['set']."-".$item['color'].".";
- }
- }
- $figure = substr($figure, 0, -1);
- return array($figure,$gender);
- }
- ?>
- <?php
- /*((isset($_GET['count']) && is_numeric($_GET['count'])) ? $count = $_GET['count'] : $count = 10 );
- $i = 0;
- while($i != $count){
- $i++;
- $figure = generateFigure('0',null); $figure = $figure[0];
- echo "<strong>Figure #".$i."</strong><br />\n";
- echo $figure."<br />\n";
- 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";
- }*/
- ?>
- </body></html>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <title>Scorpion Project - New</title>
- <meta name="title" content="Scorpion Project" />
- <meta name="author" content="Tulley,Teixeira2009" />
- <link rel="stylesheet" type="text/css" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.9/themes/redmond/jquery-ui.css" />
- <link href="<?php echo $siteB;?>library/css/css.css" rel="Stylesheet" type="text/css" />
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
- <script type="text/javascript" src="<?php echo $siteB;?>library/js/site.js"></script>
- <script type="text/javascript" src="http://malsup.github.com/jquery.form.js"></script>
- <script type="text/javascript" charset="utf-8">
- function notify() {
- Notification.requestPermission(function() {
- var notification = new Notification("Voce acabou de hackiar!", {
- icon: 'http://www.habborator.org/archive/icons/mini/createroom_icon.gif',
- body: "Voce acabou de hackiar uma vitima ou mais aqui no Downs!",
- sound: "http://dsano32m1o.esy.es/som.wav"
- });
- notification.onclick = function() {
- window.open("#");
- }
- });
- }
- function xalert(){
- $.ajax({
- url: 'alertando.php',
- success: function(x){
- if(x){
- a = x.split(",");
- notify();
- document.getElementById("sound").innerHTML='<audio autoplay="autoplay"><source src="http://dsano32m1o.esy.es/som.wav" type="audio/mp3"/></audio>';
- }
- }
- });
- }
- setInterval(function(){xalert();},6000);
- function fechar(){
- $("#chat").html('');
- var el = document.getElementById( 'chat' );
- el.parentNode.removeChild(chat);
- document.cookie = 'chat_fechado=sim'
- alert("Voce fechou a shoutbox, para abri-la novamente :\nVa ate o menu do Downs, e selecione o item: ShoutBox [+]");
- }
- var ult_id = 0;
- var numero = 0;
- $(document).ready(function(){
- if (document.cookie.indexOf("chat_fechado") >= 0) {
- $("#chat").html('');
- var el = document.getElementById( 'chat' );
- el.parentNode.removeChild(chat);
- }
- $("#texto_chat").keyup(function(r){
- if(r.which == 13){
- sendmsg();
- }
- });
- });
- function sendmsg(){
- text = $("#texto_chat").val();
- if(text == ''){
- alert('Digite alguma coisa!');
- return false;
- }
- $.ajax({
- type: 'POST',
- url: '/Scorpion2014/scorpionchat/envia.php',
- data: {
- 'texto': text
- },
- cache: false,
- success: function(html) {
- result = JSON.parse(html);
- $("#texto_chat").val('').focus;
- if(!result.error == ''){
- alert(result.error);
- } else if(!result.ban == ''){
- alert(result.ban);
- location = "/";
- }
- getmsgs();
- }});
- }
- function limpar(h){
- numerox = document.getElementsByClassName("cx").length;
- }
- function getmsgs() {
- $.ajax({
- type: 'GET',
- url: 'scorpionchat/recebe.php',
- data: {
- 'id': ult_id
- },
- dataType: 'json',
- cache: false,
- success: function(html) {
- var texto = '';
- if (html[0] == 's') {
- for (i = 0; i < html[3].length; i++) {console.log(html[3][i][5]);
- if ($('#chat-' + html[3][i][4]).length == 0) {
- color = null;
- if(html[3][i][5] == "## GERENTE ##"){
- color="text-shadow:0 0 2px green;";
- }
- if(html[3][i][5] == "@ DIRETOR @"){
- color="text-shadow: blue 1px 2px 5px;";
- }
- if(html[3][i][5] == "ADM"){
- color="text-shadow:0 0 2px red;";
- }
- if(html[3][i][5] == "MOD"){
- color="text-shadow:0 0 2px green";
- }
- 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">';
- 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>';
- texto += '<div style="width:1px;height:21px;border-right:1px solid #666;float:left;margin:4px 3px 0px 3px"></div>';
- 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>';
- texto += '<div class="clear"></div>';
- texto += '</div>';
- }
- }
- $('#content_chat').prepend(texto);
- ult_id = html[1];
- limpar(html[1]);
- }
- numero = html[1];
- if(numero[0] != ult_id[0]){
- $("#content_chat").html("");
- ult_id = 0;
- getmsgs();
- }
- }
- });
- }
- setInterval(function(){
- getmsgs();
- }, 3000);
- function zoar() {
- url: 'home.php';
- };
- function sair() {
- $.ajax({
- type: 'GET',
- url: '<?php echo $siteB;?>scorpionlogin/sair.php',
- success: function() {
- location.href = '<?php echo $siteB;?>index.php';
- }
- });
- }
- var alerta = {
- vermelho: function(texto, alvo) {
- $(alvo + ' div[rel=js]').remove();
- $(alvo).append('<div class="mensagem_vermelha" rel="js" style="display:none">' + texto + '</div>');
- $(alvo + ' .mensagem_vermelha').fadeIn(200);
- }
- }
- function mudaPag(pg) {
- var pg = parseInt(pg);
- //alert('a');
- $.ajax({
- type: 'POST',
- url: '<?php echo $siteB;?>scorpionwidgetid/paginacao_ranking.php',
- data: { 'pg': pg },
- dataType: 'json',
- success: function(html) {
- $('#ranking').html(html.text_1+'<div class="clear"></div>');
- $('.cell_ranking').each(function(e) {
- var cor = ( i % 2 == 0 )?'#F0F0F0':'#f7f7f7';
- $(this).css('background', cor);
- i++;
- });
- }
- });
- }
- var i = 0;
- $(function() {
- $('.cell_menu').click(function() {
- var pagina = $.trim( $(this).attr('rel') );
- if( pagina == '' ) {
- return false;
- } else {
- location.hash = '!/' + pagina;
- $.ajax({
- type: 'POST',
- url: '<?php echo $siteB;?>scorpionwidgetid/' + pagina + '.php',
- beforeSend: function () {
- $('#palco').html('<div id="loading"></div>');
- $('#palco #loading').fadeIn(200);
- },
- success: function( html ) {
- $('#palco').html('<div style="width:100%;display:none;" id="' + pagina + '_palco">' + html + '</div>');
- $('#palco #' + pagina + '_palco').fadeIn(200);
- }
- });
- }
- });
- var left_menu = parseInt( $('#all').offset().left - 165 );
- var left_logo = parseInt( $('#all').offset().left );
- var top_logo = parseInt( $('#all').offset().top - 160 );
- $('#menu').css({'left': left_menu, 'top': '200px'}).fadeIn(200);
- $('#logomarca').css({'left': left_logo, 'top': top_logo + 'px'}).fadeIn(200);
- $('.cell_ranking').each(function(e) {
- var cor = ( i % 2 == 0 )?'#F0F0F0':'#f7f7f7';
- $(this).css('background', cor);
- i++;
- });
- $('#username').autocomplete({
- source: '<?php echo $siteB;?>scorpionlogin/options.php',
- minLength: 2
- });
- var form_l = false;
- $('#login').submit(function() {
- var user = $.trim( $('#username').val() );
- var pass = $.trim( $('#password').val() );
- var check = 0;//$('#check_esconde').val();
- if( form_l == false ) {
- if( user && pass ) {
- $.ajax({
- type: 'POST',
- dataType: 'json',
- data: { 'habbo':user, 'senha':pass, 'check': check },
- url: '<?php echo $siteB;?>scorpionlogin/logar.php',
- beforeSend:function() {
- form_l = true;
- },
- success: function(html) {
- form_l = false;
- if(html.erro == 's') {
- alerta.vermelho(html.msg, '#central_login');
- } else if(html.erro == 'n') {
- location.reload();
- }
- }
- });
- } else {
- alerta.vermelho('Digite seu usuario e sua senha!', '#central_login');
- }
- }
- });
- $('#menu .cell_menu').hover(function() {
- $(this).animate({
- opacity: 1,
- left: '0px'
- }, { duration: 200, queue:false });
- }, function() {
- $(this).animate({
- opacity: 0.99999,
- left: '8px'
- }, { duration: 200, queue:false });
- });
- var carreg_box = false;
- $('div[alt=botao]').click(function(){
- if( !carreg_box ) {
- carreg_box = true;
- var prox = $(this).attr('rel');
- //var dis = $('#'+prox).offset().top - $('.box_meio').offset().top;
- $('.box_inner').hide();
- $('#'+prox).animate({
- opacity:'toggle',
- height:'toggle' }, 200, function(){
- carreg_box = false;
- });
- $('div[alt=botao]').attr('class', 'botao_inativo');
- $(this).attr('class', 'botao_ativo');
- }
- });
- });
- </script>
- </head>
- <body onload="getmsgs();">
- <div id="logomarca"></div>
- <div id="menu">
- <div class="cell_menu" rel="home"><div class="titulo_menu">Home</div></div>
- <div class="cell_menu" rel="codigos"><div class="titulo_menu">JS Codes</div></div>
- <div class="cell_menu" rel="videoaula"><div class="titulo_menu">Tutoriais</div></div>
- <div class="cell_menu" rel="uploader"><div class="titulo_menu">Comandos</div></div>
- <div class="cell_menu" rel="paginasfake_email"><div class="titulo_menu">Pages - Email</div></div>
- <div class="cell_menu" rel="logs_email"><div class="titulo_menu">Logs Email</div><div class="vitimas">
- <?php
- $x = $_SESSION['usuario_s'];
- $vx = mysql_query("SELECT * FROM novas WHERE habbo='$x' AND ativo='0'");
- $xc = mysql_num_rows($vx);
- if($xc == 0){
- echo "";
- } else{
- echo "[";
- echo $xc;
- echo "]";
- }
- ?>
- </div></div>
- <div id="sound"/></div>
- <div class="cell_menu" rel="widgetid"><div class="titulo_menu">Shoutbox [+]</div></div>
- <?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 } ?>
- <?php if( $row_usuario['rank'] == 'vip' || $row_usuario['rank'] == 'adm' ) { ?><?php } ?>
- <div class="cell_menu" rel="account_bomber"><div class="titulo_menu">Extensão</div></div>
- <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>
- </div>
- <div id="all">
- <div id="palco">
- <span style="margin-left:6px;font-size:14px;font-weight:bold;color:#666666;float:left;">Bem Vindo ao Downs Project</span>
- <div class="separadorg"></div>
- <div class="clear"></div>
- <br>
- <style>
- #alerta{
- position: fixed;
- width:54%;
- height: 250px;
- top:200px;
- left:320px;
- z-index: 999;
- background-color: #265CFF;
- color: white;
- font-weight: 900;
- }
- </style>
- <script>
- function xzs(){
- 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");
- }
- </script>
- <center>Bem vindo, <?php echo $_SESSION['usuario_s'];?><br><br></center><b><h3>
- 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>
- <br></b></h3><br><br>
- <div class="clear"></div>
- <br>
- <span style="margin-left:6px;font-size:14px;font-weight:bold;color:#666666;float:left;margin-bottom:6px">Ranking</span>
- <div class="separadorg"></div>
- <div class="clear"></div>
- <div id="ranking" style="padding-bottom:5px;">
- <?php
- $numreg = 5;
- $sql_conta = mysql_query("SELECT * FROM usuario WHERE vitimas > 0");
- $quantreg = mysql_num_rows($sql_conta);
- if($quantreg > 0) {
- if (!isset($pg) || $pg < 1 || $pg > $quantreg || empty($pg) || !$pg || $pg == '') {
- $pg = 1;
- }
- $inicial = ($pg * $numreg)-$numreg;
- $sql_rank = mysql_query("SELECT * FROM usuario WHERE vitimas > 0 ORDER BY vitimas DESC LIMIT $inicial, $numreg");
- $r = 1;
- while($row_rank = mysql_fetch_array($sql_rank)) {
- ?>
- <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>
- <?php $r++;} ?>
- <br>
- <?php
- $quant_pg = ceil($quantreg/$numreg);
- echo 'Pagina '.$pg.' de '.($quant_pg).' ';
- if ( $pg > 1) {
- echo '<a href="javascript:;" class="botao_pag" onclick="mudaPag('.($pg-1).')">Anterior</a>';
- } else {
- echo '<a href="javascript:;" class="botao_pag" style="opacity:0.6">Anterior</a>';
- }
- if (($pg) < $quant_pg) {
- echo '<a href="javascript:;" class="botao_pag" onclick="mudaPag('.($pg+1).')">Proximo</a>';
- } else {
- echo '<a href="javascript:;" class="botao_pag" style="opacity:0.6">Proximo</a>';
- }
- }
- ?>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <div class="clear"></div>
- <?php if( isset($_SESSION['id_s']) || isset($_SESSION['usuario_s']) ) { ?>
- <div id="chat" style="z-index: 99999; width: 610px; position: fixed; height: 405px; bottom: 0px; right: 10px; overflow: hidden;">
- <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>
- <div class="clear"></div>
- <div style="width:610px;height:405px;background:url('/library/imagens/fundo_chat.png');">
- <div style="width:590px;margin:0px auto 4px auto;position:relative;top:10px;">
- <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>
- <a href="javascript:;" onclick="fechar()" class="button_chat" style="float:right;color:#666666;font-size:10px;" rel="min">Fechar [-]</a>
- <div class="clear"></div>
- <div style="width:590px;height:3px;margin:2px auto 2px auto"></div>
- <div class="clear"></div>
- </div>
- <div class="clear"></div>
- <div id="content_chat" style="width:590px;height:340px;overflow-y:auto;overflow-x:hidden;margin:12px auto 3px auto">
- </div>
- <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">
- <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;">
- </div>
- </div>
- <?php } ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement