Ejemplo n.º 1
0
function replace_files ($dir, $pos=2,$fileitem,$environment,$namearray) {
   $handle = @opendir($dir);
   while ( $file = @readdir($handle) ) {
      if ( preg_match("~^\.{1,2}$~u", $file) ) {
         continue;
      }

      if ( is_dir($dir.$file) ) {
         replace_files($dir.$file."/", $pos + 3,$fileitem,$environment,$namearray);
      } else {
         $extension = mb_strtolower(mb_substr(strrchr($dir.$file,"."),1), 'UTF-8');
         if ( is_file($dir.$file) and ( $extension == "htm"
                                        or $extension == "html"
                                        or $extension == "js"
                                        or $extension == "xml"
                                        or $extension == "xslt"
                                        or $extension == "xsd"
                                        #or $extension == "css"
                                      )
            ) {
            $replacement = replacement($environment,$fileitem,$dir,$file,$namearray);
            $open = fopen($dir.$file,'w');
            fputs($open,$replacement);
            fclose($open);
            update_progress_bar(count_for_process($namearray));
         }
      }
   }
   @closedir($handle);
}
Ejemplo n.º 2
0
function htmloutput($text)
{
    $text = smileys($text);
    $text = insertlinks($text);
    $text = flags($text);
    $text = replacement($text);
    $text = htmlnl($text);
    $text = nl2br($text);
    $text = $text;
    return $text;
}
Ejemplo n.º 3
0
function htmloutput($text) {
	$text = codereplace ( $text );
	$text = smileys ( $text );
	$text = replacement ( $text );
	$text = nl2br ( $text );
	
	return $text;
}