Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $login = $_GET[login];
- if(isset($_SESSION[usr_name]) && isset($_SESSION[usr_level]) && $login!=logout)
- echo('');
- else {
- $ip = $_SERVER['REMOTE_ADDR'];
- ?>
- <? if($login!=login){ ?>
- <form action="http://pixelhebbo.com/inicio?login=login" method="post">
- <input class="usuario_usuario" type="text" name="username" placeholder="usuário"/>
- <input class="usuario_usuario" style="margin:5px 0px 0px 10px;" name="password" placeholder="senha" type="password"/>
- <input class="usuario_logar" type="submit" value="logar"/> <a href="http://pixelhebbo.com/registro"><div class="usuario_registro"><div style="margin:5px 0px 0px 0px">registre-se</div></div></a>
- </form>
- <? }
- elseif($login==login) {
- $username = $_POST[username];
- $password = md5($_POST[password]);
- $date = date("Y-m-d");
- $time = date("H:i:s");
- $sql = mysql_query("select * from usr_users where username = '$username' AND password = '$password'");
- $check = mysql_num_rows($sql);
- if($check!=1) {
- echo("<script type='text/javascript'>
- $(function(){
- $.pnotify({
- text: '<b>Falha no login</b><br>Verifique seus dados.'
- });
- });
- </script>
- <form action='http://pixelhebbo.com/inicio?login=login' method='post'>
- <input class='usuario_usuario' type='text' name='username' placeholder='usuário'/>
- <input class='usuario_usuario' style='margin:5px 0px 0px 10px;'' name='password' placeholder='senha' type='password'/>
- <input class='usuario_logar' type='submit' value='logar'/> <a href='http://pixelhebbo.com/registro'><div class='usuario_registro'><div style='margin:5px 0px 0px 0px'>registre-se</div></div></a>
- </form>
- ");
- if($content[loginlog]==1)
- $sqllog = mysql_query("insert into usr_logs(user, ip, time, date, success) values('$username', '$ip', '$time', '$date', 'Falhou')");
- }
- else {
- $user = mysql_fetch_array($sql);
- $_SESSION[usr_name] = $user[username];
- $_SESSION[usr_level] = $user[level];
- $_SESSION[usr_ban] = $user[ban];
- $_SESSION[usr_motivo] = $user[motivo];
- $_SESSION[usr_val] = $user[val];
- echo('');
- if($content[loginlog]==1)
- $sqllog = mysql_query("insert into usr_logs(user, ip, time, date, success) values('$username', '$ip', '$time', '$date', 'Successo')");
- $n = mysql_num_rows(mysql_query("SELECT * FROM ma_recados WHERE recebeu = '".$_SESSION[usr_name]."' AND lido = 'n'"));
- if($n>=1){
- echo("<script type='text/javascript'>
- $(function(){
- $.pnotify({
- text: '<b>Novos recados</b><br>Você possui recados na home.'
- });
- });
- </script>");
- }
- }
- }
- if($login==logout)
- {
- session_unset();
- echo("<script type='text/javascript'>
- $(function(){
- $.pnotify({
- text: '<b>Desconectado</b><br>Obrigado por nos visitar.'
- });
- });
- </script>");
- }
- }
- if($_SESSION[usr_ban]==1){
- session_unset();
- 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'>
- $(function(){
- $.pnotify({
- text: '<b>Banido!</b><br>Infelizmente você foi banido.'
- });
- });
- </script>");
- }else if(($_SESSION[usr_ban]==0) && ($_SESSION[usr_level]==1) || ($_SESSION[usr_level]==2)){ ?>
- <div class="logado_Caixa" title="Meus Dados" style="background-color:rgba(172,152,189,0.7);"><div style="width:18px; height:18px;background-image:url(http://pixelhebbo.com/imagens/icones/icone_logado_perfil.png); background-repeat:no-repeat; margin:16px;"></div></div>
- <div class="logado_Caixa" title="Meu Perfil" style="background-color:rgba(178,213,171,0.7);"><div style="width:18px; height:18px;background-image:url(http://pixelhebbo.com/imagens/icones/icone_logado_avatar.png); background-repeat:no-repeat; margin:16px;"></div></div>
- <div class="logado_Caixa" title="10 Pixels" style="background-color:rgba(62,144,192,0.7);"><div style="width:18px; height:18px;background-image:url(http://pixelhebbo.com/imagens/icones/icone_logado_pixels.png); background-repeat:no-repeat; margin:16px;"></div></div>
- <div class="logado_avatar" style="background-image:url(http://pixelhebbo.com/paginas/avatar.php?user=<?php echo $_SESSION[usr_name]; ?>&action=nrml&direction=4&head_direction=3&gesture=sml&size=b)"></div>
- <div class="logado_textos"style="font-size:16px; font-weight:600;">Olá, <?php echo $_SESSION[usr_name]; ?> !</div>
- <a href="http://pixelhebbo.com/home/<?php echo $_SESSION[usr_name]; ?>"><div class="logado_textos">Minha Home</div></a>
- <form method="post" action="http://pixelhebbo.com/inicio?login=logout"><input name="sair" type="submit" style="color:#594F4F; border:0; font-size:14px; width:150px; float:left; font-weight:500; height:20px; font-family:Raleway; background:rgba(255,255,255,0.0); outline:none; cursor:pointer; text-align:left;" value="Sair" /></form>
- <? } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement