/[pliva-si]/inc/fix_msshit.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/fix_msshit.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dpavlin, Sun Jul 22 18:02:40 2001 UTC revision 1.2 by dpavlin, Thu Mar 28 14:00:59 2002 UTC
# Line 33  function fix_msshit($s) { Line 33  function fix_msshit($s) {
33          $s=str_replace('	','\t',$s);          $s=str_replace('	','\t',$s);
34  #       $s=str_replace(' ',' ',$s);  #       $s=str_replace(' ',' ',$s);
35  #       $s=str_replace('&','&',$s);  #       $s=str_replace('&','&',$s);
36            $s=str_replace('Š','©',$s);
37            $s=str_replace('š','¹',$s);
38    
39          $s=strtr($s,'šðžèæŠÐŽÈÆ','¹ð¾èæ©Ð®ÈÆ'); # 1250 -> iso8859-2          $s=strtr($s,'šðžèæŠÐŽÈÆ','¹ð¾èæ©Ð®ÈÆ'); # 1250 -> iso8859-2
40    
# Line 41  function fix_msshit($s) { Line 43  function fix_msshit($s) {
43    
44          // nuke <html>          // nuke <html>
45          $s=ereg_replace('</*html>','',$s);          $s=ereg_replace('</*html>','',$s);
46            $s=ereg_replace('^.*<body>','',$s);
47            $s=ereg_replace('</body>.*$','',$s);
48    
49          return $s;          return $s;
50  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26