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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/projects/meteoca/graph-b.php
<!DOCTYPE html>
<!--
******************************
 Project: MeteoCA, 2017-2020
 Version: PHP-7
 Author : M. Kukic
 Note   :  
******************************
-->
<html>
<head>
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<title>AMS METEOCA</title>
<script>var dan = new Date();
document.write('CET '+dan.getDate()+'.'+(dan.getMonth()+1)+'.'+dan.getFullYear()+'. - '+dan.getHours()+':'+dan.getMinutes()+':'+dan.getSeconds());
</script>
</head>
<body>
<div style="width:640px; word-wrap:break-word;">

<?php
//
include "config.php";
//
// GET metod prenosa
$st = $_GET["st"];

echo "
<hr>
<fieldset>
    <legend><h3>Mreza AMS - &#268;a&#269;ak</h3></legend>
<table border=\"0\"></fieldset>";

echo "<b>Atmosferski pritisak [mb]</b><br><br>";

/*
    $sql = "SELECT * FROM ams WHERE amsid='".$ams[$st]."'";
    $result = mysqli_query($dbh, $sql) or die(mysqli_error());
    $row = mysqli_fetch_array($result);
	$name=$row['name'];
	$msl=$row['msl'];
	$pn=$row['pn'];
	$gn=$row['gsirina'];
	$ge=$row['gduzina'];
*/

$pn=$amspn[$st];

    $sql = "SELECT * FROM ".$data[$st]." ORDER BY tim ASC";
    $result=mysqli_query($dbh,$sql) or die(mysqli_error());
	$numofrows=mysqli_num_rows($result);
	
	echo "AMS ".$amsnam[$st]." Sm ".$numofrows;
    $xst=24;
	if ($numofrows>24) $xst=12;
	if ($numofrows>48) $xst=6;
	if ($numofrows>96) $xst=2;
	
echo "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='576' height='440'>";
echo "<rect width='576' 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 < 576; $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;
//
echo"<g stroke='gray'>";
echo "<line x1='0' y1='".$dp0."' x2='576' y2='".$dp0."' />";   
echo "<line x1='0' y1='".$dpn."' x2='576' y2='".$dpn."' />";   
echo "<line x1='0' y1='".$ds1."' x2='576' y2='".$ds1."' />";   
echo "<line x1='0' y1='".$ds2."' x2='576' 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='566' y='410'>t</text>";
//
echo "<g stroke='blue'>";
                $k=0;
                $row = mysqli_fetch_array($result);
				$y1=420-($row['baro']-$dy)*$h;		
			for ($x = 0; $x < 576; $x=$x+$xst) { 
				$k++;
				$row = mysqli_fetch_array($result);
				$x1=$x;
				$x2=$x+$xst;
				$y2=420-($row['baro']-$dy)*$h;
                if ($k<$numofrows)
                {				
				echo "<line x1=".$x1." y1=".$y1." x2=".$x2." y2=".$y2." />";
				}
				$y1=$y2;
			}
echo"<g stroke='gray'>";
echo "<text x='5' y='439'>AMS ".$ams[$st]." Time ".$ts." # ".$te."</text>";		
echo "</g>";
echo "</svg>";
mysqli_close($dbh);
?>

<hr>
<a href="javascript:history.go(-1)"><img src="img/back.png"></a><a href='ams.php'><img src='img/hom.png'><a href="wemos-d1.htm"><img src="img/info.png"></a>
</div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit