Este usuário ainda não possui fotos"; exit(); } } if($cod_foto == "") { $foto = mysql_query("SELECT cod_foto,arquivo,descricao,texto,views,hora,DATE_FORMAT(data, '%d/%m/%Y') as databr FROM fotos WHERE cod_user = '$cod_user' order by cod_foto DESC LIMIT 0,1") or die(mysql_error()); $exist = mysql_num_rows($foto); if ($exist !== 0) { ?> } else { echo "
Este usuário ainda não possui fotos"; exit(); } } while($row = mysql_fetch_array($foto)) { $cod_foto = $row[cod_foto]; $arquivo = $row[arquivo]; $arquivox = $row[arquivo]; session_register("arquivox"); $descricao = $row[descricao]; $texto = $row[texto]; $views = $row[views]; $data = $row[databr]; $hora = $row[hora]; $tamanho = $row[tamanho]; $ipx = getenv("REMOTE_ADDR"); mysql_query("UPDATE fotos SET views = views+1 WHERE cod_user = '$cod_user' AND cod_foto = '$cod_foto'") or die(mysql_error()); ?> if($descricao == "Removido") { ?>
", $texto);
$texto = str_replace(":triste:", "
", $texto);
$texto = str_replace(":lingua2:", "
", $texto);
$texto = str_replace(":feliz:", "
", $texto);
$texto = str_replace(":assobia:", "
", $texto);
$texto = str_replace(":carro:", "
", $texto);
$texto = str_replace(":baixo:", "
", $texto);
$texto = str_replace(":chora:", "
", $texto);
$texto = str_replace(":zack:", "
", $texto);
$texto = str_replace(":cry:", "
", $texto);
$texto = str_replace(":ok:", "
", $texto);
$texto = str_replace(":palmas:", "
", $texto);
$texto = str_replace(":krypton:", "
", $texto);
$texto = str_replace(":xau:", "
", $texto);
$texto = str_replace(":hum:", "
", $texto);
$texto = str_replace(":spam:", "
", $texto);
$texto = str_replace(":oops:", "
", $texto);
$texto = str_replace(":coracao:", "
", $texto);
$texto = str_replace(":smack:", "
", $texto);
$texto = str_replace(":love:", "
", $texto);
$texto = str_replace(":love2:", "
", $texto);
$texto = str_replace(":pwxp:", "
", $texto);
$texto = str_replace(":mal:", "
", $texto);
$texto = str_replace(":censured:", "
", $texto);
$texto = str_replace(":humm:", "
", $texto);
$texto = str_replace(":trixt:", "
", $texto);
#segunda remeça
$texto = str_replace(":apanhando:", "
", $texto);
$texto = str_replace(":baga:", "
", $texto);
$texto = str_replace(":cachorro:", "
", $texto);
$texto = str_replace(":coelho:", "
", $texto);
$texto = str_replace(":credo:", "
", $texto);
$texto = str_replace(":dancing:", "
", $texto);
$texto = str_replace(":decara:", "
", $texto);
$texto = str_replace(":decepcionado:", "
", $texto);
$texto = str_replace(":desconfiado:", "
", $texto);
$texto = str_replace(":hamster:", "
", $texto);
$texto = str_replace(":hello:", "
", $texto);
$texto = str_replace(":ovelha:", "
", $texto);
$texto = str_replace(":porko:", "
", $texto);
$texto = str_replace(":qisso:", "
", $texto);
$texto = str_replace(":rindo:", "
", $texto);
$texto = str_replace(":rir:", "
", $texto);
$texto = str_replace(":saltitante:", "
", $texto);
$texto = str_replace(":som:", "
", $texto);
$texto = str_replace(":tchau:", "
", $texto);
$texto = str_replace(":duvida:", "
", $texto);
echo $texto;
?>
$pega_numero_comentarios = mysql_query("SELECT count(cod_comment) as total FROM comentarios WHERE cod_user = '$cod_user' AND cod_foto = '$cod_foto'") or die(mysql_error());
$row = mysql_fetch_array($pega_numero_comentarios);
$numero_comentarios = $row['total'];
echo $numero_comentarios;
?>
COMENTÁRIO(S)
} ?> $checa_coments = mysql_query("SELECT count(cod_comment) as total FROM comentarios WHERE cod_user = '$cod_user' AND cod_foto = '$cod_foto'"); $row = mysql_fetch_array($checa_coments); $numero_comentz = $row['total']; $arquivox = $_SESSION["arquivox"]; if ($numero_comentz >= 50 and $user <> "folox") { $erro = 1; } if ($arquivox == "removida.jpg") { $erro = 2; } if ($_SESSION['p_comment'] == 1 AND !session_is_registered("user2")) { $erro = 3; } if(!$erro) { ?>
Clique aqui para logar-se."; } ?>
if ($acao == "comentar") { $nome = $_POST["nome"]; $texto = $_POST["texto"]; $url = $_POST["url"]; $url = strtolower(str_replace(" ", "_", $url)); $url = trim($url); if($_POST['texto'] == "" OR empty($texto)) { echo "\n
"; echo ""; } else { // Tira TAGS HTML $texto = strip_tags($texto, ''); $texto = nl2br($texto); $url = addslashes($url); $nome = addslashes($nome); $texto = addslashes($texto); $texto = str_replace(":lingua:", "
", $texto);
$texto = str_replace(":triste:", "
", $texto);
$texto = str_replace(":lingua2:", "
", $texto);
$texto = str_replace(":feliz:", "
", $texto);
$texto = str_replace(":assobia:", "
", $texto);
$texto = str_replace(":carro:", "
", $texto);
$texto = str_replace(":baixo:", "
", $texto);
$texto = str_replace(":chora:", "
", $texto);
$texto = str_replace(":zack:", "
", $texto);
$texto = str_replace(":cry:", "
", $texto);
$texto = str_replace(":ok:", "
", $texto);
$texto = str_replace(":palmas:", "
", $texto);
$texto = str_replace(":krypton:", "
", $texto);
$texto = str_replace(":xau:", "
", $texto);
$texto = str_replace(":hum:", "
", $texto);
$texto = str_replace(":spam:", "
", $texto);
$texto = str_replace(":oops:", "
", $texto);
$texto = str_replace(":coracao:", "
", $texto);
$texto = str_replace(":smack:", "
", $texto);
$texto = str_replace(":love2:", "
", $texto);
$texto = str_replace(":love:", "
", $texto);
$texto = str_replace(":pwxp:", "
", $texto);
$texto = str_replace(":mal:", "
", $texto);
$texto = str_replace(":censured:", "
", $texto);
$texto = str_replace("fuder", "
", $texto);
$texto = str_replace("viado", "
", $texto);
$texto = str_replace("puta", "
", $texto);
$texto = str_replace("caralho", "
", $texto);
$texto = str_replace("merda", "
", $texto);
$texto = str_replace("foda-se", "
", $texto);
$texto = str_replace(":humm:", "
", $texto);
$texto = str_replace(":trixt:", "
", $texto);
#segunda remeça
$texto = str_replace(":apanhando:", "
", $texto);
$texto = str_replace(":baga:", "
", $texto);
$texto = str_replace(":cachorro:", "
", $texto);
$texto = str_replace(":coelho:", "
", $texto);
$texto = str_replace(":credo:", "
", $texto);
$texto = str_replace(":dancing:", "
", $texto);
$texto = str_replace(":decara:", "
", $texto);
$texto = str_replace(":decepcionado:", "
", $texto);
$texto = str_replace(":desconfiado:", "
", $texto);
$texto = str_replace(":hamster:", "
", $texto);
$texto = str_replace(":hello:", "
", $texto);
$texto = str_replace(":ovelha:", "
", $texto);
$texto = str_replace(":porko:", "
", $texto);
$texto = str_replace(":qisso:", "
", $texto);
$texto = str_replace(":rindo:", "
", $texto);
$texto = str_replace(":rir:", "
", $texto);
$texto = str_replace(":saltitante:", "
", $texto);
$texto = str_replace(":som:", "
", $texto);
$texto = str_replace(":tchau:", "
", $texto);
$texto = str_replace(":duvida:", "
", $texto);
$texto = str_replace("\r", "", $texto);
#$texto = str_replace("\n", "", $texto); $texto = ereg_replace("javascript", "", $texto); $maximo = 40; $letras = explode(' ' , eregi_replace('
',' ',$texto)); for($i=0 ; $i
|
echo $_SESSION['user']; ?>
"; ?>

