Project

General

Profile

1
<?php
2

    
3
// $Id: search_convert.php 437 2007-03-03 13:24:20Z 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
Some special translations
29
*/
30
if(!defined('WB_URL')) {
31
	header('Location: ../index.php');
32
	exit(0);
33
}
34

    
35
//for Xinha, (htmlarea)
36
$string_conv=array(
37
	"?"=>"&Scaron;","?"=>"&scaron;","?"=>"&OElig;","?"=>"&oelig;","?"=>"&Yuml;",
38
	">"=>"&gt;","<"=>"&lt;",
39
	"?"=>"&bdquo;","?"=>"&bull;","?"=>"&circ;","&#925;"=>"&Nu;","&#957;"=>"&nu;",
40
	"&#931;"=>"&Sigma;","&#933;"=>"&Upsilon;","&#965;"=>"&upsilon;",
41
	"&#918;"=>"&Zeta;","&#950;"=>"&zeta;","&#958;"=>"&xi;","&#914;"=>"&Beta;","&#946;"=>"&beta;",
42
	"&#8734;"=>"&infin;","&#8596;"=>"&harr;","&#8260;"=>"&frasl;","&#919;"=>"&Eta;","&#951;"=>"&eta;",
43
	"&#935;"=>"&Chi;","&#8745;"=>"&cap;","&and;"=>"&#8743;","&#913;"=>"&Alpha;","&#945;"=>"&alpha;",
44
	"&#8776;"=>"&asymp;","?"=>"&trade;","?"=>"&tilde;","&#8804;"=>"&le;",
45
	"&#916;"=>"&Delta;","&#948;"=>"&delta;","?"=>"&euro;","?"=>"&fnof;",
46
	"&#915;"=>"&Gamma;","&#947;"=>"&gamma;","&#8805;"=>"&ge;","&#9829;"=>"&hearts;",
47
	"?"=>"&hellip;","&#8747;"=>"&int;","&#921;"=>"&Iota;","&#953;"=>"&iota;",
48
	"&#922;"=>"&Kappa;","&#954;"=>"&kappa;","&#923;"=>"&Lambda;","&#955;"=>"&lambda;",
49
	"&#8592;"=>"&larr;","?"=>"&ldquo;","&#9674;"=>"&loz;",
50
	"?"=>"&lsaquo;","?"=>"&lsquo;","?"=>"&mdash;","&#8800;"=>"&ne;",
51
	"&#8722;"=>"&minus;","&#924;"=>"&Mu;","&#956;"=>"&mu;","?"=>"&ndash;",
52
	"&#8254;"=>"&oline;","&#937;"=>"&Omega;","&#969;"=>"&omega;","&#959;"=>"&omicron;",
53
	"&#934;"=>"&Phi;","&#966;"=>"&phi;","&#928;"=>"&Pi;","&#960;"=>"&pi;","&#8706;"=>"&part;",
54
	"?"=>"&permil;","&#8243;"=>"&Prime;","&#8242;"=>"&prime;","&#8719;"=>"&prod;",
55
	"&#936;"=>"&Psi;","&#8730;"=>"&radic;","&#8658;"=>"&rArr;","&#8594;"=>"&rarr;",
56
	"?"=>"&rdquo;","&#929;"=>"&Rho;","&#961;"=>"&rho;",
57
	"?"=>"&rsaquo;","?"=>"&rsquo;","?"=>"&sbquo;",
58
	"&#963;"=>"&sigma;","&#962;"=>"&sigmaf;","&#9824;"=>"&spades;","&#8721;"=>"&sum;",
59
	"&#932;"=>"&Tau;","&#964;"=>"&tau;","&#920;"=>"&Theta;","&#952;"=>"&theta;",
60
	"&#8593;"=>"&uarr;","&#926;"=>"&Xi;"
61
);
62

    
63
//for fckeditor, (tiny_mce)
64
$string_entities_conv=array(
65
	"&#140;"=>"&OElig;","&#156;"=>"&oelig;","&#138;"=>"&Scaron;","&#154;"=>"&scaron;",
66
	"&#159;"=>"&Yuml;",
67
	"&#152;"=>"&tilde;","&upsih;"=>"&#978;","&#149;"=>"&bull;","&#153;"=>"&trade;",
68
	"&#132;"=>"&bdquo;","&#136;"=>"&circ;","&#128;"=>"&euro;","&#131;"=>"&fnof;",
69
	"&#133;"=>"&hellip;","&lang;"=>"&#9001;","&lceil;"=>"&#8968;","&#147;"=>"&ldquo;",
70
	"&lfloor;"=>"&#8970;","&#150;"=>"&ndash;","&#151;"=>"&mdash;",
71
	"&#139;"=>"&lsaquo;","&#145;"=>"&lsquo;","&rfloor;"=>"&#8971;","&#148;"=>"&rdquo;",
72
	"&rceil;"=>"&#8969;","&rang;"=>"&#9002;","&piv;"=>"&#982;","&#137;"=>"&permil;",
73
	"&#155;"=>"&rsaquo;","&#146;"=>"&rsquo;","&#130;"=>"&sbquo;","&thetasym;"=>"&#977"
74
);
75

    
76
?>
(3-3/3)