403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/rasinweb/plotflgpx/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/rasinweb/plotflgpx/plot_trk.php
<!DOCTYPE html>
<!--
******************************
 Project: ReadGPX, 2021
 Version: PHP 5-7
 Author : M. Kukic
 Note   :
******************************

http://net-tim/www/plotgpx/plot_trk.php
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<meta http-equiv="refresh" content="60">
<title>Read GPX</title>
</head>
<body>

<?php
//
include "config.php";
//
$gpx = simplexml_load_file("trkdat.gpx");

echo "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='".$mw1."' height='".$mh1."'>";
echo "<rect width='".$mw1."' height='".$mh1."' fill='rgb(253,248,243)' stroke-width='1' stroke='rgb(0,0,0)' />";

echo "<g stroke='green'>";

foreach ($gpx->trk as $trk) {
    foreach($trk->trkseg as $seg){
        foreach($seg->trkpt as $pt){

			$lt=(float)$pt["lat"];
			$ln=(float)$pt["lon"];
			
			$alfa=$lt*$d2rad;
			$beta=$ln*$d2rad;
			//$alfa=deg2rad($lt);
			//$beta=deg2rad($ln);
			
			$xp=$er*$alfa;
			$rp=$er*cos($alfa);   			//Popravka
			$yp=$rp*$beta;
			
			$xe2=$dx1+$mh1-($xp-$la1)/$kpix1;
			$ye2=$dy1+($yp-$lo1)/$kpix1;		
			
			echo "<line x1=".$ye1." y1=".$xe1." x2=".$ye2." y2=".$xe2." />";	
			$xe1=$xe2;
			$ye1=$ye2;
        }
	}
}
echo "</g>";
unset($gpx);

$gpx = simplexml_load_file("spcdat.gpx");

echo "<g stroke='blue'>";

foreach ($gpx->wpt as $wp) {
		
			$lt=(float)$wp["lat"];
			$ln=(float)$wp["lon"];
			
			$alfa=$lt*$d2rad;
			$beta=$ln*$d2rad;
			//$alfa=deg2rad($lt);
			//$beta=deg2rad($ln);
			
			$xp=$er*$alfa;
			$rp=$er*cos($alfa);   			//Popravka
			$yp=$rp*$beta;
			
			$xe=$dx1+$mh1-($xp-$la1)/$kpix1;
			$ye=$dy1+($yp-$lo1)/$kpix1;	
	
			echo "<circle cx='".$ye."' cy='".$xe."' r='3' stroke='black' stroke-width='1' fill='red' />";

			foreach($wp->name as $name){
				//echo $name;			
			}	
			$xg=$xe-5;
			$yg=$ye+5;
			echo "<text x='".$yg."' y='".$xg."' font-size='10' font-family='monospace'>".$name."</text>";
}
echo "</g>";
unset($gpx);
?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit