403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.206
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 :  /home/miskoftp/WEB-Programi/InfoCA/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/miskoftp/WEB-Programi/InfoCA/ams_lis.php
<!DOCTYPE html>
<!--
******************************
 Project: InfoCA, 2021
 Version: PHP 5-7
 Author : M. Kukic, TIM-CA
 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>InfoCA</title>
</head>
<body>
<div style="width:720px; word-wrap:break-word;">

<?php
//
$stn = $_GET["stn"];
include "config.php";
$st=(int)substr($stn,-1);
$cc=$amsnam[$st];
//
include "hed.php";
//
		$sql = "SELECT * FROM datalog WHERE amsid='".$stn."' ORDER BY dattim DESC LIMIT 10";
		//$sql = "SELECT * FROM datalog WHERE amsid='CA1' ORDER BY dattim DESC LIMIT 10";
		$result = mysqli_query($dbh, $sql) or die (mysqli_error($dbh));
		$nuz = mysqli_num_rows($result);
		
		echo "Meteo i AQI statistika: <b>".$stn." * ".$cc." / Uzoraka ".$nuz."</b>";
		echo "<br><br>";
				
			echo "<table style='background-color:#F0F8FF; width:720px; margin:0 auto;'>";
			echo "<tr>";
				echo "<th>Br.</th>";
				echo "<th>Vreme</th>";
				echo "<th>Temp</th>";
				echo "<th>Humi</th>";
				echo "<th>Baro</th>";
				echo "<th>Sun</th>";
				echo "<th>Wind</th>";
				echo "<th>CO</th>";
				//echo "<th>CO2</th>";
				echo "<th>PM2.5</th>";
				echo "<th>PM10</th>";
			echo "</tr>";
			
			for ($i = 1; $i<($nuz+1); $i++) {				
				
				$row = mysqli_fetch_array($result);
				//
				echo "<tr>";
				echo "<td>".$i."</td>";
				$dt=$row['dattim'];
				$go=substr($dt,0,4);
				$me=substr($dt,5,2);
				$da=substr($dt,8,2);
				$vr=substr($dt,11,5);
				echo "<td>".$da."/".$me."/".$go." - ".$vr."</td>";
				
				echo "<td>".$row['temp']."</td>";
				echo "<td>".$row['humi']."</td>";
				echo "<td>".$row['baro']."</td>";
				echo "<td>".$row['sun']."</td>";
				echo "<td>".$row['wind']."</td>";
				echo "<td>".$row['co']."</td>";
				//echo "<td>".$row['co2']."</td>";
				echo "<td>".$row['pm25']."</td>";
				echo "<td>".$row['pm10']."</td>";
				echo "</tr>";
			}
			echo "</table>";
            echo "<br>";
//
mysqli_close($dbh);

$ico=64;
	echo "<div style=padding-bottom:5px;'>";
	echo "<b>Grafika:</b>";
	echo "</div>";
	echo "<div style='width:720px; margin:0 auto;'>";
	echo "<div align=center>";
	echo "<a href=graf-t.php?stn=".$stn."><img src='img/graf-t.png' width='".$ico."' height=''></a><img src='img/b_white-2.png'>";
	echo "<a href=graf-b.php?stn=".$stn."><img src='img/graf-b.png' width='".$ico."' height=''></a><img src='img/b_white-2.png'>";
	echo "<a href=graf-h.php?stn=".$stn."><img src='img/graf-h.png' width='".$ico."' height=''></a><img src='img/b_white-2.png'>";
	echo "<a href=graf-s.php?stn=".$stn."><img src='img/graf-s.png' width='".$ico."' height=''></a><img src='img/b_white-2.png'>";
	echo "<a href=graf-c.php?stn=".$stn."><img src='img/graf-c.png' width='".$ico."'></a><img src='img/b_white-2.png'>";
	echo "<a href=graf-p.php?stn=".$stn."><img src='img/graf-p.png' width='".$ico."'></a><img src='img/b_white-2.png'>";
	echo "<a href=graf-f.php?stn=".$stn."><img src='img/graf-f.png' width='".$ico."'></a><img src='img/b_white-2.png'>";
	echo "<a href=lista.php?stn=".$stn."><img src='img/graf-l.png' width='".$ico."' height=''></a>";
	echo "</div>";

?>
<hr>
</table>
</div>
<img src="img/b_white-2.png">
<a href="javascript:history.go(-1)"><img src="img/r_ret.png" width="" height="48"></a>
</div>
<?php include "fut.php";?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit