| 
      1
     | 
    
      <?php
 
     | 
  
  
    | 
      2
     | 
    
      
 
     | 
  
  
    | 
      3
     | 
    
      // $Id: convert.php 399 2006-12-24 07:50:44Z Ruebenwurzel $
 
     | 
  
  
    | 
      4
     | 
    
      
 
     | 
  
  
    | 
      5
     | 
    
      /*
 
     | 
  
  
    | 
      6
     | 
    
      
 
     | 
  
  
    | 
      7
     | 
    
       Website Baker Project <http://www.websitebaker.org/>
 
     | 
  
  
    | 
      8
     | 
    
       Copyright (C) 2004-2007, Ryan Djurovich
 
     | 
  
  
    | 
      9
     | 
    
      
 
     | 
  
  
    | 
      10
     | 
    
       Website Baker is free software; you can redistribute it and/or modify
 
     | 
  
  
    | 
      11
     | 
    
       it under the terms of the GNU General Public License as published by
 
     | 
  
  
    | 
      12
     | 
    
       the Free Software Foundation; either version 2 of the License, or
 
     | 
  
  
    | 
      13
     | 
    
       (at your option) any later version.
 
     | 
  
  
    | 
      14
     | 
    
      
 
     | 
  
  
    | 
      15
     | 
    
       Website Baker is distributed in the hope that it will be useful,
 
     | 
  
  
    | 
      16
     | 
    
       but WITHOUT ANY WARRANTY; without even the implied warranty of
 
     | 
  
  
    | 
      17
     | 
    
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
     | 
  
  
    | 
      18
     | 
    
       GNU General Public License for more details.
 
     | 
  
  
    | 
      19
     | 
    
      
 
     | 
  
  
    | 
      20
     | 
    
       You should have received a copy of the GNU General Public License
 
     | 
  
  
    | 
      21
     | 
    
       along with Website Baker; if not, write to the Free Software
 
     | 
  
  
    | 
      22
     | 
    
       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
     | 
  
  
    | 
      23
     | 
    
      
 
     | 
  
  
    | 
      24
     | 
    
      */
 
     | 
  
  
    | 
      25
     | 
    
      
 
     | 
  
  
    | 
      26
     | 
    
      /*
 
     | 
  
  
    | 
      27
     | 
    
      Character Conversion file
 
     | 
  
  
    | 
      28
     | 
    
      This file helps convert possible error-causing
 
     | 
  
  
    | 
      29
     | 
    
      characters to equivalent non-error-causing ones
 
     | 
  
  
    | 
      30
     | 
    
      */
 
     | 
  
  
    | 
      31
     | 
    
      if(!defined('WB_URL')) {
     | 
  
  
    | 
      32
     | 
    
      	header('Location: ../index.php');
     | 
  
  
    | 
      33
     | 
    
      	exit(0);
 
     | 
  
  
    | 
      34
     | 
    
      }
 
     | 
  
  
    | 
      35
     | 
    
      
 
     | 
  
  
    | 
      36
     | 
    
      $conversion_array = array(
 
     | 
  
  
    | 
      37
     | 
    
      'À'=>'A','�?'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'Ae', 'Ä'=>'A',
 
     | 
  
  
    | 
      38
     | 
    
      'Å'=>'A','Ā'=>'A','Ą'=>'A','Ă'=>'A', 'Æ'=>'Ae',
 
     | 
  
  
    | 
      39
     | 
    
      'Ç'=>'C','Ć'=>'C','Č'=>'C','Ĉ'=>'C','Ċ'=>'C',
 
     | 
  
  
    | 
      40
     | 
    
      'Ď'=>'D','�?'=>'D','�?'=>'D',
 
     | 
  
  
    | 
      41
     | 
    
      'È'=>'E','É'=>'E','Ê'=>'E','Ë'=>'E','Ē'=>'E',
 
     | 
  
  
    | 
      42
     | 
    
      'Ę'=>'E','Ě'=>'E','Ĕ'=>'E','Ė'=>'E',
 
     | 
  
  
    | 
      43
     | 
    
      'Ĝ'=>'G','Ğ'=>'G','Ġ'=>'G','Ģ'=>'G',
 
     | 
  
  
    | 
      44
     | 
    
      'Ĥ'=>'H','Ħ'=>'H',
 
     | 
  
  
    | 
      45
     | 
    
      'Ì'=>'I','�?'=>'I','Î'=>'I','�?'=>'I','Ī'=>'I', 'Ĩ'=>'I','Ĭ'=>'I','Į'=>'I','İ'=>'I',
 
     | 
  
  
    | 
      46
     | 
    
      'IJ'=>'IJ','Ĵ'=>'J','Ķ'=>'K',
 
     | 
  
  
    | 
      47
     | 
    
      '�?'=>'K','Ľ'=>'K','Ĺ'=>'K','Ļ'=>'K','Ŀ'=>'K',
 
     | 
  
  
    | 
      48
     | 
    
      'Ñ'=>'N','Ń'=>'N','Ň'=>'N','Ņ'=>'N','Ŋ'=>'N',
 
     | 
  
  
    | 
      49
     | 
    
      'Ò'=>'O','Ó'=>'O','Ô'=>'O','Õ'=>'O','Ö'=>'Oe',
 
     | 
  
  
    | 
      50
     | 
    
      'Ö'=>'Oe', 'Ø'=>'O','Ō'=>'O','�?'=>'O','Ŏ'=>'O',
 
     | 
  
  
    | 
      51
     | 
    
      'Œ'=>'OE', 'Ŕ'=>'R','Ř'=>'R','Ŗ'=>'R',
 
     | 
  
  
    | 
      52
     | 
    
      'Ś'=>'S','Š'=>'S','Ş'=>'S','Ŝ'=>'S','Ș'=>'S',
 
     | 
  
  
    | 
      53
     | 
    
      'Ť'=>'T','Ţ'=>'T','Ŧ'=>'T','Ț'=>'T',
 
     | 
  
  
    | 
      54
     | 
    
      'Ù'=>'U','Ú'=>'U','Û'=>'U','Ü'=>'Ue','Ū'=>'U',
 
     | 
  
  
    | 
      55
     | 
    
      'Ü'=>'Ue', 'Ů'=>'U','Ű'=>'U','Ŭ'=>'U','Ũ'=>'U','Ų'=>'U',
 
     | 
  
  
    | 
      56
     | 
    
      'Ŵ'=>'W', '�?'=>'Y','Ŷ'=>'Y','Ÿ'=>'Y', 'Ź'=>'Z','Ž'=>'Z','Ż'=>'Z',
 
     | 
  
  
    | 
      57
     | 
    
      'Þ'=>'T','Þ'=>'T', 'à'=>'a','á'=>'a','â'=>'a','ã'=>'a','ä'=>'ae',
 
     | 
  
  
    | 
      58
     | 
    
      'ä'=>'ae', 'å'=>'a','�?'=>'a','ą'=>'a','ă'=>'a',
 
     | 
  
  
    | 
      59
     | 
    
      'æ'=>'ae', 'ç'=>'c','ć'=>'c','�?'=>'c','ĉ'=>'c','ċ'=>'c',
 
     | 
  
  
    | 
      60
     | 
    
      '�?'=>'d','đ'=>'d','ð'=>'d', 'è'=>'e','é'=>'e','ê'=>'e','ë'=>'e','ē'=>'e',
 
     | 
  
  
    | 
      61
     | 
    
      'ę'=>'e','ě'=>'e','ĕ'=>'e','ė'=>'e', 'ƒ'=>'f',
 
     | 
  
  
    | 
      62
     | 
    
      '�?'=>'g','ğ'=>'g','ġ'=>'g','ģ'=>'g', 'ĥ'=>'h','ħ'=>'h',
 
     | 
  
  
    | 
      63
     | 
    
      'ì'=>'i','í'=>'i','î'=>'i','ï'=>'i','ī'=>'i', 'ĩ'=>'i','ĭ'=>'i','į'=>'i','ı'=>'i',
 
     | 
  
  
    | 
      64
     | 
    
      'ij'=>'ij', 'ĵ'=>'j', 'ķ'=>'k','ĸ'=>'k', 'ł'=>'l','ľ'=>'l','ĺ'=>'l','ļ'=>'l','ŀ'=>'l',
 
     | 
  
  
    | 
      65
     | 
    
      'ñ'=>'n','ń'=>'n','ň'=>'n','ņ'=>'n','ʼn'=>'n', 'ŋ'=>'n',
 
     | 
  
  
    | 
      66
     | 
    
      'ò'=>'o','ó'=>'o','ô'=>'o','õ'=>'o','ö'=>'oe', 'ö'=>'oe',
 
     | 
  
  
    | 
      67
     | 
    
      'ø'=>'o','�?'=>'o','ő'=>'o','�?'=>'o', 'œ'=>'oe', 'ŕ'=>'r','ř'=>'r','ŗ'=>'r',
 
     | 
  
  
    | 
      68
     | 
    
      'š'=>'s', 'ù'=>'u','ú'=>'u','û'=>'u','ü'=>'ue','ū'=>'u', 'ü'=>'ue',
 
     | 
  
  
    | 
      69
     | 
    
      'ů'=>'u','ű'=>'u','ŭ'=>'u','ũ'=>'u','ų'=>'u', 'ŵ'=>'w',
 
     | 
  
  
    | 
      70
     | 
    
      'ý'=>'y','ÿ'=>'y','ŷ'=>'y', 'ž'=>'z','ż'=>'z','ź'=>'z', 'þ'=>'t', 'ß'=>'ss', 'ſ'=>'ss',
 
     | 
  
  
    | 
      71
     | 
    
      'ä'=>'ae', 'ö'=>'oe', 'ü'=>'ue', 'Ä'=>'Ae', 'Ö'=>'Oe', 'Ü'=>'Ue'
 
     | 
  
  
    | 
      72
     | 
    
      );
 
     | 
  
  
    | 
      73
     | 
    
      
 
     | 
  
  
    | 
      74
     | 
    
      ?>
 
     |