=i", "\n", $str); } function get_pager($phpfile, $actualpage, $allrecords, $itemsonpage){ // echo $allrecords." - ".$itemsonpage; $allpages=(int)($allrecords / $itemsonpage); if ($allrecords%$itemsonpage==0) { $allpages=$allpages-1; } $real=$allpages+1; $pager=""; if ($actualpage>0) { $extpage=$actualpage-1; $pager.="<<"; } else { } $from=$actualpage-5; if ($from<0) { $from=0; } elseif ($from>0) { $pager.=" ... "; } $to=$actualpage+5; $dots=0; if ($to>$allpages){ $to=$allpages; } elseif ($to<$allpages) { $dots=1; } for ($a=$from; $a<=$to; $a++){ $pager.=" "; $displayed=$a+1; while (strlen($displayed)
  Fórumok / /  
 
 
"; } else { echo ""; } ?> 0) { echo ""; } ?>

"; } ?>

\\5\\6", $text); $tomb=explode(" ", $text); // print_r($tomb); foreach($tomb as $id=>$elem){ if (!preg_match("`((http)+(s)?:(//)|(www\.))((\w|\.|\-|_)+)(/)?(\S+)?`i", $elem)){ $tomb[$id]=wordwrap($elem,40," ",1); // echo $elem."
"; } else { $tomb[$id]="
{$elem}
"; } } // print_r($tomb); $text=implode(" ", $tomb); $text=nl2br($text); $text = preg_replace( "`((http)+(s)?:(//)|(www\.))((\w|\.|\-|_)+)(/)?(\S+)?`i", "http://\\5\\6\\8\\9", $text); // echo wordwrap($text,50," ",1); echo $text; } ?>