403Webshell
Server IP : 5.129.245.98  /  Your IP : 216.73.216.246
Web Server : Apache/2.4.66 (Debian)
System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/rehub-theme/shortcodes/tinyMCE/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/rehub-theme/shortcodes/tinyMCE/tinyMCE_script.js
(function() {

var d = new Date();

var month = d.getMonth()+1;
var day = d.getDate();

var outputdate = d.getFullYear() + '.' +
    (month<10 ? '0' : '') + month + '.' +
    (day<10 ? '0' : '') + day;	

	tinymce.create('tinymce.plugins.Addshortcodes', {
		init : function(ed, url) {

			ed.addButton('contents', {  
				title : 'Auto contents',  
				image : url+'/images/contents.png',  
				onclick : function() {
					//if(ed.selection.getContent().length > 0)				
					ed.selection.setContent('[contents h2]');  
				}  
			}); 

			ed.addButton('sticky', {  
				title : 'Sticky auto contents',  
				image : url+'/images/post_images.png',  
				onclick : function() {
					//if(ed.selection.getContent().length > 0)				
					ed.selection.setContent('[wpsm_stickypanel][contents h2][/wpsm_stickypanel]');  
				}  
			}); 										 
			
			ed.addButton('toplist', {  
				title : 'Top list',  
				image : url+'/images/star.png',  
				onclick : function() {
					//if(ed.selection.getContent().length > 0)				
					ed.selection.setContent('[wpsm_toplist]');  
				}  
			});

			ed.addButton('linkhider', {  
				title : 'Hidden link from google',  
				image : url+'/images/link.png',  
				onclick : function() {
					//if(ed.selection.getContent().length > 0)				
					ed.selection.setContent('[wpsm_hidelink text="" link=""]');  
				}  
			});				

			ed.addButton('update', {  
				title : 'Update notice',  
				image : url+'/images/update.png',  
				onclick : function() {
					//if(ed.selection.getContent().length > 0)				
					ed.selection.setContent('[wpsm_update date="' + outputdate + '" label="Update"][/wpsm_update]');  
				}  
			});	

			ed.addButton('award', {  
				title : 'Cup Icon',  
				image : url+'/images/award.png',  
				onclick : function() {
					//if(ed.selection.getContent().length > 0)				
					ed.selection.setContent('🏆');  
				}  
			}); 

			ed.addButton('rh_short_gen', {  
				title : 'Shortcode Generator',  
				image : url+'/images/icon.png',  
				onclick : function(e) {				
					e.preventDefault();
					var element = document.getElementById("wpsm-generator-wrap");
    				element.classList.toggle("active");      				
    				//actualCaretPositionBookmark = ed.selection.getBookmark();
				}  
			});								
								  			
		},
	});
	tinymce.PluginManager.add('wpsm_shortcode', tinymce.plugins.Addshortcodes);	
	
})();

Youez - 2016 - github.com/yon3zu
LinuXploit