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/Filter/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // Filter plugin for HTMLArea
// Implementation by Udo Schmal & Schaffrath NeueMedien
// Original Author - Udo Schmal
//
// (c) Udo Schmal & Schaffrath NeueMedien 2004
// Distributed under the same terms as HTMLArea itself.
// This notice MUST stay intact for use (see license.txt).
function Filter(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
// register the toolbar buttons provided by this plugin
cfg.registerButton({
id: "filter",
tooltip : this._lc("Filter"),
image : editor.imgURL("ed_filter.gif", "Filter"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
if (!cfg.Filters)
cfg.Filters = ["Paragraph","Word"];
for (var i = 0; i < editor.config.Filters.length; i++) {
self.add(editor.config.Filters[i]);
}
cfg.addToolbarElement("filter", "removeformat", 1);
}
Filter._pluginInfo =
{
name : "Filter",
version : "1.0",
developer : "Udo Schmal (gocher)",
developer_url : "",
sponsor : "L.N.Schaffrath NeueMedien",
sponsor_url : "http://www.schaffrath-neuemedien.de/",
c_owner : "Udo Schmal & Schaffrath-NeueMedien",
license : "htmlArea"
};
Filter.prototype.add = function(filterName) {
if(eval('typeof ' + filterName) == 'undefined') {
var filter = _editor_url + "plugins/filter/filters/" + filterName + ".js";
var head = document.getElementsByTagName("head")[0];
var evt = HTMLArea.is_ie ? "onreadystatechange" : "onload";
var script = document.createElement("script");
script.type = "text/javascript";
script.src = filter;
script[evt] = function() {
if(HTMLArea.is_ie && !/loaded|complete/.test(window.event.srcElement.readyState)) return;
}
head.appendChild(script);
//document.write("<script type='text/javascript' src='" + plugin_file + "'></script>");
}
};
Filter.prototype._lc = function(string) {
return HTMLArea._lc(string, 'Filter');
};
Filter.prototype.buttonPress = function(editor) {
var html = editor.getInnerHTML();
for (var i = 0; i < editor.config.Filters.length; i++) {
html = eval(editor.config.Filters[i])(html);
}
editor.setHTML(html);
}; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0042 ]-- |