array('ante', 'bajo', 'con', 'contra', 'desde', 'durante', 'entre', 'hacia', 'hasta', 'mediante', 'para', 'por', 'pro', 'segun', 'sin', 'sobre', 'tras', 'via' ), 'a'=>array('los', 'las', 'una', 'unos', 'unas', 'este', 'estos', 'ese', 'esos', 'aquel', 'aquellos', 'esta', 'estas', 'esa', 'esas', 'aquella', 'aquellas', 'usted', 'nosotros', 'vosotros', 'ustedes', 'nos', 'les', 'nuestro', 'nuestra', 'vuestro', 'vuestra', 'mis', 'tus', 'sus', 'nuestros', 'nuestras', 'vuestros', 'vuestras' ), 'o'=>array('esto', 'que'), ); $string = strtr(mb_strtolower((string)$string, $encoding), 'âàåáäèéêëïîìíôöòóúûüùñ', 'aaaaaeeeeiiiioooouuuun' ); if(preg_match_all('/\pL{3,}/s', $string, $m)){ $m = array_diff(array_unique($m[0]), $extras['p'], $extras['a'], $extras['o']); } return $m; } function numero($numero){ //compruebo que los caracteres sean los permitidos $permitidos = "0123456789"; for ($i=0; $iSever fuera de función"); $link = mysqli_connect($server, $user, $password); $share = 'http://www.facebook.com/sharer.php?u=http://www.ecuacomercio.com/nota11.php?sec='.$sece.'&ite='.$itee; $twitt = 'http://www.facebook.com/sharer.php?u=http://www.ecuacomercio.com/nota11.php?sec='.$sece.'&ite='.$itee; //$sSQL = 'select * from '.$secnot.' where num = "'.$ite.'"'; $sSQL = 'select * from '.$secnot.' order by fec desc limit 5'; mysqli_select_db($link,$database); mysqli_set_charset($link, "utf8"); $result = mysqli_query($link,$sSQL); while ($row=mysqli_fetch_array($result)) { $num1 = $row["num"]; $fec1 = $row["fec"]; $tit = $row["tit1"]; $not = $row["not1"]; $img = $row["lin1"]; $gal = $row["gal1"]; $ttiw = tildes($tit); $cadena = $not; $cadena = str_replace('"','',$cadena); $lon = strpos($cadena,'

'); $lon = $lon - 43; $par = substr($cadena,41,$lon); $key = $tit.' '.$par; //$key = getMetaDescription($key); $perm = getCurrentUrl(); $titl = html($tit); $newstr = str_replace(' ','+',$ttiw.' ').$twitt.$ite; $twitt = 'http://twitter.com/home?status='.$newstr; $snot = str_replace('
',"",$not); $snot = str_replace('
',"",$snot); $snot = substr($snot,1,300); $newstr = str_replace(' ','+',$ttiw.' ').$twitt.$ite; //$not = stripAccents($not); //$tit = stripAccents($tit); $twitt = 'http://twitter.com/home?status='.$newstr; $ima = str_replace(".jpg","_1.jpg",$row["lin1"]); $pal = tags($tit); // $ima = str_replace("http://www.noticias.pontecool.com/fotos/","http://www.noticias.ecuacomercio.com/fotos/",$ima); $e3 = $e3.'

'.ltrim($tit).'

'.ltrim($snot).'
'; } mysqli_free_result($result); mysqli_close($link); ?> <? echo $tit; ?>