include_once "controla.php"; include "includes/cookie.php"; session_start(); deMaior('*'); include "banco.php"; $query = "select * from User where Excluido=0 and Ativo=1 and id=".$ident; $resultado = mysql_query($query, $conexao); if (mysql_num_rows($resultado)==0) { header("location: index.php?erromsg=1"); } while ($linha=mysql_fetch_array($resultado)) { $nome = $linha["Nome"]; $email = $linha["Email"]; $sexo = $linha["Sexo"]; $dataBanco = $linha["dataNasc"]; $d1 = explode("-",$linha["dataNasc"]); $d2 = array_reverse($d1); $dataNasc = implode("/",$d2); $cidade = $linha["Cidade"]; $estado = $linha["Estado"]; $twitter = $linha["Twitter"]; $msn = $linha["MSN"]; $facebook = $linha["Facebook"]; $casa = $linha["Casa"]; $nFics = $linha["nFics"]; $ativo = $linha["Ativo"]; $vip = $linha["Vip"]; $corFundo = $linha["corFundo"]; $corCaixa = $linha["corCaixa"]; $tipo = $linha["Tipo"]; $bio = $linha["Bio"]; $ultAlt = $linha["dataUpdate"]; $ultLogin = $linha["dataLastLogin"]; $cliques = $linha["Cliques"]; $numeroVotos = $linha["Votos"]; $notaTotal = $linha["Taxa"]; } //Esta parte controla o número de Views dos usuários if (getsess(0) <> 'ERR') { $queryCliques = "select * from CliquesUser where idUserLogado=". getsess(0) ." and idUser=$ident"; $resultadoCliques = mysql_query($queryCliques,$conexao) or die ("Error: ".mysql_error()); if (mysql_num_rows($resultadoCliques)==0) { mysql_query("update User set Cliques=Cliques+1 where id=".$ident,$conexao) or die ("Error: ".mysql_error()); mysql_query("insert into CliquesUser (idUserLogado,idUser) values (". getsess(0) .",$ident)",$conexao) or die ("Error: ".mysql_error()); } } //Esta parte serve para verificar se o internauta já votou ou não na fic if (getsess(0) <> 'ERR') { $queryVotos = "select * from VotosUser where idUserLogado=". getsess(0) ." and idUser=$ident"; $resultadoVotos = mysql_query($queryVotos,$conexao) or die ("Error: ".mysql_error()); if (mysql_num_rows($resultadoVotos)==0) $votou = false; else $votou = true; } ?>
$tituloPagina = ""; if (basename($_SERVER['PHP_SELF'],".php")=='menufic') $tituloPagina = $nomeFic." :: "; if (basename($_SERVER['PHP_SELF'],".php")=='visucap') $tituloPagina = $nomeDaFic." - ".$capNome." :: "; ?>![]() |
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
if (getsess(0) <> 'ERR') {
$u = null;
if (getsess(6)==1) $u = "(SUPER MODERADOR)";
if (getsess(7)==1 && getsess(6)==0) $u = "(MODERADOR)";
print " Olá, ". getsess(1) ." $u. Você está logado na Floreios e Borrões. "; print "[MENU DE OPÇÕES] [SEJA VIP] [SAIR] "; print " "; } ?> |
|||||||||||||||||||||||||||||||||||||||||||||||||
|
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||