HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/zaklada/wp-content/plugins/wordpress-seo/vendor/yoast/license-manager/views/script.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	header( 'HTTP/1.0 403 Forbidden' );
	die;
} 
?><script type="text/javascript">
(function($) {
	
	if( typeof YoastLicenseManager !== "undefined" ) {
		return;
	}

	window.YoastLicenseManager = (function () {

		function init() {
			var $keyInputs = $(".yoast-license-key-field.yoast-license-obfuscate");
			var $actionButtons = $('.yoast-license-toggler button');
			var $submitButtons = $('input[type="submit"], button[type="submit"]');

			$submitButtons.click( addDisableEvent );
			$actionButtons.click( actOnLicense );
			$keyInputs.click( setEmptyValue );
		}

		function setEmptyValue() {
			if( ! $(this).is('[readonly]') ) {
				$(this).val('');
			}
		}

		function actOnLicense() {
			var $formScope = $(this).closest('form');
			var $actionButton = $formScope.find('.yoast-license-toggler button');

			// fake input field with exact same name => value			
			$("<input />")
				.attr('type', 'hidden')
				.attr( 'name', $(this).attr('name') )
				.val( $(this).val() )
				.appendTo( $formScope );

			// change button text to show we're working..
			var text = ( $actionButton.hasClass('yoast-license-activate') ) ? "Activating..." : "Deactivating...";
			$actionButton.text( text );
		}

		function addDisableEvent() {
			var $formScope = $(this).closest('form');
			$formScope.submit(disableButtons);
		}

		function disableButtons() {
			var $formScope = $(this).closest('form');
			var $submitButton = $formScope.find('input[type="submit"], button[type="submit"]');
			$submitButton.prop( 'disabled', true );
		}

		return {
			init: init
		}
	
	})();

	YoastLicenseManager.init();

})(jQuery);
</script>