Bueno lo que hace es mediante expreciones regulares lee un post de taringa lee el contenido y lo convierte en bbcode para foros y etc.. esto les permtie copiar los post totalmente igual.. en otras palabras permite tener el bbcode de un post..

esto lo ise para unos usos de algo ..

espero que les sirva !

salu2s

Código: Seleccionar todo

<title>NoSePostear V1.0; By Zentido - {Eres un Lamer}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
.Titulito {
font-size:12px;
color:#666666;
font-style:oblique;
}
</style>
<div style="text-align:center;">
<span style="color:#FF9900; font-size:17px;">NoSePostear V1.0; By Zentido</span><br />
<span style="color:#333333; font-size:12px">Fuente: Taringa.Net! Lameria Colectiva</span>
<br />
<br />
</div>
<div style="color:#333333; font-size:12px; background-color:#E6F7FB; border:1px solid #333333">
<div style="text-align:center;"><span style="font-weight:bold; font-size:15px;">Leea Emo:</span></div>
<ul>
<li>Para Indetectables.net</li>
<li>Zentido no es emo; tu si :).</li>
</ul>
</div>

<?php
/**
 * @ Creado: Zentido {Franco Manuel-> [email protected]}
 * @ Para: indetectables.net
 * @ En especial: Para Luisn2: algun dia chingaras un avira !;
 * @ Alguna otra coas?: Si no sean tan lamers XD
**/
if($_POST){
$Link = @file_get_contents($_POST['link']);
preg_match("#<h3>Este post es privado#",$Link,$Sa);
preg_match("#<h3>Oops! Este post no existe o fue eliminado!<\/h3>#",$Link,$Se);

if($Se[0]!=""){
	echo "<div style='text-align:center;'><b>No seas emo; este post no existe :S, o fue eliminado.</b></div>\n";
}else{
	if($Sa[0]==""){
		// A trabajar
	$u = explode('<span property="dc:content">',$Link);
	$u = explode('<!--',$u[1]);
	$text = $u[0];

		$htmltags = array(
			'/\<embed src=\"http:\/\/www.youtube.com\/v\/(.*?)\" quality=high width=\"640px\" height=\"385px\" TYPE=\"application\/x-shockwave-flash\" AllowNetworking=\"internal\" AllowScriptAccess=\"never\" wmode=\"transparent\"\>\<\/embed\>/is',
			'/\<div class=\"citacuerpo\"\>(.*?)\<\/div\>/is',
                        '/\<div style=\"text-align: left\"\>(.*?)\<\/div\>/is',
                        '/\<div style=\"text-align: right\"\>(.*?)\<\/div\>/is',
			'/\<span style=\"font-size: (.*?);\"\>(.*?)\<\/span\>/is',
                        '/\<span style=\"color: (.*?);\"\>(.*?)\<\/span\>/is',
                        '/\<div style=\"text-align: center\"\>(.*?)\<\/div\>/is',
                        '/\<b\>(.*?)\<\/b\>/is',
                        '/\<i\>(.*?)\<\/i\>/is',
                        '/\<em\>(.*?)\<\/em\>/is',
                        '/\<ul\>(.*?)\<\/ul\>/is',
                        '/\<li\>(.*?)\<\/li\>/is',
                        '/\<img(.*?) src=\"(.*?)\" (.*?)\>/is',
                        '/\<div\>(.*?)\<\/div\>/is',
                        '/\<br(.*?)\>/is',
                        '/\<strong\>(.*?)\<\/strong\>/is',
                        '/\<a href=\"(.*?)\"(.*?)\>(.*?)\<\/a\>/is',
						'/\<p(.*?)\>(.*?)\<\/p\>/is',
                        );

// Remplasando a bbcode
$bbtags = array(
			'[youtube]$1[/youtube]', // youtube	
			'[quote author=YO]$1[/quote]', // citar
                        '[left]$1[/left]', // centrar !!
                        '[right]$1[/right]', // centrar !!
                        '[size=$1]$2[/size]', // tamaño xD
                        '[color=$1]$2[/color]', // color
                        '[center]$1[/center]', // centrar !!
                        '[b]$1[/b]', // negrita
                        '[i]$1[/i]', // letra cursiva
                        '[u]$1[/u]', // letra subrayada
                        '[list]$1[/list]',
                        '[*]$1',
                        '[img]$2[/img]',
                        '$1',
						// El enter \n
                        '
						',
                        '[b]$1[/b]',
                        '[url=$1]$3[/url]',
						'$2
						',
                        );

$text = preg_replace ($htmltags, $bbtags, $text);
$text = strip_tags($text); 
$text = str_replace("http://i.t.net.ar/images/big2v5.gif","http://i47.tinypic.com/2iawxz4.jpg",$text);
//$text = utf8_decode($text);


preg_match("#<meta name=\"title\" content=\"(.*?)\" \/>#",$Link,$titu);
$titu = $titu[1];


		echo "<div style='text-align:center;'>\n";		
		echo "<b>Titulo Del Post =D</b><br><input type=\"text\" onclick=\"this.focus();this.select()\" value=\"$titu\" style=\"border:#003399 1px solid; background-color:#E6F7FB; height:30px; width:400px;\" /><br><br><b>Codigo del Post D:</b><br><textarea onclick=\"this.focus();this.select()\" style=\"border:#003399 1px solid;width:600px; height:400px;\">$text</textarea></div>\n";


	}else{
		echo "<div style='text-align:center;'><b>El Post es privado :@, No seas pues; logeate en taringa! y de ahi intentas aqui.</b></center>";
	}
}

}
?>
<div style="text-align:center;">
<form action="NoSePostear.php" method="POST">
	<br />
    <br />
  <label>
  <span class="Titulito">Ingrese el Link del post de Taringa:<br />
  </span>
  <input type="text" name="link" style="border:#003399 1px solid; background-color:#E6F7FB; height:30px; width:400px;" />
  </label>
  	<br />
    <br />
  <label>
  <input type="submit" value="Lo admito soy Lamer, Generar Codigo!">
  </label>
</form>
</div>
<? /* Que? */ ?>

Imagen

Quizas ! algun dia entienda que es un stub haaaaaa xD!
CTRL+U
en google chrome? xD
salu2
En operaciones de mantenimiento, vean porno durante 15 minutos ;). DSR!/Shimpei.
ElBananero escribió:CTRL+U
en google chrome? xD
salu2
esto te lo hace bbcode no html , en firefox tmb es control u

salu2
<? /* Que? */ ?>

Imagen

Quizas ! algun dia entienda que es un stub haaaaaa xD!
muy buena tiooooo
y la imagen me encata jajajajaj
En 1º en 2º o en 3º BETICO hasta que muera
Andaaa...! Asique esto era eh! Que raro... me esperaba una joda!!! Pero esta bonito! Aunque si lo subieses a un host...

Saludos!
¡Atención! LuisN2.com ha caido, pero el blog sigue estando en www.luisn2indetectables.blogspot.com o www.LuisN2.cz.cc
@LuisN2 como siempre de vago luis xD, anda subelo a 00webhosting agarra ahi creo

Saludos
<? /* Que? */ ?>

Imagen

Quizas ! algun dia entienda que es un stub haaaaaa xD!
Perdon por revivir post antiguos
pero esta tool esta muy buena
podrias actualizarla?
ya que ya no copia
Gracias
Cerrado

Volver a “Fuentes”