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 / not.snrsoft.com.tr /

Server Ip : 104.21.78.54




Filename/home/cuneytsener53/not.snrsoft.com.tr/ajax.php
Size937
Permissionrw-r--r--
Owner
Create time02-Mar-2025 05:46
Last modified02-Dec-2022 17:27
Last accessed29-Mar-2025 23:21
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

include 'baglan.php';

if($_POST['islem'] == 'sil'){
$db->exec("DELETE FROM kod WHERE id = '{$_POST['id']}' LIMIT 1");
}else if($_POST['islem'] == 'bul'){
$i = 1;
$query = $db->query("SELECT * FROM kod WHERE `kod` LIKE '%{$_POST['kod']}%' ORDER BY id DESC", PDO::FETCH_ASSOC);
if($query->rowCount()){
foreach($query as $row){
echo '<div class="card bg-light mb-3" style="padding:10px 40px" data-sil-dis="'.$row['id'].'"><div data-icerik-id="'.$row['id'].'">'.htmlspecialchars_decode(nl2br(str_replace(' ', '&nbsp;', $row['kod']))).'</div><span data-sil="'.$row['id'].'">('.$i.') Sil</span></div>';
$i++;
}
}
}else if($_POST['islem'] == 'getir'){
$kod = $db->query("SELECT * FROM kod WHERE id = '{$_POST['id']}' LIMIT 1")->fetch(PDO::FETCH_ASSOC);
echo htmlspecialchars_decode($kod['kod']);
}

?>