MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/public_html/india/wp-content/plugins/wptouch/include/js/desktop-switch.js
function wptouchGetXMLHttpRequestObject() {
    if ( window.XMLHttpRequest ) {
        return new XMLHttpRequest();
    } else if ( window.ActiveXObject ) { // Older IE.
		try {
        	return new ActiveXObject( "MSXML2.XMLHTTP.3.0" );
        }
		catch( ex ) {
			return null;
		}
    }
}

var wptouchAjaxRequest = wptouchGetXMLHttpRequestObject();

function wptouchAsyncHandler() {
    if ( wptouchAjaxRequest.readyState == 4 ) {
        if ( wptouchAjaxRequest.status == 200 ) {
			var domElement = document.getElementById( 'wptouch_desktop_switch' );
			if ( domElement != null ) {
				domElement.innerHTML = wptouchAjaxRequest.responseText;
			}        	
        }
    }
}

if ( wptouchAjaxRequest != null ) {
	wptouchAjaxRequest.open( 'POST', wptouchAjaxUrl, true );
	wptouchAjaxRequest.onreadystatechange = wptouchAsyncHandler;
	wptouchAjaxRequest.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest' );
	wptouchAjaxRequest.setRequestHeader( 'Content-type', 'application/x-www-form-urlencoded' );
	wptouchAjaxRequest.send( 'action=wptouch_client_ajax&wptouch_action=desktop_switch&wptouch_nonce=' + encodeURIComponent( wptouchAjaxNonce ) + '&wptouch_switch_location=' + encodeURIComponent( wptouchAjaxSwitchLocation ) );	
}