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/InsertSmiley/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /*---------------------------------------*\
Insert Smiley Plugin for HTMLArea-3.0
-----------------------------------------
author: Ki Master George
e-mail: kimastergeorge@gmail.com
\*---------------------------------------*/
function InsertSmiley(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
// register the toolbar buttons provided by this plugin
cfg.registerButton({
id : "insertsmiley",
tooltip : this._lc("Insert Smiley"),
image : editor.imgURL("ed_smiley.gif", "InsertSmiley"),
textMode : false,
action : function(editor) {
self.buttonPress(editor);
}
});
cfg.addToolbarElement("insertsmiley", "inserthorizontalrule", 1);
}
InsertSmiley._pluginInfo = {
name : "InsertSmiley",
version : "1.0",
developer : "Ki Master George",
developer_url : "http://kimastergeorge.i4host.com/",
c_owner : "Ki Master George",
sponsor : "Ki Master George",
sponsor_url : "http://kimastergeorge.i4host.com/",
license : "htmlArea"
};
InsertSmiley.prototype._lc = function(string) {
return HTMLArea._lc(string, 'InsertSmiley');
};
InsertSmiley.prototype.buttonPress = function(editor) {
var self = this;
var sel = editor.getSelectedHTML().replace(/(<[^>]*>| |\n|\r)/g,"");
var param = new Object();
param.editor = editor;
param.editor_url = _editor_url;
if(param.editor_url == "../") {
param.editor_url = document.URL;
param.editor_url = param.editor_url.replace(/^(.*\/).*\/.*$/g, "$1");
}
editor._popupDialog("plugin://InsertSmiley/insertsmiley", function(param) {
editor.insertHTML("<img src=\"" + param.imgURL + "\" alt=\"Smiley\" />");
}, param);
}; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0187 ]-- |