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/UnFormat/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // Unormat plugin for HTMLArea
function UnFormat(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton({
id : "unformat",
tooltip : this._lc("Page Cleaner"),
image : editor.imgURL("unformat.gif", "UnFormat"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
cfg.addToolbarElement("unformat", "killword", 1);
}
UnFormat._pluginInfo = {
name : "UnFormat",
version : "1.0",
license : "htmlArea"
};
UnFormat.prototype._lc = function(string) {
return HTMLArea._lc(string, 'UnFormat');
};
UnFormat.prototype.buttonPress = function(editor){
editor._popupDialog( "plugin://UnFormat/unformat", function( param){
if (param) {
if (param["cleaning_area"] == "all") {
var html = editor._doc.body.innerHTML;
} else {
var html = editor.getSelectedHTML();
}
if (param["html_all"]== true) {
html = html.replace(/<[\!]*?[^<>]*?>/g, "");
}
if (param["formatting"] == true) {
html = html.replace(/style="[^"]*"/gi, "");
html = html.replace(/<\/?font[^>]*>/gi,"");
html = html.replace(/<\/?b>/gi,"");
html = html.replace(/<\/?strong[^>]*>/gi,"");
html = html.replace(/<\/?i>/gi,"");
html = html.replace(/<\/?em[^>]*>/gi,"");
html = html.replace(/<\/?u[^>]*>/gi,"");
html = html.replace(/<\/?strike[^>]*>/gi,"");
html = html.replace(/ align=[^\s|>]*/gi,"");
html = html.replace(/ class=[^\s|>]*/gi,"");
}
if (param["cleaning_area"] == "all") {
editor._doc.body.innerHTML = html;
} else {
editor.insertHTML(html);
}
} else { return false; }
}, null);
}; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.004 ]-- |