Jump to content

allanmanea

Members
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Comum

About allanmanea

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. allanmanea

    [Ajuda] Projeto com vírus

    Boa tarde, preciso de ajuda com meu projeto, compilei tudo certinho mais quando outra pessoa vai usar da programa suspeito, alguém poderia me ajudar a remover esse malware, já pedi ajuda para algumas pessoas, umas fala que e por não ser programa permitido pela Microsoft aí bloqueia e outros fala por encript de código se for isso poderia dar uma olhada ou me ajudar, agradeço pela ajuda. .cs https://pastebin.com/5t7DuJYT
  2. allanmanea

    perfil.php

    Estou com um erro, no meu banco de dados tem 2 tabelas referentes para a conta, como accounts que fica o login senha e email, e players que fica name, rank, e outros. quando eu adiciono a tabela players aparece o nome, rank e money. mais quando eu tiro não aparece. mais quando entro em outra conta o nome,rank e money e o mesmo, parece que o Select pega a primeira linha da tabela players, eu queria uma ajuda pra arruma isso. https://prnt.sc/fnzuu8 1ª contahttp://prntscr.com/fnzv6e 2 ª conta aqui e onde eu adiciono a tabela players: $rank = pg_query("SELECT * FROM accounts, players WHERE login='$inicio'"); perfil sem adiciona a tabela players: <?php }else{ $inicio = $_SESSION['username']; $rank = pg_query("SELECT * FROM accounts WHERE login='$inicio'"); $ranking = pg_fetch_assoc($rank); $rank = new Ranking(); ?> <div class="normal"> <div class="header">Minha conta</div> <ul class="blockLogin2S1"> <li style="margin-top: 6px;"> <span><?php echo "<img src='Ranking/PAT/".$ranking['rank'].".gif' width='20' />"; ?></span> <span style="font-family: monospace;vertical-align: super;margin-left: 5px;font-size: 14px;color: rgb(255, 255, 255);"><?php echo "".$ranking['name'].""; ?> <span style="margin-left: 75px;"> <a href="logout.php" target="_self" style="text-decoration: none;"><button style="margin: -24px 0px 2px 170px;width: 74px;" class="read_more">Sair</button></a> </span> </span> </li> </ul> <li class="blcell3"> <dl class="blockLogin2S2"> <dt>Rank</dt> <dd><span style="color:#2AC0FF;"><?php $rank->nome($ranking['rank']); ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Clan</dt> <dd><span style="color:White;"><?php $rank->clan($ranking['clan_id']); ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Cash</dt> <dd><span style="color:gold;"><?php echo "".str_replace(",", ".", number_format($ranking['money'])).""; ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Gold</dt> <dd><span style="color:lime;"><?php echo "".str_replace(",", ".", number_format($ranking['gp'])).""; ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Conta</dt> <dd><span style="color:white;"><?php $rank->tipodeconta($ranking['access_level']); ?></span></dd> </dl> </li> </div>
  3. allanmanea

    conexão entre 2 tabelas

    estou com um erro de tabela, estão selecionado 2 tabela no php , accounts e players, accounts fica login,senha e email, e players fica as configuração do usuarios como nome e outros... mais quando entro em duas conta a tabela players pega só a primeira linha que encontra. http://prntscr.com/fnzuu8 1ª conta http://prntscr.com/fnzv6e 2 ª conta http://prntscr.com/fo21nv sql index.php <?php error_reporting(0); session_start(); require_once('include.php'); include "class/Ranking.class.php"; include "class/nome_patente.php"; $result_p = pg_query("SELECT * FROM acccounts, players WHERE rank<52''"); $num_players = pg_num_rows($result_p); $result1 = pg_query("SELECT * FROM players WHERE online='t'"); $num_rows1 = pg_num_rows($result1); ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <title>Point Blank Troll</title> <link href="http://fonts.googleapis.com/css?family=Oswald:400,700,300" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="stylesheets/main.css" /> <link rel="stylesheet" href="stylesheets/devices.css" /> <link rel="stylesheet" href="stylesheets/post.css" /> <link rel="stylesheet" href="stylesheets/botoes.css" /> <link rel="stylesheet" href="stylesheets/paralax_slider.css" /> <link rel="stylesheet" href="stylesheets/jquery.fancybox.css?v=2.1.2" type="text/css" media="screen" /> <script src="stylesheets/js/jquery-1.11.0.min.js"></script> <script src="stylesheets/js/lightbox.min.js"></script> <script type="text/javascript" src="stylesheets/js/html5lightbox/jquery.js"></script> <script type="text/javascript" src="stylesheets/js/html5lightbox/html5lightbox.js"></script> <script src ="https://www.google.com/recaptcha/api.js"></script> <script src="stylesheets/js/cycle.js" type="text/javascript"></script> <script type="text/javascript" src="stylesheets/javascript/jquery.min.js"></script> <link type="text/css" href="stylesheets/mypb2.css" rel="stylesheet"/> <script type="text/javascript" src="stylesheets/javascript/mypb.js"></script> <link href='http://fonts.googleapis.com/css?family=Open Sans:400,300,700' rel='stylesheet' type='text/css'> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script> </script> </head> <body> <div id="footer_image"> <div id="main_wrapper"> <div id="logo"> <a href="index.php"><img alt="alt_example" src="img/Logo-topo.png" /></a> <div id="social_ctn"> <a class="social_t"><img alt="alt_example" src="./images/social_tleft.png" /></a> <a href="https://www.facebook.com/OficialPointBlankTroll" id="facebook" target="_blank"><img alt="alt_example" src="./images/blank.gif" width="100%" height="37px" /></a> <a href="https://www.youtube.com/user/PBTrollOficial" id="you_tube" target="_blank"><img alt="alt_example" src="./images/blank.gif" width="100%" height="37px" /></a> <a class="social_t" ><img alt="alt_example" src="./images/social_tright.png" /></a> </div> </div> <div id="main_in"> <div id="menu_wrapper"> <div id="menu_left"></div> <ul id="menu"> <li><a href="index.php">Home</a></li> <li><a href="#">Ranking</a> <ul> <li><a href="?pg=ranking">Ranking players</a></li> <li class="drop_last"><a href="?pg=clan">Ranking Clan</a></li> </ul> </li> <?php if (isset($_SESSION['username'])) { ?> <li><a href="#">Painel do player</a> <ul> <li><a href="?pg=changepw">Trocar Senha</a></li> <li><a href="?pg=changemail">Trocar Email</a></li> <li><a href="?pg=ativarpin">Ativar Pincode</a></li> <li class="drop_last"><a href="./suporte">Suporte</a></li> </ul> </li> <li><a href="?pg=downloads">Downloads</a></li> <?php } else {?> <li><a href="./cadastrar">Cadastrar</a></li> <?php } ?> <li><a href="#">Regras</a> <ul> <li><a href="?pg=camp">Camp Regras</a></li> <li class="drop_last"><a href="?pg=regras">Regras Gerais</a></li> </ul></li> </ul> <a href="#" id="pull">Menu</a> <div id="menu_right"></div> </div> <?php function limitarTexto($texto, $limite){ $texto = substr($texto, 0, strrpos(substr($texto, 0, $limite), ' ')) . '...'; return $texto; } ?> <div id="main_news_wrapper"> <div id="row"> <!-- Left wrapper Start --> <?php if(@$_GET['pg'] == ""){ $_GET['pg'] = 'home'; } switch ($_GET['pg']){ case 'home': include 'paginas/home.php'; break; case 'vip': include 'paginas/vip.php'; break; case 'ativarpin': include 'paginas/ativapin.php'; break; case 'changepw': include 'paginas/changepassword.php'; break; case 'changemail': include 'paginas/changeemail.php'; break; case 'ranking': include 'paginas/ranking.php'; break; case 'clan': include 'paginas/clan.php'; break; case 'getcash': include 'paginas/getcash.php'; break; case 'ler_noticia': include 'paginas/noticia.php'; break; case 'allnews': include 'paginas/allnews.php'; break; case 'keyid': include 'paginas/keyid.php'; break; case 'camp': include 'paginas/campregras.php'; break; case 'perfil': include 'paginas/perfil.php'; break; case 'regras': include 'paginas/regrasgerais.php'; break; case 'downloads': include 'paginas/downloads.php'; break; } ?> <!-- Left wrapper end --> <!-- Right wrapper Start --> <div id="right_wrapper"> <?php if (!isset($_SESSION['username'])) { ?> <div class="normal"> <div class="header">Login</div> <div id="search"> <form action="login.php" method="post"> <input id="login" name="username" type="text" class="required" value="usuario" onfocus="this.className='id off';if(this.value=='usuario'){this.value='';}"/> <input id="pass" name="password" type="password" class="required" value="senha" onfocus="this.className='id off';if(this.value=='senha'){this.value='';}"/><br/> <span><a id="cop_text2" href="recuperar.php" style="padding-left: 18px;">Esqueci minha senha</a></span><br/> <button style="margin-left: 230px;margin-top: -93px;margin-bottom: 31px;width: 80px;height: 74px;" type="submit" name="submit" class="read_more2">Logar</button> </form> </div> </div> <?php }else{ $inicio = $_SESSION['username']; $rank = pg_query("SELECT * FROM accounts, players WHERE login='$inicio'"); $ranking = pg_fetch_assoc($rank); $rank = new Ranking(); ?> <div class="normal"> <div class="header">Minha conta</div> <ul class="blockLogin2S1"> <li style="margin-top: 6px;"> <span><?php echo "<img src='Ranking/PAT/".$ranking['rank'].".gif' width='20' />"; ?></span> <span style="font-family: monospace;vertical-align: super;margin-left: 5px;font-size: 14px;color: rgb(255, 255, 255);"><?php echo "".$ranking['name'].""; ?> <span style="margin-left: 75px;"> <a href="logout.php" target="_self" style="text-decoration: none;"><button style="margin: -24px 0px 2px 170px;width: 74px;" class="read_more">Sair</button></a> </span> </span> </li> </ul> <li class="blcell3"> <dl class="blockLogin2S2"> <dt>Rank</dt> <dd><span style="color:#2AC0FF;"><?php $rank->nome($ranking['rank']); ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Clan</dt> <dd><span style="color:White;"><?php $rank->clan($ranking['clan_id']); ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Cash</dt> <dd><span style="color:gold;"><?php echo "".str_replace(",", ".", number_format($ranking['money'])).""; ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Gold</dt> <dd><span style="color:lime;"><?php echo "".str_replace(",", ".", number_format($ranking['gp'])).""; ?></span></dd> </dl> <dl class="blockLogin2S2"> <dt>Conta</dt> <dd><span style="color:white;"><?php $rank->tipodeconta($ranking['access_level']); ?></span></dd> </dl> </li> </div> <?php } ?> <div class="normal"> <div class="header">Status</div> <li class="blcell3" style="width: 320px;"> <dl class="blockLogin2S2" style="width: 320px;"> <dt style="width: 150px;">Total de Players</dt> <dd><span style="color:White;"><?php echo $num_players; ?></span></dd> </dl> <dl class="blockLogin2S2" style="width: 320px;"> <dt style="width: 150px;">Players On</dt> <dd><span style="color:gold;"><?php echo $num_rows1; ?></span></dd> </dl> <dl class="blockLogin2S2" style="width: 320px;"> <dt style="width: 150px;">RC Oficial</dt> <dd><span style="color:lime;">5899499</span></dd> </dl> </li> </div> <div class="normal"> <div class="header">Anunciantes</div> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:inline-block;width:320px;height:100px" data-ad-client="ca-pub-5549489978779638" data-ad-slot="9243969908"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div> <div class="body"> <iframe style="border: 2px solid #FFF;overflow:hidden;width:300px;margin: 10px 0px 20px 16px;height: 130px;" src="//www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/OficialPointBlankTroll&amp;width=300&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=true&amp;appId=178829182171244" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:215px;" ></iframe> </div> </div> </div> <div class="clear"></div> </div> </div> <div class="bottom_shadow"></div> </div> <div id="footer"> <div class="row"> <div class="footer_widget"> <div class="header"><a href="#">Sobre Nos</a></div> <div class="body"> <p><img alt="alt_example" src="img/logo-troll.png" align="left" style="margin: 0px -15px 4px -32px;width: 142px;"/> Nossa equipe começou em 2014, como uma simples brincadeira de criar um servidor de PB, nunca imaginamos chegar onde chegamos, muitos ja passaram pela equipe, passamos de uma simples equipe com um sonho em mente, para uma familia com objetivos.</p> <p>Chegar a onde chegamos não foi facil, mas conseguimos, ainda estamos com muita coisa para fazer, mas chegar aqui, ja é uma grande vitoria.</p> <img alt="alt_example" src="img/Logo-topo.png" style="margin:8px 0px 0px 55px;width:214px;"/> </div> </div> <div class="divider_footer"></div> <div id="latest_media"> <div class="header"><a href="#">latest media</a></div> <div class="body"> <ul id="l_media_list"> <li><a class="shadowbox" href="http://i.imgur.com/Ue5ZN1H.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/Ue5ZN1H.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/bq8qgvT.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/bq8qgvT.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/5puVkoF.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/5puVkoF.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/59ubdhm.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/59ubdhm.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/ZokLZ9K.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/ZokLZ9K.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/Lrz3Kiu.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/Lrz3Kiu.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/hFKmrep.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/hFKmrep.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/7rl5St1.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/7rl5St1.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/xCitd2H.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/xCitd2H.jpg" /></a></li> <li><a class="shadowbox" href="http://i.imgur.com/AURfUuJ.jpg" rel="gallery" ><img alt="alt_example" src="http://i.imgur.com/AURfUuJ.jpg" /></a></li> </ul> </div> </div> <div class="clear"></div> </div> </div> <!--********************************************* Footer end *********************************************--> <div class="clear"></div> <!--********************************************* Main_in end *********************************************--> </div> </div> <!--********************************************* Main wrapper end *********************************************--> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script src="stylesheets/javascript/jquery.carouFredSel-6.1.0.js" type="text/javascript"></script> <script src="stylesheets/javascript/jquery.cslider.js" type="text/javascript" ></script> <script src="stylesheets/javascript/modernizr.custom.28468.js" type="text/javascript"></script> <script src="stylesheets/javascript/getTweet.js" type="text/javascript" ></script> <script src="stylesheets/javascript/jquery.fancybox.js?v=2.1.3" type="text/javascript" ></script> <!--******* Javascript Code for the menu *******--> <script type="text/javascript"> $(document).ready(function() { $('#menu li').bind('mouseover', openSubMenu); $('#menu > li').bind('mouseout', closeSubMenu); function openSubMenu() { $(this).find('ul').css('visibility', 'visible'); }; function closeSubMenu() { $(this).find('ul').css('visibility', 'hidden'); }; }); </script> <script type="text/javascript"> $(function() { var pull = $('#pull'); menu = $('ul#menu'); $(pull).on('click', function(e) { e.preventDefault(); menu.slideToggle(); }); $(window).resize(function(){ var w = $(window).width(); if(w > 767 && $('ul#menu').css('visibility', 'hidden')) { $('ul#menu').removeAttr('style'); }; var menu = $('#menu_wrapper').width(); $('#pull').width(menu - 20); }); }); </script> <script type="text/javascript"> $(function() { var menu = $('#menu_wrapper').width(); $('#pull').width(menu - 20); }); </script> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script src="stylesheets/javascript/jquery.carouFredSel-6.1.0.js" type="text/javascript"></script> <script src="stylesheets/javascript/jquery.cslider.js" type="text/javascript" ></script> <script src="stylesheets/javascript/jquery.bxSlider.min.js" type="text/javascript"></script> <script src="stylesheets/javascript/getTweet.js" type="text/javascript" ></script> <script src="stylesheets/javascript/jquery.fancybox.js?v=2.1.3" type="text/javascript" ></script> <!--******* Javascript Code for the Main banner *******--> <script type="text/javascript"> jQuery(function ($) { $('#homepage-carousel').bxSlider({ 'prev': false , 'next': false , mode : 'fade' , pager: true }); $('.homepage-news-item').show(); var x = $('div.tabs'); $.each(x, function (i) { var f = i 1; $('.pager-' f).empty(); $(this).appendTo('.pager-' f); }); }); </script> <!--******* Javascript Code for the Main banner mobile version *******--> <script type="text/javascript"> $(function() { $('#da-slider').cslider({ autoplay : true, bgincrement : 450 }); }); </script> </body> </html>
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.