HOME SHELL

NULLCOMMUNITY
 LiteSpeed
 Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64
 safemode : OFF
 MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF
  >  / home / cuneytsener53 / restaurant1.snrsoft.com.tr / xpanel /

Server Ip : 172.67.216.244




Filename/home/cuneytsener53/restaurant1.snrsoft.com.tr/xpanel/slider-sil.php
Size459
Permissionrw-r--r--
Owner
Create time02-Mar-2025 05:46
Last modified19-Nov-2020 10:07
Last accessed05-Apr-2025 10:23
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php



if ($_GET) {



include("inc/vt.php");




$sorgu = $dbh->prepare("SELECT * FROM banner Where id=:id");

$sorgu->execute(['id' => (int)$_GET["id"]]);

$sonuc = $sorgu->fetch();

unlink('../img/' . $sonuc["foto"]);



$where = ['id' => (int)$_GET['id']];

$durum = $dbh->prepare("DELETE FROM banner WHERE id=:id")->execute($where);



if ($durum) {

header("location:slider-liste.php");

}

}



?>