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/FindReplace/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /*---------------------------------------*\
Find and Replace Plugin for HTMLArea-3.0
-----------------------------------------
author: Cau guanabara
e-mail: caugb@ibest.com.br
\*---------------------------------------*/
function FindReplace(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton("FR-findreplace", this._lc("Find and Replace"),
editor.imgURL("ed_find.gif", "FindReplace"), false,
function(editor) { self.buttonPress(editor); });
cfg.addToolbarElement(["FR-findreplace","separator"], ["formatblock","fontsize","fontname"], -1);
}
FindReplace.prototype.buttonPress = function(editor) {
FindReplace.editor = editor;
var sel = editor.getSelectedHTML();
if(/\w/.test(sel)) {
sel = sel.replace(/<[^>]*>/g,"");
sel = sel.replace(/ /g,"");
}
var param = /\w/.test(sel) ? {fr_pattern: sel} : null;
editor._popupDialog("plugin://FindReplace/find_replace", null, param);
};
FindReplace._pluginInfo = {
name : "FindReplace",
version : "1.0 - beta",
developer : "Cau Guanabara",
developer_url : "mailto:caugb@ibest.com.br",
c_owner : "Cau Guanabara",
sponsor : "Independent production",
sponsor_url : "http://www.netflash.com.br/gb/HA3-rc1/examples/find-replace.html",
license : "htmlArea"
};
FindReplace.prototype._lc = function(string) {
return HTMLArea._lc(string, 'FindReplace');
}; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0042 ]-- |