Subversion Repositories oidinfo_new_design

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. $files = glob(__DIR__.'/../*.htm');
  4. $files = array_merge($files,glob(__DIR__.'/../doc/*.htm'));
  5. $files = array_merge($files,glob(__DIR__.'/../gestion/*.htm'));
  6. $files = array_merge($files,glob(__DIR__.'/../errors/*.htm'));
  7.  
  8. foreach ($files as $file) {
  9.  
  10.         if (strpos($file,'captured-standards') !== false) continue;
  11.         if (strpos($file,'/TD') !== false) continue;
  12.         if (strpos($file,'/doc/iso-') !== false) continue;
  13.         if (strpos($file,'/doc/bosn010_object-identification-and-registration.htm') !== false) continue;
  14.         if (strpos($file,'/doc/OID-tutorial.htm') !== false) continue;
  15.  
  16.         if (filesize($file) > 1*1024*1024) continue;
  17.  
  18.         $content = file_get_contents($file);
  19.  
  20.         for ($i=0;$i<strlen($content);$i++) {
  21.                 $c = $content[$i];
  22.                 if (ord($c) > 0x7F) {
  23.                         echo "$file\n";
  24.                         echo $c;
  25.                         echo substr($content,$i,$i+10);
  26.                 }
  27.         }
  28. }
  29.  
  30. echo "Done.\n";
  31.