daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Jan 20th, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. $login = $_GET[login];
  3. if(isset($_SESSION[usuario]) && !isset($_POST[sair]))
  4. echo('');
  5. else {
  6. $ip = $_SERVER['REMOTE_ADDR'];
  7. ?>
  8. <? if(!isset($_POST[logar]) && !isset($_POST[sair])){ ?>
  9. <form method="post">
  10.         <div class="username">
  11.             <div class="username-icon"></div>
  12.             <input class="username-input" type="text" name="usuario" id="usuario" onkeyup="javascript:Update();" placeholder="Username"/>
  13.         </div>
  14.         <div class="password">
  15.             <div class="password-icon"></div>
  16.             <input class="password-input" type="password" name="password" placeholder="Senha"/>
  17.         </div>
  18.         <input class="logar-botao" type="submit" name="logar" value="Logar">
  19.         <div id="usuario-fantasma" style="background:url(https://pixelhebbo.com/avatar?user=PixelHebboFS&action=wav&direction=4&head_direction=2&gesture=sml&size=b)">
  20.         </div>
  21.         <div class="linha"></div>
  22.         <div class="registrar"><div style="margin:11px 0px 0px 25px;">Registre-se</div></div>
  23. </form>
  24. <? }
  25. elseif(isset($_POST[logar])) {
  26. $usuario = $_POST[usuario];
  27. $password = $_POST[password];
  28. $date = date("Y-m-d");
  29. $time = date("H:i:s");
  30. $sql = db::Query("select * from usuarios where usuario = '$usuario' AND senha = '$password'");
  31. $check = db::NumRows($sql);
  32. if($check!=1) {
  33. echo("<script type='text/javascript'>
  34. $(function(){
  35.     $.pnotify({
  36.         text: '<b>Falha no login</b><br>Verifique seus dados.'
  37.     });
  38. });
  39. </script>
  40. <form method='post'>
  41.         <div class='username'>
  42.             <div class='username-icon'></div>
  43.             <input class='username-input' type='text' name='usuario' id='usuario' onkeyup='javascript:Update();' placeholder='Username'/>
  44.         </div>
  45.         <div class='password'>
  46.             <div class='password-icon'></div>
  47.             <input class='password-input' type='password' name='password' placeholder='Senha'/>
  48.         </div>
  49.         <input class='logar-botao' type='submit' name='logar' value='Logar'>
  50.         <div id='usuario-fantasma' style='background:url(https://pixelhebbo.com/avatar?user=PixelHebboFS&action=wav&direction=4&head_direction=2&gesture=sml&size=b)'>
  51.         </div>
  52.         <div class='linha'></div>
  53.         <div class='registrar'><div style='margin:11px 0px 0px 25px;'>Registre-se</div></div>
  54. </form>
  55. ");
  56. if($content[loginlog]==1)
  57. $sqllog = db::Query("insert into usr_logs(user, ip, time, date, success) values('$username', '$ip', '$time', '$date', 'Falhou')");
  58. }
  59. else {
  60. $user = db::FetchArray($sql);
  61. echo('');
  62. if($content[loginlog]==1)
  63. $sqllog = db::Query("insert into usr_logs(user, ip, time, date, success) values('$username', '$ip', '$time', '$date', 'Successo')");
  64. $n = db::NumRows(db::Query("SELECT * FROM home_recados WHERE home_user = '".$_SESSION[usuario]."' AND lido = 'n'"));
  65. if($n>=1){
  66. echo("<script type='text/javascript'>
  67. $(function(){
  68.     $.pnotify({
  69.         text: '<b>Novos recados</b><br>Você possui recados na home.'
  70.     });
  71. });
  72. </script>");
  73. }
  74. }
  75. }
  76. if(isset($_POST[sair]))
  77. {
  78. session_unset();
  79. echo("<script type='text/javascript'>
  80. $(function(){
  81.     $.pnotify({
  82.         text: '<b>Desconectado</b><br>Obrigado por nos visitar.'
  83.     });
  84. });
  85. </script>
  86. <form method='post'>
  87.         <div class='username'>
  88.             <div class='username-icon'></div>
  89.             <input class='username-input' type='text' name='usuario' id='usuario' onkeyup='javascript:Update();' placeholder='Username'/>
  90.         </div>
  91.         <div class='password'>
  92.             <div class='password-icon'></div>
  93.             <input class='password-input' type='password' name='password' placeholder='Senha'/>
  94.         </div>
  95.         <input class='logar-botao' type='submit' name='logar' value='Logar'>
  96.         <div id='usuario-fantasma' style='background:url(https://pixelhebbo.com/avatar?user=PixelHebboFS&action=wav&direction=4&head_direction=2&gesture=sml&size=b)'>
  97.         </div>
  98.         <div class='linha'></div>
  99.         <div class='registrar'><div style='margin:11px 0px 0px 25px;'>Registre-se</div></div>
  100. </form>");
  101. }
  102. }
  103. if($_SESSION[banido]==sim){
  104. session_unset();
  105. echo("<div style='margin:5px 0px 0px 5px; color:#ccc; font-size:13px; font-family:Raleway'>Você foi banido de nossos sistemas por tempo indeterminado. Qualquer dúvida sobre o acontecimento, entre em contato através do email <b>contato@pixelhebbo.com</b>.<a href='http://pixelhebbo.com/inicio'>Clique aqui para voltar ao login.</a></div><script type='text/javascript'>
  106. $(function(){
  107.     $.pnotify({
  108.         text: '<b>Banido!</b><br>Infelizmente você foi banido.'
  109.     });
  110. });
  111. </script>");
  112. }else if(isset($_SESSION[usuario])){ ?>
  113. Olá
  114. <form method="post"><input class="logar-botao" type="submit" name="sair" value="sair"></form>
  115. <? } ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top