| 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/isvtg_v3/ |
Upload File : |
<!DOCTYPE html>
<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
/******************************
Project: Srbija AMS
Version: 2018-12-21
Author : M. Kukic
Note :
******************************/
//
include "config.php";
//
$mr = $_GET["mr"];
if ($mr==""){
$mr="0";
}
//db
/*
$host_name = 'localhost';
$user_name = 'misko';
$pass_word = 'skomi32';
$database_name = 'vtg';
$dbh = mysql_connect($host_name,$user_name,$pass_word) or die ('I cannot '.mysql_error());
mysql_select_db($database_name);
*/
//
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);
}
?>
<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>