403Webshell
Server IP : 77.39.210.126  /  Your IP : 216.73.216.203
Web Server : Apache
System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64
User : artecasarepresti ( 1022)
PHP Version : 7.4.33
Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/artecasarepresti/public_html/wp-content/plugins/popups/admin/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/artecasarepresti/public_html/wp-content/plugins/popups/admin/assets/js/spu-tinymce.js
(function( $ ) {
	'use strict';


    tinymce.create('tinymce.plugins.SPU', {
        init : function(ed, url) {
            ed.addButton('spu_button', {
                title : 'Add Popup',
                cmd : 'spu_button',
                image : url+'/popup.png'
            });
            ed.addCommand('spu_button', function() {

                jQuery('#spu_editor').dialog({
                    height: 500,
                    width: '600px',
                    buttons: {
                        "Insert Shortcode": function() {

                            var spu_id = jQuery('#spu-posts').val();
							var str = "";

                            str = '[spu popup="'+spu_id+'"';
                            var selected_text = ed.selection.getContent();
                            if (selected_text) {

                                str += "]" + selected_text + "[/spu]";

                            } else {

                                str += "]YOUR TEXT OR IMG HERE[/spu]";

                            }


                            var Editor = tinyMCE.get('content');
                            Editor.focus();
                            Editor.selection.setContent(str);


                            jQuery( this ).dialog( "close" );
                        },
                        Cancel: function() {
                            jQuery( this ).dialog( "close" );
                        }
                    }
                }).dialog('open');

            });
        },
        createControl : function(n, cm) {
            return null;
        },
        getInfo : function() {
            return {
                longname : 'Popups Button',
                author : 'Damian Logghe',
                authorurl : 'https://timersys.com',
                infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
                version : "0.1"
            };
        }
    });
    tinymce.PluginManager.add('spu', tinymce.plugins.SPU);
})( jQuery );

Youez - 2016 - github.com/yon3zu
LinuXploit