HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/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>