Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/local/webmail2/plugins/html_mail/htmlarea/plugins/HtmlEntities/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /*------------------------------------------*\
HtmlEntities for Xinha
____________________
Intended to faciliate the use of special characters with ISO 8 bit encodings.
Using the conversion map provided by mharrisonline in ticket #127
If you want to adjust the list, e.g. to except the characters that are available in the used charset,
edit Entities.js.
You may save it under a different name using the xinha_config.HtmlEntities.EntitiesFile variable
ISO-8859-1 preset is default, set
xinha_config.HtmlEntities.Encoding = null;
if you want all special characters to be converted or want to load a custom file
\*------------------------------------------*/
function HtmlEntities(editor) {
this.editor = editor;
}
HtmlEntities._pluginInfo = {
name : "HtmlEntities",
version : "1.0",
developer : "Raimund Meyer",
developer_url : "http://rheinauf.de",
c_owner : "Xinha community",
sponsor : "",
sponsor_url : "",
license : "Creative Commons Attribution-ShareAlike License"
}
Xinha.Config.prototype.HtmlEntities =
{
Encoding : 'iso-8859-1',
EntitiesFile : _editor_url + "plugins/HtmlEntities/Entities.js"
}
HtmlEntities.prototype.onGenerate = function() {
var e = this.editor;
var url = (e.config.HtmlEntities.Encoding) ? _editor_url + "plugins/HtmlEntities/"+e.config.HtmlEntities.Encoding+".js" : e.config.HtmlEntities.EntitiesFile;
var callback = function (getback) {
var specialReplacements = e.config.specialReplacements;
eval("var replacements =" + getback);
for (var i in replacements)
{
specialReplacements[i] = replacements[i];
}
}
Xinha._getback(url,callback);
}
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0126 ]-- |