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 / kurumsal32.snrsoft.com.tr / admin / | Server Ip : 104.21.78.54 |
Filename | /home/cuneytsener53/kurumsal32.snrsoft.com.tr/admin/galeri-listele.php |
Size | 5.73 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 26-Jun-2022 00:19 |
Last accessed | 05-Apr-2025 09:50 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
include("include/baglan.php");
include("include/fonksiyonlar.php");
ob_start();
session_start();
oturumkontrolana();
if($_GET['sil']){
$idd=$_GET['sil'];
$resim_sorgu=$db->query("select * from galeri where id='$idd'")->fetch(PDO::FETCH_ASSOC);
unlink('../resimler/'.$resim_sorgu['resim']);
$simdi=$db->query("delete from galeri where id='$idd'")->fetch(PDO::FETCH_ASSOC);
}
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?=$ayar['site_description']?>">
<meta name="keywords" content="<?=$ayar['site_keyword']?>">
<meta name="author" content="<?=$ayar['site_author']?>">
<link rel="icon" type="image/png" href="../resimler/<?=$ayar['favicon']?>">
<title>Galeri Listele - <?=$ayar['site_title']?></title>
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,700,800&display=swap" rel="stylesheet">
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/plugins/font-awesome/css/all.min.css" rel="stylesheet">
<link href="assets/plugins/perfectscroll/perfect-scrollbar.css" rel="stylesheet">
<link href="assets/plugins/DataTables/datatables.min.css" rel="stylesheet">
<link href="assets/css/main.min.css" rel="stylesheet">
<link href="assets/css/custom.css" rel="stylesheet">
</head>
<body>
<div class="page-container">
<div class="page-header">
<?php include("include/header.php");?>
</div>
<?php include("include/menu.php");?>
<div class="page-content">
<div class="main-wrapper">
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title">Galeri Listele</h5>
<a href="galeri-ekle.php" class="btn btn-primary m-b-md">Galeri Ekle</a>
<table class="table invoice-table">
<thead>
<tr>
<th scope="col">Galeri Sırası</th>
<th scope="col">Galeri Resmi</th>
<th scope="col">Galeri Adı</th>
<th scope="col">İşlem</th>
</tr>
</thead>
<tbody>
<?php
$urunlistele = $db->query("select * from galeri order by id desc",PDO::FETCH_ASSOC);
if($urunlistele->rowCount()){foreach($urunlistele as $urungoster){
?>
<tr>
<th scope="row"><?=$urungoster['sira']?></th>
<td><img src="../resimler/<?=$urungoster['resim']?>" alt="<?=$urungoster['adi']?>"> </td>
<td><?=$urungoster['adi']?></td>
<td>
<a href="galeri-ekle.php?islem=duzenle&id=<?=$urungoster['id']?>"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg></a>
<a href="?sil=<?=$urungoster['id']?>"><i class="fa fa-trash-o"></i></a>
</td>
</tr>
<?php } }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="assets/plugins/jquery/jquery-3.4.1.min.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="assets/plugins/perfectscroll/perfect-scrollbar.min.js"></script>
<script src="assets/plugins/DataTables/datatables.min.js"></script>
<script src="assets/js/main.min.js"></script>
<script src="assets/js/pages/datatables.js"></script>
<script src="https://use.fontawesome.com/ca9a29c061.js"></script>
</body>
</html>
include("include/baglan.php");
include("include/fonksiyonlar.php");
ob_start();
session_start();
oturumkontrolana();
if($_GET['sil']){
$idd=$_GET['sil'];
$resim_sorgu=$db->query("select * from galeri where id='$idd'")->fetch(PDO::FETCH_ASSOC);
unlink('../resimler/'.$resim_sorgu['resim']);
$simdi=$db->query("delete from galeri where id='$idd'")->fetch(PDO::FETCH_ASSOC);
}
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?=$ayar['site_description']?>">
<meta name="keywords" content="<?=$ayar['site_keyword']?>">
<meta name="author" content="<?=$ayar['site_author']?>">
<link rel="icon" type="image/png" href="../resimler/<?=$ayar['favicon']?>">
<title>Galeri Listele - <?=$ayar['site_title']?></title>
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,700,800&display=swap" rel="stylesheet">
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/plugins/font-awesome/css/all.min.css" rel="stylesheet">
<link href="assets/plugins/perfectscroll/perfect-scrollbar.css" rel="stylesheet">
<link href="assets/plugins/DataTables/datatables.min.css" rel="stylesheet">
<link href="assets/css/main.min.css" rel="stylesheet">
<link href="assets/css/custom.css" rel="stylesheet">
</head>
<body>
<div class="page-container">
<div class="page-header">
<?php include("include/header.php");?>
</div>
<?php include("include/menu.php");?>
<div class="page-content">
<div class="main-wrapper">
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title">Galeri Listele</h5>
<a href="galeri-ekle.php" class="btn btn-primary m-b-md">Galeri Ekle</a>
<table class="table invoice-table">
<thead>
<tr>
<th scope="col">Galeri Sırası</th>
<th scope="col">Galeri Resmi</th>
<th scope="col">Galeri Adı</th>
<th scope="col">İşlem</th>
</tr>
</thead>
<tbody>
<?php
$urunlistele = $db->query("select * from galeri order by id desc",PDO::FETCH_ASSOC);
if($urunlistele->rowCount()){foreach($urunlistele as $urungoster){
?>
<tr>
<th scope="row"><?=$urungoster['sira']?></th>
<td><img src="../resimler/<?=$urungoster['resim']?>" alt="<?=$urungoster['adi']?>"> </td>
<td><?=$urungoster['adi']?></td>
<td>
<a href="galeri-ekle.php?islem=duzenle&id=<?=$urungoster['id']?>"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg></a>
<a href="?sil=<?=$urungoster['id']?>"><i class="fa fa-trash-o"></i></a>
</td>
</tr>
<?php } }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="assets/plugins/jquery/jquery-3.4.1.min.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="assets/plugins/perfectscroll/perfect-scrollbar.min.js"></script>
<script src="assets/plugins/DataTables/datatables.min.js"></script>
<script src="assets/js/main.min.js"></script>
<script src="assets/js/pages/datatables.js"></script>
<script src="https://use.fontawesome.com/ca9a29c061.js"></script>
</body>
</html>