include ("contador2.php");
include ("configuracion.php");
include ("configuraestefichero.php");
$conexion=mysql_connect('localhost:3306',$usuariobd,$passbd);
mysql_select_db($bd);
$resp = mysql_query("select * from mc_minichat where id='1'") ;
$datos = mysql_fetch_array($resp) ;
$publicidad = $datos[publicidad];
$formacaretos = $datos[emotic_mc];
$activacion = $datos[activacion];
$mostrarip = $datos[mostrarip];
$antispam = $datps[antispam];
mysql_free_result($resp) ;
if($datos[activacion] == 1) {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
elseif (isset($_SERVER['HTTP_VIA'])) {
$ip = $_SERVER['HTTP_VIA'];
}
elseif (isset($_SERVER['REMOTE_ADDR'])) {
$ip = $_SERVER['REMOTE_ADDR'];
}
else {
$ip = "Desconocida";
}
$ipmd = md5($ip);
$alerta1 = mysql_query("select * from alertas where ipmd='$ipmd'") ;
if(mysql_num_rows($alerta1) != 0) {
$aaalerta = "Tienes una Alerta
";
?>
} include("adsmile.php");
// CENSURA SPAMM
$antispam = "SI" ;
$antispam_palabra = "Spamm" ;
// M?ximo mensajes a mostrar
$mostrar = 25 ;
// Caretos
$caretos = "ON" ;
// Censura de palabras
$censura = "ON" ;
// Altura de la tabla de mensajes (cuando los mensajes mostrados rebasan la altura marcada
// aparece una barra de desplazamiento)
if($_COOKIE["hfusuario"]) {
$altura = 340 ;
} else {
$altura = 340 ;
}
// Estilo (archivo que contiene el estilo del minichat, tipo de letra, tama?o, color, fondo)
$estilo = "style.php" ;
// Lista de caretos (si $caretos est? en ON)
if($caretos == "ON") {
function caretos($texto) {
// --> Inicio caretos
$texto = str_replace("","",$texto) ;
$texto = str_replace("","",$texto) ;
$texto = str_replace("(1)","[-1.gif-]",$texto) ;
$texto = str_replace("(2)","[-2.gif-]",$texto) ;
$texto = str_replace("(3)","[-3.gif-]",$texto) ;
$texto = str_replace("(4)","[-4.gif-]",$texto) ;
$texto = str_replace("(5)","[-5.gif-]",$texto) ;
$texto = str_replace("(6)","[-6.gif-]",$texto) ;
$texto = str_replace("(7)","[-7.gif-]",$texto) ;
$texto = str_replace("(8)","[-8.gif-]",$texto) ;
$texto = str_replace("(9)","[-9.gif-]",$texto) ;
$texto = str_replace("(10)","[-10.gif-]",$texto) ;
$texto = str_replace("(11)","[-11.gif-]",$texto) ;
$texto = str_replace("(12)","[-12.gif-]",$texto) ;
$texto = str_replace("(13)","[-13.gif-]",$texto) ;
$texto = str_replace("(14)","[-14.gif-]",$texto) ;
$texto = str_replace("(15)","[-15.gif-]",$texto) ;
$texto = str_replace("(16)","[-16.gif-]",$texto) ;
$texto = str_replace("(17)","[-17.gif-]",$texto) ;
$texto = str_replace("(18)","[-18.gif-]",$texto) ;
$texto = str_replace("(19)","[-19.gif-]",$texto) ;
$texto = str_replace("(20)","[-20.gif-]",$texto) ;
$texto = str_replace("(21)","[-21.gif-]",$texto) ;
$texto = str_replace("(22)","[-22.gif-]",$texto) ;
$texto = str_replace("(23)","[-23.gif-]",$texto) ;
$texto = str_replace("(24)","[-24.gif-]",$texto) ;
$texto = str_replace("(25)","[-25.gif-]",$texto) ;
$texto = str_replace("(26)","[-26.gif-]",$texto) ;
$texto = str_replace("(27)","[-27.gif-]",$texto) ;
$texto = str_replace("(28)","[-28.gif-]",$texto) ;
$texto = str_replace("(29)","[-29.gif-]",$texto) ;
$texto = str_replace("(30)","[-30.gif-]",$texto) ;
$texto = str_replace("(31)","[-31.gif-]",$texto) ;
$texto = str_replace("(32)","[-32.gif-]",$texto) ;
$texto = str_replace("(33)","[-33.gif-]",$texto) ;
$texto = str_replace("(34)","[-34.gif-]",$texto) ;
$texto = str_replace("(35)","[-35.gif-]",$texto) ;
$texto = str_replace("(36)","[-36.gif-]",$texto) ;
$texto = str_replace("(37)","[-37.gif-]",$texto) ;
$texto = str_replace("gay","bobba",$texto) ;
$texto = str_replace("guy","bobba",$texto) ;
$texto = str_replace("puto","bobba",$texto) ;
$texto = str_replace("puta","bobba",$texto) ;
$texto = str_replace("gilipollas","bobba",$texto) ;
$texto = str_replace("jilipollas","bobba",$texto) ;
$texto = str_replace("maricon","bobba",$texto) ;
$texto = str_replace("pu.to","bobba",$texto) ;
$texto = str_replace("pu.ta","bobba",$texto) ;
$texto = str_replace("mierda","bobba",$texto) ;
$texto = str_replace("mi.erda","bobba",$texto) ;
$texto = str_replace("mi.er.da","bobba",$texto) ;
$texto = str_replace("cabrones","bobba",$texto) ;
$texto = str_replace("hilipollas","bobba",$texto) ;
$texto = str_replace("capullos","bobba",$texto) ;
$texto = str_replace("jode","bobba",$texto) ;
$texto = str_replace("co?o","bobba",$texto) ;
$texto = str_replace("806 404 402","bobba",$texto) ;
$texto = str_replace("806404402","bobba",$texto) ;
$texto = str_replace("8 0 6 4 0 4 4 0 2","bobba",$texto) ;
$texto = str_replace("806 506 76","bobba",$texto) ;
$texto = str_replace("80650676","bobba",$texto) ;
$texto = str_replace("00236716063","bobba",$texto) ;
$texto = str_replace("pudranse","bobba",$texto) ;
$texto = str_replace("oficialcatalogo","bobba",$texto) ;
$texto = str_replace("o f i c i a l c a t a l o g o","bobba",$texto) ;
$texto = str_replace("oficial catalogo","bobba",$texto) ;
$texto = str_replace(".tk","bobba",$texto) ;
$texto = str_replace(".t k","bobba",$texto) ;
$texto = str_replace(". t k","bobba",$texto) ;
$texto = str_replace("www.","bobba",$texto) ;
$texto = str_replace("w w w .","bobba",$texto) ;
$texto = str_replace("ww w.","bobba",$texto) ;
$texto = str_replace("w ww.","bobba",$texto) ;
// --> Fin caretos
// --> Fin caretos
// FILTRO ANTI SPAMM
if ($antispam=="0") {} else {
$antispam_palabra = "SPAM";
$texto = preg_replace("/(http:\/\/|www.)[^\s]+/i",$antispam_palabra,$texto) ;
}
// FIN DE FILTRO ANTI SPAMM
$texto = str_replace("[-","
",$texto) ;
// --> Fin caretos
return $texto ;
}
}
// *************** A PARTIR DE AQU? NO TOCAR NADA ******************
// Enviar datos a la BD
if($_POST[enviar]) {
$max_palabra = "20";
if($max_palabra) {
$palabras = explode(" ",$_POST[mensaje]) ;
$total_palabras = count($palabras) ;
for($a = 0 ; $a < $total_palabras ; $a++) {
if(strlen($palabras[$a]) > $max_palabra) { $palabras[$a] = chunk_split($palabras[$a],$max_palabra," ") ; }
}
$mensaje = implode($palabras," ") ;
}
$hora = date("j-m-Y, H:ia");
if($_COOKIE["hfusuario"]) {
$nombreusermensaje = $_COOKIE["hfusuario"];
} else {
$nombreusermensaje = "An?nimo";
}
$resp = mysql_query("select id from ban where ip='$ip'") ;
if(mysql_num_rows($resp) != 0) {
} else {
mysql_query("insert into mc_mensajes (hora,ip,mensaje,nick,idmc,ocultarplaca) values ('$hora','$ip','$mensaje','$nombreusermensaje','$_POST[idmc]','$_POST[placa]')") ;
}
}
?>
Minichat
include("$estilo") ;
?>
$m1=$arr[0];
$m2=$arr[1];
$m3=$arr[2];
$m4=$arr[3];
$m5=$arr[4];
$m6=$arr[5];
$m7=$arr[6];
$m8=$arr[7];
$m9=$arr[8];
$m10=$arr[9];
$m11=$arr[10];
$m12=$arr[11];
$m13=$arr[12];
$m14=$arr[13];
$m15=$arr[14];
print "$m1 $m2 $m3 $m4 $m5 $m6 $m7 $m8 $m9 $m10 $m11 $m12 $m13 $m14 $m15";
?>